/* ✅ GLOBAL RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* **NEW CODE/MODIFIED** */
/* Global Scroll Offset for Fixed Header (60px) */
html {
    scroll-padding-top: 60px; 
}
/* **END NEW CODE/MODIFIED** */

/* Dark Theme (Default) */
:root {
    --bg: #0f172a;
    --text: #f1f5f9;
    --subtext: #94a3b8;
    --accent: #38bdf8;
    --card-bg: #1e293b;
}

/* Light Theme */
.light-theme {
    --bg: #ffffff;
    --text: #1e293b;
    --subtext: #4a5568;
    --accent: #007bff;
    --card-bg: #f1f1f1;
}

/* ✅ NAVBAR & NAVIGATION STYLES */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
    padding: 0.8rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
    background: var(--card-bg);
    border-bottom: 1px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Logo */
.logo .navbar-logo {
    display: block;
    width: auto;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo .navbar-logo:hover {
    transform: scale(1.05);
}

/* Nav Menu Link Base Style */
.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

/* Underline effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background: var(--accent);
    left: 50%;
    bottom: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    left: 0;
}

/* Theme Toggle */
#theme-toggle, #mobile-theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.3s, color 0.3s;
}

#theme-toggle:hover, #mobile-theme-toggle:hover {
    transform: rotate(20deg) scale(1.1);
    color: var(--accent);
}

/* Hamburger Toggle Button */
.nav-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        position: static;
        transform: none !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .nav-menu ul {
        list-style: none;
        display: flex;
        gap: 2.2rem;
        margin: 0;
        padding: 0;
    }
    #theme-toggle {
        display: block;
    }
    .menu-utilities, #mobile-theme-toggle {
        display: none !important;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* **NEW CODE/MODIFIED** */
    /* Compensate for the 55px fixed navbar height on mobile */
    html {
        scroll-padding-top: 55px;
    }
    /* **END NEW CODE/MODIFIED** */
    
    .navbar {
        padding: 0.5rem 1.5rem;
        height: 55px;
    }

    #theme-toggle {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    /* Mobile Menu Drawer */
    .nav-menu {
        position: fixed;
        top: 55px;
        right: 0;
        width: 60%;
        height: calc(100vh - 55px);
        background: var(--card-bg);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.6);
        padding: 0;
        z-index: 99;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .nav-menu.open-menu {
        transform: translateX(0);
    }

    .nav-menu ul { margin: 0; padding: 0; list-style: none; }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 1rem 2rem;
        font-weight: 500;
        font-size: 1rem;
    }

    /* Overriding desktop underline */
    .nav-menu a::after { content: none; } 

    .nav-menu li a::before {
        font-family: 'Font Awesome Solid' !important;
        font-weight: 900 !important;
        margin-right: 12px;
        font-size: 1.1rem;
        color: var(--accent);
        content: none;
    }

    /* Link Icons (Requires Font Awesome to be loaded) */
    .nav-menu li:nth-child(1) a::before { content: "\f015"; }
    .nav-menu li:nth-child(2) a::before { content: "\f007"; }
    .nav-menu li:nth-child(3) a::before { content: "\f0ad"; }
    .nav-menu li:nth-child(4) a::before { content: "\f57a"; }
    .nav-menu li:nth-child(5) a::before { content: "\f542"; }
    .nav-menu li:nth-child(6) a::before { content: "\f121"; }
    .nav-menu li:nth-child(7) a::before { content: "\f0e0"; }

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

    /* Mobile Utilities (Theme Toggle & Resume Button) */
    .menu-utilities {
        padding: 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: var(--bg);
    }

    .menu-utilities #mobile-theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--card-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .resume-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
        font-weight: 600;
        background: var(--accent);
        color: var(--bg);
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s;
    }
    .resume-btn i { margin-right: 10px; }

    .menu-social-links {
        display: flex;
        justify-content: space-around;
        width: 100%;
        max-width: 250px;
        margin-top: 0.5rem;
    }

    .menu-social-links a {
        color: var(--text);
        font-size: 1.6rem;
        transition: color 0.3s, transform 0.3s;
    }

    .menu-social-links a:nth-child(1):hover { color: #0077B5; transform: translateY(-3px); } /* LinkedIn */
    .menu-social-links a:nth-child(2):hover { color: #333; transform: translateY(-3px); } /* GitHub */
    .menu-social-links a:nth-child(3):hover { color: var(--accent); transform: translateY(-3px); } /* Email */
}

/* ✅ HERO SECTION */
.hero {
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem 2rem;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

/* Hero Content & Typing Animation */
.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-family: "Cinzel", serif;
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    animation: smoothUpDown 3s ease-in-out infinite;
}

@keyframes smoothUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.hero-content h1 span {
    color: var(--accent);
    display: block;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--subtext);
    margin-top: 1rem;
}

