:root {
    --nav-bg: #0a0e27;
    --nav-text: #e8e6e3;
    --accent: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --hover-bg: rgba(212, 175, 55, 0.1);
    --dark-bg: #1a1a2e;
    --section-bg: rgba(15, 15, 30, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: var(--nav-text);
    overflow-x: hidden;
}

/* Navigation */
        nav {
            background: var(--nav-bg);
            padding: 0.8rem 2rem;
            box-shadow: 
                0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(212, 175, 55, 0.3),
                0 0 120px rgba(212, 175, 55, 0.2),
                0 0 160px rgba(212, 175, 55, 0.1);
            backdrop-filter: blur(20px);
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 95%;
            max-width: 1200px;
            border-radius: 100px;
            z-index: 1000;
            animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        .nav-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent);
            letter-spacing: 1px;
        }

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

        .nav-links a {
            display: block;
            color: var(--nav-text);
            text-decoration: none;
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 400;
            font-size: 0.95rem;
            letter-spacing: 0.3px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav-links a:hover {
            color: var(--accent);
            background: var(--hover-bg);
        }

        .nav-links a.active {
            background: linear-gradient(135deg, var(--accent) 0%, #b8941f 100%);
            color: var(--nav-bg);
            font-weight: 500;
            box-shadow: 0 4px 15px var(--accent-glow);
        }

        .cta-button {
            background: transparent;
            border: 1.5px solid var(--accent);
            color: var(--accent);
            padding: 0.75rem 2rem;
            border-radius: 50px;
            font-family: 'Work Sans', sans-serif;
            font-weight: 500;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            min-width: 200px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            height: auto;
            line-height: 1.2;
        }

        .cta-button:hover {
            background: var(--accent);
            color: var(--nav-bg);
            box-shadow: 0 6px 20px var(--accent-glow);
        }

        .cta-button-content {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 100%;
            height: 24px;
        }

        .cta-sliding-text {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
        }

        .cta-icon {
            width: 20px;
            height: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .cta-icon svg {
            width: 100%;
            height: 100%;
        }

        @keyframes slideInOut {
            0% {
                transform: translate(150%, -50%);
                opacity: 0;
            }
            5% {
                transform: translate(-50%, -50%);
                opacity: 1;
            }
            20% {
                transform: translate(-50%, -50%);
                opacity: 1;
            }
            25% {
                transform: translate(-250%, -50%);
                opacity: 0;
            }
            100% {
                transform: translate(-250%, -50%);
                opacity: 0;
            }
        }

        .slide-item {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            animation: slideInOut 8s infinite;
            white-space: nowrap;
            left: 50%;
            top: 50%;
            transform: translate(150%, -50%);
            opacity: 0;
            width: max-content;
        }

        /* Pause animation on hover */
        .cta-button:hover .slide-item {
            animation-play-state: paused;
        }

        .slide-item:nth-child(1) {
            animation-delay: 0s;
        }

        .slide-item:nth-child(2) {
            animation-delay: 2s;
        }

        .slide-item:nth-child(3) {
            animation-delay: 4s;
        }

        .slide-item:nth-child(4) {
            animation-delay: 6s;
        }

        /* Social Popup Modal */
        .social-popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        .social-popup-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .social-popup {
            background: var(--nav-bg);
            border: 2px solid var(--accent);
            border-radius: 30px;
            padding: 3rem 2.5rem;
            max-width: 500px;
            width: 90%;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                        0 0 100px var(--accent-glow);
            animation: popupSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        @keyframes popupSlideIn {
            from {
                transform: scale(0.8) translateY(-50px);
                opacity: 0;
            }
            to {
                transform: scale(1) translateY(0);
                opacity: 1;
            }
        }

        .popup-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: transparent;
            border: none;
            color: var(--accent);
            font-size: 2rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .popup-close:hover {
            background: var(--hover-bg);
            transform: rotate(90deg);
        }

        .popup-title {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            color: var(--accent);
            text-align: center;
            margin-bottom: 0.5rem;
        }

        .popup-subtitle {
            text-align: center;
            opacity: 0.8;
            margin-bottom: 2rem;
            font-size: 1rem;
        }

        .popup-social-links {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .popup-social-link {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 1.2rem 1.5rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 15px;
            color: var(--nav-text);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .popup-social-link:hover {
            background: var(--accent);
            color: var(--nav-bg);
            transform: translateX(10px);
            box-shadow: 0 5px 20px var(--accent-glow);
            border-color: var(--accent);
        }

        .popup-social-icon {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .popup-social-icon svg {
            width: 30px;
            height: 30px;
        }

        .popup-social-info {
            flex: 1;
        }

        .popup-social-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.2rem;
        }

        .popup-social-username {
            opacity: 0.7;
            font-size: 0.9rem;
        }

/* Sections */
section {
    min-height: 100vh;
    padding: 120px 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Home Section */
#HOME {
    text-align: center;
    background-image: url('../Images/bg_home.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

#HOME::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.8); /* Dark overlay */
    z-index: 0;
}

#HOME .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, #f4e4b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: 'Work Sans', sans-serif;
    display: inline-flex;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #b8941f 100%);
    color: var(--nav-bg);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--nav-bg);
}

/* About Section */
#ABOUT {
    background: var(--section-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    margin-left: 10rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    background: rgba(10, 14, 39, 0.6); 
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;

}
.about-text p:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px var(--accent-glow);
}
.about-image {
    text-align: center;
}

.profile-placeholder {
    width: 400px;
    height: 530px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #b8941f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px var(--accent-glow);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}
.profile-placeholder:hover {
    transform: translateY(-10px); 
    border-color: var(--accent);
    box-shadow: 0 30px 80px var(--accent-glow);
}
.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--section-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Projects Section */
#PROJECTS {
    background: var(--section-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(184, 148, 31, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

  
/* Technical Skills Section - NEW CARD DESIGN */

   #SKILLS .skills-grid {  /* Changed from .tech-skills-grid to .skills-grid */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* For better responsive layout */
@media (min-width: 640px) {
    #SKILLS .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    #SKILLS .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    #SKILLS .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    #SKILLS .skills-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.tech-skill-card {
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-skill-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #b8941f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tech-skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.tech-skill-card:hover::before {
    transform: scaleX(1);
}

.tech-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tech-skill-card:hover .tech-icon-wrapper {
    transform: scale(1.1);
}

.tech-icon-wrapper svg {
    width: 70px;
    height: 70px;
}

.tech-skill-name {
    color: var(--nav-text);
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

/* Icon colors */
.html { color: #e34c26; }
.css { color: #264de4; }
.bootstrap { color: #7952b3; }
.tailwind { color: #06b6d4; }
.javascript { color: #f7df1e; }
.react { color: #61dafb; }
.firebase { color: #ffca28; }
.node { color: #68a063; }
.express { color: #c0c0c0; }
.mongodb { color: #47a248; }
.git { color: #f05032; }
.github { color: #ffffff; }
.python { color: #3776ab; }
.figma { color: #ff6b6b; }
.ux { color: #ff6b6b; }


/* Contact Section */
#CONTACT {
    background: var(--section-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: var(--nav-text);
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 10rem;
}
.contact-card{
    
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    background: rgba(10, 14, 39, 0.6); 
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;

}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer Styles */
footer {
    background: var(--nav-bg);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo .logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-tagline {
    opacity: 0.7;
    font-size: 1rem;
}

.footer-social h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.social-link:hover {
    background: var(--accent);
    color: var(--nav-bg);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--accent-glow);
    border-color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

.heart {
    color: var(--accent);
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}






/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Medium Devices: 576px to 992px (Tablets) */
@media (max-width: 992px) {
    /* Navigation */
    nav {
        padding: 1rem 1.5rem;
        top: 10px;
        width: 95%;
        border-radius: 20px;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .cta-button {
        min-width: 150px;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .subtitle {
        font-size: 1.3rem;
    }

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

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
        margin-left: 0;
        text-align: center;
    }

    .profile-placeholder {
        width: 350px;
        height: 450px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    /* Skills Grid */
    #SKILLS .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info h3 {
        margin-left: 0;
        text-align: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-social h3 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Hamburger Menu Styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Small Devices: Up to 576px (Mobile) */
@media (max-width: 576px) {
    /* Navigation */

    /* HIDE ENTIRE NAVIGATION BAR */
    nav {
        display: none !important;
    }
    nav {
        padding: 1rem;
        top: 10px;
        width: 90%;
        border-radius: 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        position: relative;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
        order: 2;
    }

    /* Hide navigation links by default */
    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        left: 0;
        right: 0;
        flex-direction: column;
        width: 100%;
        background: var(--nav-bg);
        border-radius: 15px;
        padding: 1rem;
        gap: 0.5rem;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    /* Show navigation when active */
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        margin-top: 0.5rem;
    }

    .nav-links a {
        text-align: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    /* Hide CTA button on mobile */
    .cta-button {
        display: none;
    }

    /* Sections Padding */
    section {
        padding: 100px 1rem 2rem;
        min-height: auto;
    }

    /* Hero Section */
    #HOME {
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    /* About Section */
    .about-content {
        gap: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
        margin-left: 0;
    }

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

    .profile-placeholder {
        width: 100%;
        max-width: 300px;
        height: 400px;
    }

    /* Services Section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.95rem;
    }

    /* Skills Section */
    #SKILLS .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-skill-card {
        padding: 1.5rem 1rem;
    }

    .tech-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .tech-icon-wrapper svg {
        width: 50px;
        height: 50px;
    }

    .tech-skill-name {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-content {
        gap: 2rem;
    }

    .contact-info h3 {
        font-size: 1.3rem;
        margin-left: 0;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-item {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 0.9rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    /* Footer */
    footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-logo .logo {
        font-size: 1.5rem;
    }

    .footer-tagline {
        font-size: 0.9rem;
    }

    .footer-social h3 {
        font-size: 1.3rem;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }

    /* Popup Modal */
    .social-popup {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-subtitle {
        font-size: 0.9rem;
    }

    .popup-social-link {
        padding: 1rem;
        gap: 1rem;
    }

    .popup-social-icon {
        width: 35px;
        height: 35px;
    }

    .popup-social-icon svg {
        width: 25px;
        height: 25px;
    }

    .popup-social-name {
        font-size: 1rem;
    }

    .popup-social-username {
        font-size: 0.85rem;
    }
}

/* Extra Small Devices: Up to 375px */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    #SKILLS .skills-grid {
        grid-template-columns: 1fr;
    }

    .profile-placeholder {
        height: 350px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 992px) and (orientation: landscape) {
    section {
        min-height: auto;
        padding: 100px 2rem 3rem;
    }

    #HOME {
        min-height: 100vh;
    }

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

    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .profile-placeholder {
        width: 250px;
        height: 350px;
    }
}