/* main css*/    
    
    /* ===== CSS VARIABLES ===== */
    :root {
        /* Enhanced Color Scheme - Light Theme */
        --bg-primary: #f3f4f6;
        --bg-secondary: #ffffff;
        --text-primary: #111827;
        --text-secondary: #4b5563;
        --accent-primary: #4f46e5;
        --accent-secondary: #6366f1;
        --accent-tertiary: #8b5cf6;
        --accent-quaternary: #ec4899;
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --error-color: #ef4444;
        --info-color: #06b6d4;

        --card-bg: #ffffff;
        --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
        --code-bg: #f1f5f9;
        --modal-bg: rgba(255, 255, 255, 0.98);
        --border-color: rgba(0, 0, 0, 0.1);
        --glass-bg: rgba(255, 255, 255, 0.8);
        --glass-border: rgba(255, 255, 255, 0.18);
        --hamburger-bg: rgba(16, 24, 39, 0.8);

        /* Custom Scrollbar Colors */
        --scrollbar-track: #f1f5f9;
        --scrollbar-thumb: rgba(99, 102, 241, 0.5);
        --scrollbar-thumb-hover: rgba(99, 102, 241, 0.8);

        /* Fonts & Sizes */
        --font-primary: 'Space Grotesk', sans-serif;
        --font-code: 'Fira Code', monospace;
        --border-radius-sm: 6px;
        --border-radius-md: 12px;
        --border-radius-lg: 24px;
        --transition-normal: 0.3s ease;
        --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);

        /* Gradients */
        --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
        --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-quaternary));
        --gradient-success: linear-gradient(135deg, var(--success-color), var(--info-color));
        --gradient-card: linear-gradient(to right bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    }

    /* Enhanced Dark Theme Colors */
    .dark-mode {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --text-primary: #f3f4f6;
        --text-secondary: #cbd5e1;
        --accent-primary: #6366f1;
        --accent-secondary: #818cf8;
        --accent-tertiary: #c4b5fd;
        --accent-quaternary: #f472b6;
        --success-color: #34d399;
        --warning-color: #fbbf24;
        --error-color: #f87171;
        --info-color: #22d3ee;

        --card-bg: #1e293b;
        --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
        --code-bg: #0f172a;
        --modal-bg: rgba(15, 23, 42, 0.98);
        --border-color: rgba(255, 255, 255, 0.1);
        --glass-bg: rgba(30, 41, 59, 0.8);
        --glass-border: rgba(255, 255, 255, 0.08);
        --hamburger-bg: rgba(241, 245, 249, 0.8);

        /* Custom Scrollbar Colors - Dark */
        --scrollbar-track: #1e293b;
        --scrollbar-thumb: rgba(129, 140, 248, 0.5);
        --scrollbar-thumb-hover: rgba(129, 140, 248, 0.8);

        /* Gradients - Dark */
        --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
        --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-quaternary));
        --gradient-success: linear-gradient(135deg, var(--success-color), var(--info-color));
        --gradient-card: linear-gradient(to right bottom, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.3));
    }

    /* ===== BASE STYLES ===== */
    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: var(--font-primary);
        background-color: var(--bg-primary);
        color: var(--text-primary);
        line-height: 1.6;
        overflow-x: hidden;
        transition: background-color 0.5s ease, color 0.5s ease;
        position: relative;
    }

    /* Custom Scrollbar Styling */
    ::-webkit-scrollbar {
        width: 14px;
    }

    ::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 8px;
        border: 3px solid var(--scrollbar-track);
        background-clip: padding-box;
        transition: all 0.3s ease;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-thumb-hover);
        border-width: 2px;
    }

    /* For Firefox */
    html {
        scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
        scrollbar-width: thin;
    }

    a {
        text-decoration: none;
        color: var(--accent-primary);
        transition: all var(--transition-normal);
    }

    a:hover {
        color: var(--accent-secondary);
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    button {
        cursor: pointer;
        font-family: var(--font-primary);
        border: none;
        outline: none;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .section {
        padding: 6rem 0;
        position: relative;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
        font-weight: 700;
        position: relative;
        display: inline-block;
    }

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60%;
        height: 4px;
        background: var(--gradient-primary);
        border-radius: 2px;
    }

    /* ===== UTILITY CLASSES ===== */
    .btn {
        display: inline-block;
        padding: 0.8rem 1.8rem;
        border-radius: var(--border-radius-md);
        font-weight: 600;
        font-size: 1rem;
        text-align: center;
        cursor: pointer;
        transition: all var(--transition-normal);
        text-decoration: none;
        border: none;
        outline: none;
        position: relative;
        overflow: hidden;
    }

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

    .btn-primary {
        background: var(--gradient-primary);
        color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .btn-primary:hover {
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }

    .btn-secondary {
        background: transparent;
        color: var(--text-primary);
        border: 2px solid var(--accent-primary);
    }

    .btn-secondary:hover {
        background-color: var(--accent-primary);
        color: white;
        transform: translateY(-2px);
    }

    .btn-load-more {
        margin: 2rem auto;
        display: block;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        padding: 1rem 2rem;
        width: auto;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s var(--transition-bounce);
    }

    .btn-load-more:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    }

    .glass-card {
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        border-radius: var(--border-radius-md);
        padding: 2rem;
        box-shadow: var(--card-shadow);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .glass-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    /* ===== EXIT TOUR BUTTON ===== */
    .exit-tour-btn {
        position: fixed;
        bottom: 100px; /* Moved up to avoid overlap with chat button */
        right: 30px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1035; /* Increased from 99 to be higher than chat button's 1030 */
        transition: all 0.4s ease;
        overflow: hidden;
        animation: pulse 2s infinite;
    }
    

    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(var(--accent-r, 99), var(--accent-g, 102), var(--accent-b, 241), 0.4);
        }

        70% {
            box-shadow: 0 0 0 10px rgba(var(--accent-r, 99), var(--accent-g, 102), var(--accent-b, 241), 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(var(--accent-r, 99), var(--accent-g, 102), var(--accent-b, 241), 0);
        }
    }

    .exit-tour-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--gradient-secondary);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: -1;
    }

    .exit-tour-btn:hover::before {
        opacity: 1;
    }

    .exit-tour-btn:hover {
        transform: translateY(-5px) rotate(360deg);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }

    .exit-tour-btn svg {
        width: 24px;
        height: 24px;
        color: var(--text-primary);
        transition: color 0.3s ease, transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    .exit-tour-btn:hover svg {
        color: white;
    }

    .exit-tour-btn .tooltip {
        position: absolute;
        top: -45px;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.85rem;
        white-space: nowrap;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .exit-tour-btn:hover .tooltip {
        opacity: 1;
        transform: translateY(0);
    }

    .btn-particles {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
    }


    /* ===== ANIMATION BACKGROUNDS ===== */
    .space-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: -1;
        overflow: hidden;
    }

    .stars-container {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .star {
        position: absolute;
        background-color: white;
        border-radius: 50%;
        opacity: 0.6;
        animation: twinkle var(--twinkle-duration) ease-in-out infinite;
        animation-delay: var(--twinkle-delay);
    }

    .light-theme-bg {
        background: radial-gradient(ellipse at bottom, #c4ddff 0%, #f1f5f9 100%);
    }

    .dark-theme-bg {
        background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    }

    .code-particle {
        position: absolute;
        color: var(--accent-secondary);
        font-family: var(--font-code);
        font-size: 0.8rem;
        opacity: 0.15;
        user-select: none;
        white-space: nowrap;
        animation: float-down var(--float-duration) linear infinite;
        animation-delay: var(--float-delay);
    }

    @keyframes twinkle {

        0%,
        100% {
            opacity: 0.2;
            transform: scale(1);
        }

        50% {
            opacity: 0.7;
            transform: scale(1.2);
        }
    }

    @keyframes float-down {
        0% {
            transform: translateY(-100px);
            opacity: 0;
        }

        10% {
            opacity: 0.15;
        }

        90% {
            opacity: 0.15;
        }

        100% {
            transform: translateY(100vh);
            opacity: 0;
        }
    }

    /* ===== ENHANCED WELCOME SCREEN ===== */
    .welcome-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--bg-primary);
        z-index: 9999;
        overflow: hidden;
        transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
    }

    .welcome-screen.hidden {
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
    }

    .welcome-inner {
        position: relative;
        width: 100%;
        max-width: 600px;
        height: 100vh;
        max-height: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 2;
        padding: 2rem;
    }

    .welcome-blob {
        position: absolute;
        width: 450px;
        height: 450px;
        border-radius: 70% 30% 50% 40% / 50% 60% 30% 60%;
        background: linear-gradient(45deg, var(--accent-primary), var(--accent-tertiary));
        opacity: 0.07;
        animation: blob-morph 15s ease-in-out infinite alternate;
        z-index: -1;
    }

    @keyframes blob-morph {
        0% {
            border-radius: 70% 30% 50% 40% / 50% 60% 30% 60%;
        }

        33% {
            border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
        }

        66% {
            border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        }

        100% {
            border-radius: 30% 60% 40% 70% / 50% 60% 30% 60%;
        }
    }

    .welcome-greeting {
        color: var(--text-primary);
        font-size: 2.4rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 1.5rem;
        max-width: 80%;
    }

    .welcome-greeting .greeting-time {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
    }

    .welcome-subtext {
        color: var(--text-secondary);
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 2.5rem;
        line-height: 1.6;
        max-width: 80%;
        min-height: 60px;
    }

    .name-input-wrapper {
        position: relative;
        width: 80%;
        max-width: 400px;
        margin-bottom: 2rem;
    }

    .name-input {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        font-family: var(--font-primary);
        background: var(--bg-primary);
        color: var(--text-primary);
        border: none;
        border-radius: var(--border-radius-md);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .name-input:focus {
        outline: none;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .name-input-line {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }

    .name-input:focus~.name-input-line,
    .name-input:not(:placeholder-shown)~.name-input-line {
        width: 100%;
    }

    .welcome-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 80%;
        max-width: 400px;
    }

    .welcome-accent {
        color: var(--accent-primary);
        font-weight: 500;
    }

    .btn-start {
        width: 100%;
        padding: 1rem 2rem;
        background: var(--gradient-primary);
        color: white;
        font-size: 1.1rem;
        border-radius: var(--border-radius-md);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
        transition: all 0.3s ease;
    }

    .btn-start:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }

    .btn-skip {
        color: var(--text-secondary);
        background: transparent;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .btn-skip:hover {
        color: var(--accent-primary);
    }

    .input-caret {
        display: inline-block;
        width: 0.125em;
        height: 1.1em;
        background-color: currentColor;
        margin-left: 0.1em;
        animation: blink 1s step-end infinite;
        vertical-align: text-top;
    }

    @keyframes blink {

        from,
        to {
            opacity: 1;
        }

        50% {
            opacity: 0;
        }
    }

    /* ===== HEADER & NAVIGATION ===== */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        transition: all 0.3s ease;
    }

    header.scrolled {
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .navbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 0;
        transition: all 0.3s ease;
    }

    .logo {
        font-size: 1.8rem;
        font-weight: 700;
        position: relative;
        z-index: 101;
    }

    .logo a {
        color: var(--text-primary);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .logo span {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .logo-icon {
        font-size: 2.2rem;
        color: var(--accent-primary);
        margin-right: 0.5rem;
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .nav-link {
        color: var(--text-primary);
        font-weight: 500;
        position: relative;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

    .theme-toggle {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
        transition: background-color 0.3s ease;
    }

    .theme-toggle:hover {
        background-color: var(--border-color);
    }

    .sun,
    .moon {
        position: absolute;
        width: 24px;
        height: 24px;
        transition: transform 0.5s var(--transition-bounce);
    }

    .sun {
        transform: translateY(40px);
    }

    .moon {
        transform: translateY(0);
    }

    .dark-mode .sun {
        transform: translateY(0);
    }

    .dark-mode .moon {
        transform: translateY(-40px);
    }

    /* Improved Hamburger Menu */
    .hamburger-container {
        display: none;
        position: relative;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--glass-bg);
        backdrop-filter: blur(5px);
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 101;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease;
    }

    .hamburger-container:hover {
        background-color: var(--border-color);
    }

    .hamburger {
        width: 24px;
        height: 18px;
        position: relative;
        transform: rotate(0deg);
        transition: 0.5s ease-in-out;
    }

    .hamburger span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background-color: var(--text-primary);
        border-radius: 3px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: 0.25s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2),
    .hamburger span:nth-child(3) {
        top: 8px;
    }

    .hamburger span:nth-child(4) {
        top: 16px;
    }

    .hamburger.active span:nth-child(1) {
        top: 8px;
        width: 0;
        left: 50%;
    }

    .hamburger.active span:nth-child(2) {
        transform: rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .hamburger.active span:nth-child(4) {
        top: 8px;
        width: 0;
        left: 50%;
    }

    /* ===== HERO SECTION ===== */
    .hero {
        min-height: 100vh;
        padding-top: 8rem;
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .hero-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }

    .hero-content {
        flex: 1;
        max-width: 600px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        color: var(--accent-primary);
        margin-bottom: 1rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-subtitle::before {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: var(--gradient-primary);
    }

    .hero-title {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
        color: var(--text-secondary);
        margin-bottom: 2rem;
    }

    .hero-buttons {
        display: flex;
        gap: 1rem;
    }

    .hero-image {
        flex: 1;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .code-block {
        background: var(--code-bg);
        border-radius: var(--border-radius-md);
        padding: 2rem;
        font-family: var(--font-code);
        color: var(--accent-primary);
        font-size: 1rem;
        line-height: 1.5;
        width: 100%;
        max-width: 500px;
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
        animation: float 5s ease-in-out infinite;
    }

    .code-comment {
        color: var(--text-secondary);
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-10px);
        }
    }

    /* ===== ABOUT SECTION ===== */
    .about {
        background-color: var(--bg-secondary);
    }

    .about-container {
        display: flex;
        align-items: center;
        gap: 4rem;
    }

    .about-image {
        flex: 1;
        position: relative;
    }

    .about-image img {
        border-radius: var(--border-radius-lg);
        box-shadow: var(--card-shadow);
        transition: transform 0.3s ease;
    }

    .about-image::before,
    .about-image::after {
        content: '';
        position: absolute;
        border-radius: var(--border-radius-lg);
    }

    .about-image::before {
        top: -15px;
        left: -15px;
        right: 15px;
        bottom: 15px;
        border: 2px solid var(--accent-primary);
        z-index: -1;
    }

    .about-image::after {
        top: 15px;
        left: 15px;
        right: -15px;
        bottom: -15px;
        border: 2px solid var(--accent-tertiary);
        z-index: -1;
    }

    .about-content {
        flex: 1;
    }

    .about-content h3 {
        font-size: 1.5rem;
        color: var(--accent-primary);
        margin-bottom: 1.5rem;
    }

    .about-content p {
        margin-bottom: 1.5rem;
        line-height: 1.8;
    }

    .skills-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }

    .skill-tag {
        background: var(--gradient-primary);
        color: white;
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;
        font-weight: 500;
    }

    /* ===== PROJECTS SECTION ===== */
    .projects {
        position: relative;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }

    .project-card {
        border-radius: var(--border-radius-md);
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: relative;
        cursor: pointer;
        background: var(--card-bg);
        box-shadow: var(--card-shadow);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .project-card:hover {
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .project-image {
        width: 100%;
        height: 200px;
        overflow: hidden;
        position: relative;
    }

    .project-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .project-card:hover .project-image img {
        transform: scale(1.1);
    }

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: var(--project-color, var(--accent-primary));
    }

    .project-content {
        padding: 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 1;
    }

    .project-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at top right,
                rgba(var(--project-r), var(--project-g), var(--project-b), 0.1),
                transparent 50%);
        z-index: -1;
    }

    .project-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--project-color, var(--text-primary));
    }

    .project-content p {
        color: var(--text-secondary);
        margin-bottom: 1rem;
        flex: 1;
    }

    .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .project-tag {
        background-color: var(--bg-primary);
        color: var(--text-secondary);
        padding: 0.3rem 0.6rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.8rem;
    }

    /* ===== CURRENT WORK SECTION ===== */
    .current-work {
        background-color: var(--bg-secondary);
    }

    .work-items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .work-item {
        background: var(--card-bg);
        border-radius: var(--border-radius-md);
        padding: 2rem;
        box-shadow: var(--card-shadow);
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .work-item:hover {
        transform: translateY(-5px);
    }

    .work-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background-color: var(--work-color, var(--accent-primary));
    }

    .work-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle at bottom right,
                rgba(var(--work-r), var(--work-g), var(--work-b), 0.1),
                transparent 70%);
        border-radius: 50%;
    }

    .work-item h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: var(--work-color, var(--text-primary));
    }

    .work-item p {
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
    }

    .progress-container {
        background-color: var(--bg-primary);
        height: 8px;
        border-radius: 4px;
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .progress-bar {
        height: 100%;
        background: linear-gradient(to right, var(--work-color, var(--accent-primary)), var(--accent-tertiary));
        border-radius: 4px;
        position: relative;
        transition: width 1s ease-in-out;
    }

    .progress-text {
        font-weight: 500;
        color: var(--work-color, var(--accent-primary));
        margin-bottom: 0.5rem;
    }

    .completion-date {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }

    /* ===== IDEAS SECTION ===== */
    .ideas {
        position: relative;
    }

    .ideas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .idea-card {
        border-radius: var(--border-radius-md);
        overflow: hidden;
        background: var(--card-bg);
        box-shadow: var(--card-shadow);
        transition: transform 0.3s ease;
        cursor: pointer;
        position: relative;
    }

    .idea-card:hover {
        transform: translateY(-8px) rotate(-1deg);
    }

    .idea-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 50px 50px 0;
        border-color: transparent var(--idea-color, var(--accent-primary)) transparent transparent;
        z-index: 2;
    }

    /* .idea-image {
        height: 180px;
        overflow: hidden;
        position: relative;
    }
    
    .idea-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
    } */
    /* --- Styles for the image container --- */
    .idea-image {
        /* --- Existing Styles (keep these or adjust as needed) --- */
        height: 180px;
        overflow: hidden;
        /* Important: keeps image contained */
        position: relative;
        /* For potential positioning of children */

        /* Optional: If using Flexbox to center the image (like Option 2 Improved) */
        display: flex;
        justify-content: center;
        align-items: center;

        /* --- Default (Light Mode) Gradient Background --- */
        /* Choose ONE of these gradients by uncommenting it */
        background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
        /* Warm Peach/Orange */
        /* background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%); */
        /* Soft Blue Sky */
        /* background: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%); */
        /* Light Pink/Orange */

        /* Smooth transition for background change */
        transition: background 0.5s ease;
    }


    body.dark-mode .idea-image {
        /* Choose ONE dark gradient by uncommenting it */
        background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
        /* Deep Space Blue/Grey */
        /* background: linear-gradient(to top, #141e30, #243b55); */
        /* Dark Indigo */
        /* background: linear-gradient(60deg, #29323c 0%, #485563 100%); */
        /* Moody Grey */
    }


    /* --- Styles for the image itself (keep these from your previous setup) --- */
    .idea-image img {
        /* Choose the display method that worked best for you */

        /* Option 1: Cover (Fills space, crops) */
        /* width: 100%; */
        /* height: 100%; */
        /* object-fit: cover; */
        /* display: block; */

        /* Option 2 (Improved): Fill width, auto height, centered (Crops vertically) */
        /* width: 100%;
        height: auto;
        flex-shrink: 0; */
        /* Only needed if .idea-image is flex */

        /* Option 3: Fill height, auto width (Horizontal space) */
        width: auto;
        height: 100%;
        display: block;
        object-fit: contain;

        /* Keep the transition if you have hover effects etc. */
        transition: transform 0.5s ease;
    }

    .idea-card:hover .idea-image img {
        transform: scale(1.1);
    }

    .idea-content {
        padding: 1.5rem;
        position: relative;
    }

    .idea-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30%;
        background: linear-gradient(to top,
                rgba(var(--idea-r), var(--idea-g), var(--idea-b), 0.05),
                transparent);
        z-index: -1;
    }

    .idea-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
        color: var(--idea-color, var(--text-primary));
    }

    .idea-content p {
        color: var(--text-secondary);
        margin-bottom: 1rem;
    }

    .idea-status {
        display: inline-block;
        padding: 0.3rem 0.6rem;
        background: linear-gradient(135deg, var(--idea-color, var(--accent-primary)), var(--accent-tertiary));
        color: white;
        border-radius: var(--border-radius-sm);
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    /* ===== CALL TO ACTION ===== */
    .cta {
        text-align: center;
        background: var(--gradient-primary);
        color: white;
        position: relative;
        overflow: hidden;
    }

    .cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 30%),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
        z-index: 0;
    }

    .cta-content {
        position: relative;
        z-index: 1;
    }

    .cta h2 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }

    .cta p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .cta .btn-primary {
        background: white;
        color: var(--accent-primary);
    }

    .cta .btn-primary:hover {
        background: var(--bg-primary);
    }

    /* ===== FOOTER ===== */
    footer {
        background-color: var(--bg-secondary);
        padding: 4rem 0 1rem;
        position: relative;
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .footer-logo {
        flex: 1;
        min-width: 200px;
    }

    .footer-logo a {
        font-size: 1.8rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-links h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--bg-primary);
        color: var(--text-primary);
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .social-links a:hover {
        background-color: var(--accent-primary);
        color: white;
        transform: translateY(-3px);
    }

    .copyright {
        text-align: center;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
        color: var(--text-secondary);
        font-size: 0.9rem;
    }

    /* ===== MODAL ===== */
    .modal-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .modal-container.active {
        opacity: 1;
        pointer-events: all;
    }

    .modal {
        background: var(--modal-bg);
        border-radius: var(--border-radius-lg);
        width: 90%;
        max-width: 800px;
        max-height: 85vh;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        border: 1px solid var(--border-color);
        transform: scale(0.9);
        transition: transform 0.3s ease;
        position: relative;
    }

    .modal-container.active .modal {
        transform: scale(1);
    }

    .modal-header {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background-color: var(--modal-color, var(--accent-primary));
    }

    .modal-header h3 {
        font-size: 1.8rem;
        color: var(--modal-color, var(--text-primary));
    }

    .close-modal {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-secondary);
        cursor: pointer;
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .close-modal:hover {
        color: var(--accent-primary);
        background-color: var(--border-color);
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-image {
        width: 100%;
        height: 300px;
        border-radius: var(--border-radius-md);
        overflow: hidden;
        margin-bottom: 1.5rem;
        position: relative;
    }

    .modal-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 30%;
        background: linear-gradient(to top,
                rgba(0, 0, 0, 0.3),
                transparent);
    }

    .modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* Find this rule (adjust class name if you used modal-image-project) */
.modal-image-project {
    /* Keep these styles */
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    /* === REMOVE background definitions FROM HERE === */
    /* background: linear-gradient(....); */ /* DELETE THIS LINE */

    /* Optional: keep transition if you want, though JS sets instantly */
    /* transition: background 0.5s ease; */
}

/* === DELETE this entire block if it exists === */
/* body.dark-mode .modal-image { */
    /* background: linear-gradient(....); */ /* DELETE THIS LINE */
/* } */


/* Keep ::after styles if you want the bottom fade */
.modal-image-project ::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    pointer-events: none;
    z-index: 2;
}

