/**
 * ═══════════════════════════════════════════════════════════════
 * Exercise 7: STYLING FOR EVENT HANDLING DEMO
 * ═══════════════════════════════════════════════════════════════
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ───── NAVBAR ───── */
.navbar {
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: #667eea;
    font-size: 24px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #667eea;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ───── HERO SECTION ───── */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease;
}

.highlight {
    color: #ffd700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    padding: 12px 30px;
    font-size: 16px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: scale(1.05);
}

/* ───── SECTIONS ───── */
section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    width: 100%;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

/* ───── ABOUT SECTION ───── */
.about {
    background: #f5f5f5;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-container {
    margin-top: 40px;
}

.skills-container h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.skill-btn {
    padding: 10px 15px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-btn:hover {
    background: #667eea;
    color: white;
}

.skill-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
    white-space: pre-line;
    animation: slideInUp 0.3s ease;
}

/* ───── PROJECTS SECTION ───── */
.projects {
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.project-card:hover {
    border-color: #667eea;
}

.project-thumbnail {
    font-size: 48px;
    margin-bottom: 15px;
}

.project-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.project-card p {
    color: #666;
    margin-bottom: 15px;
}

.project-status {
    display: inline-block;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
}

/* ───── CONTACT SECTION ───── */
.contact {
    background: #f5f5f5;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.contact-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none;
    animation: slideInUp 0.3s ease;
}

/* ───── FOOTER ───── */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ───── ANIMATIONS ───── */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ───── RESPONSIVE ───── */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        gap: 0;
        display: none;
        border-top: 1px solid #e0e0e0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    section {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    section h2 {
        font-size: 28px;
    }

    .skills-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
