/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

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

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

.nav-link:hover,
.nav-link:focus {
    color: #3498db;
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */

main {
    margin-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10rem 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #667eea;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background-color: white;
    padding: 5rem 0;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #2c3e50;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.skills {
    flex: 1;
    background-color: #ecf0f1;
    padding: 2rem;
    border-radius: 8px;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.skills ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills li {
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-weight: 500;
}

.skills li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.projects h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #2c3e50;
}

.projects-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(50% - 1rem);
    min-width: 300px;
}

.project-card:hover,
.project-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 1.5rem 0.5rem;
    color: #2c3e50;
}

.project-card p {
    color: #666;
    margin: 0.5rem 1.5rem 1rem;
    line-height: 1.6;
}

.project-link {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-link:hover,
.project-link:focus {
    color: #667eea;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background-color: white;
    padding: 5rem 0;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #2c3e50;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover,
.social-links a:focus {
    color: #3498db;
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet Screens */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .project-card {
        width: calc(100% - 0rem);
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }
}

/* Mobile Screens */
@media (max-width: 480px) {
    main {
        margin-top: 60px;
    }

    .navbar {
        padding: 1rem;
    }

    .logo a {
        font-size: 1.4rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        padding: 5rem 1rem;
        min-height: 400px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .about,
    .projects,
    .contact {
        padding: 3rem 0;
    }

    .about h2,
    .projects h2,
    .contact h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .skills h3 {
        font-size: 1.2rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .footer-content {
        padding: 0 1rem;
    }
}

/* ============================================
   NAV ACTIONS (Dark Mode Button + Hamburger)
   ============================================ */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dark-mode-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    line-height: 1;
    width: 40px;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* ============================================
   HAMBURGER MENU — MOBILE BEHAVIOR
   ============================================ */

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #2c3e50;
        padding: 0.5rem 0;
        gap: 0;
    }

    .nav-menu.nav-open {
        display: flex;
    }

    .nav-menu li {
        text-align: center;
        padding: 0.75rem 0;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* ============================================
   PROJECT MODAL
   ============================================ */

.project-card {
    cursor: pointer;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: #333;
}

.modal-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.modal h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.modal p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* ============================================
   DARK MODE
   ============================================ */

.dark-mode {
    color: #ecf0f1;
    background-color: #1a1a2e;
}

.dark-mode .about,
.dark-mode .contact {
    background-color: #16213e;
}

.dark-mode .projects {
    background-color: #1a1a2e;
}

.dark-mode .about h2,
.dark-mode .projects h2,
.dark-mode .contact h2 {
    color: #ecf0f1;
}

.dark-mode .about-text p {
    color: #bdc3c7;
}

.dark-mode .skills {
    background-color: #0f3460;
}

.dark-mode .skills h3,
.dark-mode .skills li {
    color: #ecf0f1;
}

.dark-mode .project-card {
    background-color: #16213e;
}

.dark-mode .project-card h3 {
    color: #ecf0f1;
}

.dark-mode .project-card p {
    color: #bdc3c7;
}

.dark-mode .contact-intro {
    color: #bdc3c7;
}

.dark-mode .contact-info h3,
.dark-mode .contact-social h3 {
    color: #ecf0f1;
}

.dark-mode .contact-info p,
.dark-mode .contact-social p {
    color: #bdc3c7;
}

.dark-mode .modal {
    background-color: #16213e;
}

.dark-mode .modal h3 {
    color: #ecf0f1;
}

.dark-mode .modal p {
    color: #bdc3c7;
}

.dark-mode .modal-close {
    color: #bdc3c7;
}

.dark-mode .modal-close:hover {
    color: #ecf0f1;
}