/* Keep img styles */
.modal-image-project img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}
    

    .modal-description {
        color: var(--text-secondary);
        line-height: 1.8;
        margin-bottom: 1.5rem;
    }

    .modal-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }

    .modal-tag {
        background-color: var(--bg-primary);
        color: var(--text-secondary);
        padding: 0.5rem 1rem;
        border-radius: var(--border-radius-sm);
        font-size: 0.9rem;
    }

    .modal-links {
        display: flex;
        gap: 1rem;
    }

    .modal-links a.btn-primary {
        background: linear-gradient(135deg, var(--modal-color, var(--accent-primary)), var(--accent-tertiary));
    }

    .modal-links a.btn-secondary {
        border-color: var(--modal-color, var(--accent-primary));
        color: var(--modal-color, var(--text-primary));
    }

    .modal-links a.btn-secondary:hover {
        background-color: var(--modal-color, var(--accent-primary));
        color: white;
    }

    /* ===== RESPONSIVE STYLES ===== */
    @media (max-width: 992px) {
        .section-title {
            font-size: 2.2rem;
        }

        .hero-title {
            font-size: 2.8rem;
        }

        .hero-container,
        .about-container {
            flex-direction: column;
        }

        .hero-image,
        .about-image {
            order: -1;
            margin-bottom: 2rem;
        }

        .about-image {
            max-width: 400px;
            margin: 0 auto 3rem;
        }
    }

    @media (max-width: 768px) {
        .hamburger-container {
            display: flex;
        }

        .nav-links {
            position: fixed;
            top: 0;
            right: -100%;
            width: 80%;
            max-width: 400px;
            height: 100vh;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            flex-direction: column;
            justify-content: center;
            padding: 2rem;
            transition: right 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            border-left: 1px solid var(--glass-border);
            z-index: 100;
        }

        .nav-links.active {
            right: 0;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        }

        .hero-title {
            font-size: 2.5rem;
        }

        .projects-grid,
        .ideas-grid,
        .work-items {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        }

        .modal {
            width: 95%;
        }

        .welcome-greeting {
            font-size: 2rem;
        }

        .welcome-buttons {
            width: 100%;
        }
    }

    @media (max-width: 576px) {
        .container {
            padding: 0 1.5rem;
        }

        .section {
            padding: 4rem 0;
        }

        .hero {
            padding-top: 6rem;
        }

        .section-title {
            font-size: 2rem;
        }

        .hero-title {
            font-size: 2.2rem;
        }

        .hero-subtitle {
            font-size: 1rem;
        }

        .btn {
            padding: 0.7rem 1.4rem;
        }

        .hero-buttons {
            flex-direction: column;
            align-items: flex-start;
        }

        .modal-header {
            padding: 1.2rem 1.5rem;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .modal-image {
            height: 200px;
        }

        .modal-links {
            flex-direction: column;
        }

        .footer-content {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .footer-links {
            align-items: center;
        }

        .welcome-greeting {
            font-size: 1.8rem;
        }

        .welcome-subtext {
            font-size: 1rem;
        }

        .name-input {
            padding: 1rem;
            font-size: 1rem;
        }

        .exit-tour-btn {
            width: 50px;
            height: 50px;
            bottom: 85px; /* <<< UPDATED VALUE */
            right: 20px;
        }
    }

/* ===== DONATE SECTION ===== */
.donate-section {
    background-color: var(--bg-secondary);
    padding: 6rem 0;
    position: relative;
    text-align: center;
}

.donate-section .section-title {
    margin-bottom: 1.5rem;
    display: inline-block; /* Ensures the ::after pseudo-element is positioned correctly */
}

.donate-section .section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.donate-form {
    max-width: 550px;
    margin: 0 auto;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    text-align: left;
    border-top: 4px solid var(--accent-primary);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input {
    font-family: var(--font-primary);
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-r, 99), var(--accent-g, 102), var(--accent-b, 241), 0.2); /* Creates a glow effect on focus */
}

/* Removes the number input arrows in Chrome, Safari, Edge, Opera */
.form-group input::-webkit-outer-spin-button,
.form-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Removes the number input arrows in Firefox */
.form-group input[type=number] {
    -moz-appearance: textfield;
}

/* Use the existing .btn and .btn-primary classes for the submit button */
.donate-form .btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}


.currency-selector-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.currency-selector-container label {
    font-weight: 500;
    color: var(--text-primary);
}
.currency-selector-container select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: var(--background-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}
