/* --- 1. Global Reset & Variables --- */
:root {
    /* DEFAULT MODE: DARK MODE */
    /* This tells the browser your site natively supports both */
    color-scheme: dark light; 
    
    --bg-primary: #0A192F; /* Deep Background */
    --bg-secondary: #112240; /* Card/Section Background */
    --text-primary: #CCD6F6; /* Primary Text (Lightest Slate) */
    --text-secondary: #8892B0; /* Secondary Text (Slate) */
    --accent: #64FFDA; /* Cyan Accent/Highlight */
    --shadow-color: rgba(2, 12, 27, 0.8);

    /* Derived Variables for Consistency & Effects */
    --color-accent-shadow: rgba(100, 255, 218, 0.15);
    --color-card-bg: var(--bg-secondary);
    --scrollbar-track-color: var(--bg-secondary);
    --scrollbar-thumb-color: var(--text-secondary);

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    --border-color: rgba(100, 255, 218, 0.1); /* Subtle accent border for dark mode */
}

/* --- LIGHT MODE OVERRIDES --- */
.light-mode {
    /* Backgrounds: Creating a clear distinction between canvas and cards */
    --bg-primary: #F8FAFC;    /* Very light Slate - feels "airy" not muddy */
    --bg-secondary: #FFFFFF;  /* Pure white for cards to "pop" */
    
    /* Text: Deepened for high readability and "anchor" weight */
    --text-primary: #0F172A;    /* Deep Navy-Slate instead of grey */
    --text-secondary: #475569;  /* Balanced grey for subtext */
    
    /* Accent: Slightly more saturated to avoid looking faded */
    --accent: #059669;          /* Emerald 600 - much punchier than 10B981 */
    
    /* Depth: Using a softer, multi-layered shadow for a modern feel */
    --shadow-color: rgba(15, 23, 42, 0.08); 
    --border-color: #0d0d0e;    /* Added this to define sections */

    /* Derived Overrides */
    --color-accent-shadow: rgba(5, 150, 105, 0.1);
    --scrollbar-track-color: #F1F5F9;
    --scrollbar-thumb-color: #CBD5E1;
}

/* Sync the media query to match the improved palette */
@media (prefers-color-scheme: light) {
    :root:not(.dark-mode) {
        --bg-primary: #F8FAFC;
        --bg-secondary: #FFFFFF;
        --text-primary: #0F172A;
        --text-secondary: #475569;
        --accent: #059669;
        --shadow-color: rgba(15, 23, 42, 0.08);
        --border-color: #E2E8F0;
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    /* Use new variables */
    background-color: var(--bg-primary); 
    color: var(--text-secondary); 
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease; /* Smooth mode transition */
}

/* ENHANCEMENT: Custom Scrollbar Styling (Webkit only) */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 4px;
    border: 1px solid var(--bg-secondary); 
}

/* ENHANCEMENT: Custom Text Selection Color */
::selection {
    background-color: var(--accent);
    color: var(--bg-primary);
}

/* ENHANCEMENT: Focus State Accessibility */
a:focus,
.btn:focus,
.skill-tag:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 5px var(--color-accent-shadow);
}

/* --- 2. Typography and Headings & Animations --- */
h1, h2, h3 {
    color: var(--text-primary); /* Use primary text color */
    font-weight: 600;
}

/* Soft Fade-in Animation for All Sections */
.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 10px;
}

/* Section Title Glow Micro Effect */
.section-title {
    transition: text-shadow .4s ease;
}

.section-title:hover {
    text-shadow: 0 0 10px var(--color-accent-shadow);
}

/* Impact Number Count Animation */
.stat-card span {
    opacity: 0;
    animation: countUp 1.2s ease forwards;
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.highlight {
    color: var(--accent);
}

/* --- 3. Buttons (Call to Actions) --- */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary); /* Use primary background for text */
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

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

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

.btn-secondary-outline {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 10px 18px;
}

/* CTA Button Enhancement (Shine Effect) */
.btn-primary,
.btn-secondary,
.btn-secondary-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after,
.btn-secondary::after,
.btn-secondary-outline::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent-shadow);
    transition: .4s;
    z-index: -1;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.btn-secondary-outline:hover::after {
    left: 0;
}

/* --- Specialties Section Styling (Refined using Variables) --- */
.specialties-section {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-primary);
}

.specialties-section .section-title {
    margin-bottom: 40px;
    color: var(--text-primary);
}

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

.specialty-item {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-secondary);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px var(--shadow-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.specialty-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-accent-shadow);
}