.hero-content p span#typing-text {
    color: var(--text);
    font-weight: 700;
    font-size: 1.5rem;
}

.hero-content p span#typing-text::after {
    content: '|';
    display: inline;
    margin-left: 5px;
    color: var(--accent);
    animation: blink 0.7s infinite;
    font-weight: 400;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--bg);
    border-radius: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.3s ease;
    z-index: 1;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 2;
}

.hero .btn[href*=".pdf"]::after {
    content: 'Download ⬇️';
    background: var(--accent);
    color: var(--bg);
}

.hero .hire-me-btn::after {
    content: 'Email Me 📧';
    background: var(--card-bg);
    color: var(--text);
}

.hero .btn:hover::after {
    transform: translateY(0);
}

/* Light Theme Overrides for Button Contrast */
.light-theme .hero .btn {
    color: var(--bg);
}
.light-theme .hero .btn[href*=".pdf"]::after {
    background: var(--accent);
    color: var(--bg);
}
.light-theme .hero .hire-me-btn::after {
    background: var(--card-bg);
    color: var(--text);
}


/* Profile Image */
.hero-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-img img {
    width: 350px;
    max-width: 100%;
    border-radius: 50%;
    border: 6px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 5rem 1.5rem 2rem;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-img img {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-img {
        order: -1;
        margin-bottom: 0;
    }

    .hero-content {
        order: 1;
    }

    .hero-actions {
        justify-content: center;
        margin-top: 2rem;
    }

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

    .hero-content p span#typing-text {
        font-size: 1.2rem;
    }

    .hero-img img {
        width: 250px;
        border-width: 4px;
    }
}


/* ✅ ABOUT SECTION */
.about {
    position: relative; 
    padding: 5rem 2rem;
    background: var(--card-bg);
    color: var(--text);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 400px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    transition: transform 0.3s ease;
}
.about-img img:hover {
    transform: scale(1.01);
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--subtext);
}

/* Responsive Adjustments for Small Screens */
@media (max-width: 768px) {
    .about {
        padding: 4rem 1.5rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-img {
        order: -1;
    }

    .about-img img {
        width: 100%;
        max-width: 250px;
    }

    .about-text {
        order: 1;
        text-align: center;
    }

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

    .about-text p {
        font-size: 1rem;
        text-align: left;
    }
}
/* ✅ SKILLS SECTION */
.skills {
    position: relative;
    background: var(--bg);
    color: var(--text);
    text-align: center;
    padding: 4rem 2rem;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: default;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-6px);
    background: var(--accent);
}

/* SKILL TEXT (Fades out on hover) */
.skill-card .skill-text {
    position: absolute;
    color: var(--text);
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    text-align: center;
    font-size: 1.05rem;
}

/* Hide Text on Hover */
.skill-card:hover .skill-text {
    opacity: 0;
    transform: scale(0.5);
}

/* REAL IMAGE ICON (Fades in on hover) */
.skill-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 18%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease-in-out;
}

/* Show Image on Hover */
.skill-card:hover .skill-icon {
    opacity: 0.9;
    transform: scale(1);
}

/* IMAGE MAPPING (Using 'icons/' folder and .png extension) */
.html-icon { background-image: url('icons/html-5.png'); }
.css-icon { background-image: url('icons/css-3.png'); }
.js-icon { background-image: url('icons/java-script.png'); }
.c-icon { background-image: url('icons/c.png'); }
.python-icon { background-image: url('icons/python.png'); }

/* SOFT SKILLS */
.communication-icon { background-image: url('icons/communication.png'); }
.teamwork-icon { background-image: url('icons/Teamwork.png'); }
.problem-solving-icon { background-image: url('icons/problem-solving.png'); }
.adaptability-icon { background-image: url('icons/adaptability.png'); }

/* TECH STACK */
.webdev-icon { background-image: url('icons/web-development.png'); }
.ai-icon { background-image: url('icons/AI.png'); }
.mldl-icon { background-image: url('icons/ML-DL.png'); }

/* HOBBIES & INTERESTS */
.coding-icon { background-image: url('icons/codeing.png'); }
.gaming-icon { background-image: url('icons/gaming.png'); }
.traveling-icon { background-image: url('icons/traveling.png'); }
.reading-icon { background-image: url('icons/reading.png'); }
.cricket-icon { background-image: url('icons/cricket.png'); }
.tech-icon { background-image: url('icons/exploring tech.png'); }

/* ✅ CERTIFICATIONS SECTION */
.certifications {
    position: relative; 
    padding: 4rem 2rem;
    background: var(--card-bg);
    color: var(--text);
    text-align: center;
}

.certifications h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}

.certifications-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

.cert-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    border: 2px solid transparent;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
}

.cert-card h3 {
    color: var(--text);
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

.cert-provider {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.cert-date {
    display: block;
    font-size: 0.85rem;
    color: var(--subtext);
    margin-bottom: 1rem;
}

.icon-box {
    margin-bottom: 1rem;
}

.icon-box img {
    max-height: 50px;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}
.cert-card:hover .icon-box img {
    transform: scale(1.05);
}

.cert-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cert-link:hover {
    color: transparent !important;
    background: var(--accent);
    transform: none;
}

.cert-link::after {
    content: 'View Link 🔗';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg);
    color: var(--text);
    font-size: 1.0rem;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 2;
}

.cert-link:hover::after {
    transform: translateY(0);
}

.light-theme .cert-link::after {
    background: #4a4a4a;
    color: #fff;
}

/* ✅ EXPERIENCE SECTION */
.experience {
    position: relative; 
    background: var(--card-bg);
    color: var(--text);
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: auto;
}

.experience h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent);
}

.experience-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    justify-content: center;
    gap: 2.5rem;
}

.experience-card {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    text-align: left;
    border-left: 5px solid var(--accent);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-8px);
    border-left: 5px solid var(--accent);
}

.experience-card h3 {
    color: var(--accent);
    margin-bottom: 0.2rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.experience-card .company {
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.experience-card .duration {
    display: block;
    font-size: 0.95rem;
    color: var(--subtext);
    margin-bottom: 1.5rem;
}

.experience-card .duties {
    margin-top: 1rem;
    padding-left: 0;
    list-style: none;
    line-height: 1.7;
}

.experience-card .duties li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--subtext);
}

.experience-card .duties li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.experience-card .duties li b {
    color: var(--accent);
    font-weight: 700;
}

/* ✅ PROJECTS SECTION */
#projects {
    position: relative; 
    padding: 4rem 2rem;
    background: var(--bg);
    color: var(--text);
    text-align: center;
}

#projects h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent);
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    border: 1px solid rgba(150, 150, 150, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced Card Hover */
.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

/* Dynamic Image Fit & Hover */
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: fill;
    transition: transform 0.5s ease-out;
}

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

.project-card .content {
    padding: 0 20px;
    margin-bottom: 15px;
}

.project-card h3 {
    margin: 15px 0 5px;
    font-size: 1.6rem;
    color: var(--accent);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--subtext);
    margin-bottom: 10px;
}