.specialty-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.specialty-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.specialty-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* --- MODE SWITCH STYLING (NEW) --- */
.mode-switch {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 25px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-secondary);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: var(--bg-primary);
    transition: 0.4s;
    border-radius: 50%;
    /* Dark mode: Moon/Star icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2364FFDA"><path d="M12 3a9 9 0 0 0 9 9 9 9 0 0 1-9-9z"/></svg>');
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
}

input:checked + .slider {
    background-color: var(--accent);
}

input:checked + .slider:before {
    transform: translateX(20px);
    /* Light mode: Sun icon */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M12 3a9 9 0 0 0 9 9 9 9 0 0 1-9-9z"/></svg>');
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FBBF24"><path d="M12 2.25a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0V3a.75.75 0 0 1 .75-.75zm0 16.5a.75.75 0 0 1 .75.75v2.25a.75.75 0 0 1-1.5 0v-2.25a.75.75 0 0 1 .75-.75zM2.25 12a.75.75 0 0 1 .75-.75h2.25a.75.75 0 0 1 0 1.5H3a.75.75 0 0 1-.75-.75zm16.5 0a.75.75 0 0 1 .75-.75h2.25a.75.75 0 0 1 0 1.5h-2.25a.75.75 0 0 1-.75-.75zM6.34 6.34a.75.75 0 0 1 1.06 0l1.59 1.59a.75.75 0 0 1-1.06 1.06L6.34 7.4a.75.75 0 0 1 0-1.06zm10.32 10.32a.75.75 0 0 1 0-1.06l1.59-1.59a.75.75 0 0 1 1.06 1.06l-1.59 1.59a.75.75 0 0 1-1.06 0zM16.32 7.4a.75.75 0 0 1 1.06 0l1.59 1.59a.75.75 0 0 1-1.06 1.06l-1.59-1.59a.75.75 0 0 1 0-1.06zM6.34 16.32l1.59 1.59a.75.75 0 0 1-1.06 1.06l-1.59-1.59a.75.75 0 0 1 1.06-1.06z"/></svg>');
    background-size: 100%;
}
/* --- END MODE SWITCH STYLING --- */


/* --- 4. Navigation (Header) --- */
.header {
    background-color: var(--bg-primary);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 5px 10px var(--shadow-color);
    transition: var(--transition);
    border-bottom: 1px solid var(--bg-secondary);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0; /* Slightly tighter padding for better mobile fit */
}

/* Logo Section */
.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.logo-dot {
    color: var(--text-primary);
}

/* Navigation Links - Desktop Base */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    transition: var(--transition);
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

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

/* Navbar Link Hover Underline */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dark Mode Switch Styling */
.mode-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 25px; /* Spacing for desktop view */
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

/* --- Mobile Styles (Responsive) --- */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger icon */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Fully off-screen */
        width: 100%; /* Change to 70% or 80% for a side-drawer effect */
        height: 100vh;
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
        box-shadow: -5px 0 15px var(--shadow-color);
    }

    /* Active Class for Mobile (Applied via JS) */
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0; /* Vertical spacing in mobile menu */
        margin-left: 0; /* Remove desktop margin-left */
    }

    .nav-links a {
        font-size: 1.2rem; /* Larger text for mobile touch */
    }

    /* Move Mode Switch into the list flow */
    .mode-switch-wrapper {
        margin-left: 0;
        padding-top: 15px;
        border-top: 1px solid var(--bg-secondary);
        width: 150px; /* Give it a defined width for centering */
        justify-content: center;
    }
}

/* --- 5. Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
}

.hero-content {
    max-width: 600px;
}

/* Hero Text Smooth Entrance */
.hero-content {
    animation: slideInLeft 1.2s ease-out forwards;
    opacity: 0;
}

.hero-content .greeting {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 20px;
    animation-delay: 0.2s;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 3.5rem); 
    line-height: 1;
    margin: 10px 0;
}

.hero-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem); 
    color: var(--accent);
    margin-bottom: 25px;
}