/* Action Buttons Container */
.project-card .actions {
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.project-card .actions a {
    display: inline-block;
    margin: 0 8px;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 90px;
}

/* Code/GitHub - SECONDARY CTA */
.project-card .actions a:nth-child(1) {
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
}

.project-card .actions a:nth-child(1):hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

/* Live/Demo - PRIMARY CTA */
.project-card .actions a:nth-child(2) {
    background: var(--accent);
    border: 2px solid var(--accent);
    color: var(--bg);
}

.project-card .actions a:nth-child(2):hover {
    background: var(--bg);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* ✅ CONTACT SECTION */
.contact {
    position: relative; 
    background: var(--bg);
    color: var(--text);
    text-align: center;
    padding: 4rem 2rem;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 550px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
    text-align: left;
    font-size: 0.95rem;
    opacity: 0.8;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.3s ease;
}

/* Enhanced Focus Effect */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--subtext);
    opacity: 0.7;
}

/* Submit Button Hover */
.submit-button {
    background: var(--accent);
    color: var(--bg);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* SOCIAL LINKS STYLING */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.contact-links a i {
    font-size: 1.4rem;
}

/* Hover effects: Color-coding */
.contact-whatsapp:hover {
    background: #25D366;
    color: #fff;
    transform: scale(1.1);
}

.contact-github:hover {
    background: #333;
    color: #fff;
    transform: scale(1.1);
}

.contact-linkedin:hover {
    background: #0077B5;
    color: #fff;
    transform: scale(1.1);
}

.contact-twitter:hover {
    background: #1DA1F2;
    color: #fff;
    transform: scale(1.1);
}

/* ✅ FOOTER SECTION */
footer {
    background: var(--card-bg);
    color: var(--text);
    padding: 3rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    text-align: left;
}

.footer-content h3 {
    color: var(--text);
    margin-bottom: 0.8rem;
    font-size: 1.7rem;
    font-weight: 600;
}

.footer-content h4 {
    color: var(--text);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.footer-intro p {
    font-size: 0.95rem;
    color: var(--subtext);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-email-link {
    color: var(--subtext);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.footer-email-link:hover {
    color: var(--accent);
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.6rem;
}

.quick-links a {
    color: var(--subtext);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.quick-links a:hover {
    color: var(--accent);
}

.footer-utility {
    display: flex;
    flex-direction: column;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.2rem;
}

.footer-links a {
    color: var(--subtext);
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Subtle icon hover effect */
.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 1rem 0;
}

.copyright {
    font-size: 0.75rem;
    color: var(--subtext);
    opacity: 0.7;
}

/* Footer Media Query */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-content h4 {
        margin: 0 auto 1.2rem;
        width: auto;
    }

   .footer-intro, .quick-links, .footer-utility {
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }

    .quick-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-utility {
        align-items: center;
    }
    .footer-links {
        justify-content: center;
    }
}
/* ✅ BACK TO TOP BUTTON */
.back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: var(--bg);
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 10px var(--accent);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s ease-in-out;
    z-index: 95;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent);
}

@media (max-width: 768px) {
    .back-to-top-btn {
        bottom: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ✅ SUCCESS MODAL STYLING */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid var(--accent);
    width: 90%;
    max-width: 450px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.modal-content h2 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--subtext);
    margin-bottom: 20px;
}

/* Close Button (X in the corner) */
.close-btn {
    color: var(--subtext);
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--accent);
    text-decoration: none;
}

/* Modal Close Button (at the bottom) */
.modal-close-button {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
}

.modal-close-button:hover {
    background: color-mix(in srgb, var(--accent) 80%, black);
}

/* Animation for the popup */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ✅ ANIMATIONS & MISC */
@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-50%);
    z-index: 1;
}

/* ✅ GLOBAL SCROLLBAR CUSTOMIZATION */

/* Width and Height */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Track/Background */
::-webkit-scrollbar-track {
    background: var(--bg);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent) 90%, black);
}