.dynamic-role #role-text {
    font-weight: 700;
    border-bottom: 3px solid var(--accent);
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.hero-image {
    width: 300px;
    height: 300px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 20px var(--color-accent-shadow);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Image inside circle */
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover effect */
.hero-image:hover img {
    transform: scale(1.1);
}

.hero-image:hover {
    box-shadow: 0 0 40px var(--color-accent-shadow);
}

/* Floating Animation for Profile Image */
.hero-image {
    animation: floatImage 4s ease-in-out infinite;
}

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

/* --- 6. About Section --- */
.about-section {
    background-color: var(--bg-secondary);
    padding: 80px 20px;
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

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

.about-text p {
    margin-bottom: 15px;
}

/* --- 6. About Section --- */
.about-section {
    background-color: var(--bg-secondary);
    padding: 80px 20px;
}

/* TOP ROW: Text and General Stats */
.about-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 2; /* Takes 2/3 space on desktop */
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 15px;
}

/* General Stats (Right Column) */
.about-stats {
    flex: 1; /* Takes 1/3 space on desktop */
    display: grid;
    /* FIX: Desktop layout for 2 cards side-by-side (1fr 1fr) */
    grid-template-columns: 1fr; 
    gap: 20px;
}

/* NEW: Key Impact Section (Full width bottom row) */
.key-impact-row {
    margin-top: 50px;
    width: 100%;
}

.key-impact-row h3 {
    font-size: 1.5rem;
    color: var(--accent);
    text-align: center;
    border-bottom: 2px solid var(--color-accent-shadow);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* NEW: Grid for the 4 Impact Cards (Horizontal stacking on desktop) */
.impact-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

/* --- Stat Card Styling (Applies to all cards) --- */
.stat-card {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border-top: 3px solid var(--accent);
    position: relative; 
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Accent color flash on hover (No change) */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    transform: translateX(-100%);
    transition: transform 0.4s ease-out;
}

.stat-card:hover::before {
    transform: translateX(0);
}

.stat-card span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}


/* --- Responsive Adjustments (Add to your Media Queries section) --- */
@media (max-width: 992px) {
    /* 1. Collapse the main flex container (Text on top of General Stats) */
    .about-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    /* 2. General Stats: Maintain 2 columns for mid-sized screens */
    .about-stats {
        flex: none; 
        width: 100%;
        grid-template-columns: 1fr 1fr; 
    }
    
    /* 3. Key Impact Cards collapse from 4 to 2 columns on tablets */
    .impact-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* No major changes needed here, relies on 992px and 576px */
}

@media (max-width: 576px) {
    /* 1. General Stats: Collapse from 2 columns to 1 column on mobile */
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    /* 2. Key Impact Cards: Collapse from 2 columns to 1 column on mobile */
    .impact-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* --- 7. Skills Section --- */
.skills-section {
    background-color: var(--bg-primary);
}

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

.skill-category h3 {
    color: var(--accent);
    margin-bottom: 15px;
    border-bottom: 1px dashed var(--text-secondary);
    padding-bottom: 5px;
    font-size: 1.3rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    border: 1px solid var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    cursor: default;
}

/* --- 8. Projects Section --- */
.projects-section {
    /*background-color: var(--bg-secondary);*/
    padding: 50px 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    /*background-color: var(--bg-primary);*/
    background: var(--bg-secondary);
    border: 1px solid var(--bg-secondary);
    padding: 25px;
    border-radius: 8px;
    /*border: 1px solid var(--border-color);*/
    /*box-shadow: 0 10px 30px -15px var(--shadow-color);*/
    box-shadow: 0 4px 10px var(--shadow-color); 
    /*transition: var(--transition);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Animated Hover Glow for Project Cards */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px var(--color-accent-shadow);
}

.project-image {
    height: 200px;
    background-color: var(--text-secondary);
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Project Image Zoom Micro-Effect */
.project-image img {
    transition: transform .35s ease;
}

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

.project-title {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-description {
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.tech-used {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: var(--font-mono);
}

.project-links a {
    margin-right: 15px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.more-projects {
    text-align: center;
    margin-top: 60px;
}

/* --- 9. Contact Section --- */
.contact-section {
    text-align: center;
    padding: 80px 0;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focus glow for inputs */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--color-accent-shadow); 
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: auto;
    margin-top: 10px;
    float: right;
}

.social-links {
    margin-top: 50px;
}

.social-links a {
    margin: 0 15px;
    color: var(--text-secondary);
    font-size: 2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px) scale(1.1); 
}


/* --- 10. Footer --- */
.footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--bg-secondary);
    font-size: 0.9rem;
}

.footer .fa-heart {
    color: #E31B23; /* Red color for heart */
}


/* --- 11. Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        margin-top: 50px;
    }

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

    .hero-content h2 {
        font-size: 2rem;
    }

    .about-flex {
        flex-direction: column;
        gap: 30px;
    }

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

@media (max-width: 768px) {
    .nav-bar {
        padding: 15px 5%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: var(--bg-secondary);
        width: 70%;
        padding: 20px;
        box-shadow: -5px 5px 10px var(--shadow-color);
        height: 100vh;
        z-index: 999;
    }

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

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--accent);
        cursor: pointer;
    }
    
    .nav-links.active + .menu-toggle {
        transform: rotate(90deg);
    }

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

    .hero-content h2 {
        font-size: 1.7rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .mode-switch {
        margin-left: 0;
        margin-top: 20px; /* Moves switch down in mobile menu list */
    }
}

/* Force navbar button to match hero .btn-primary exactly */
.nav-links .btn.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

/* Exact same hover effect as hero buttons */
.nav-links .btn.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-accent-shadow);
}