:root {
    --purple-main: #8b5cf6;
    --purple-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    --pink-gradient: linear-gradient(to right, #a855f7, #ec4899);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

/* 1. DEFAULT */
[data-theme="default"] {
    --bg-main: #f5f6fb;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --card-bg: #ffffff;
    --card-border: 1px solid #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    --inner-card-bg: transparent;
    --inner-card-shadow: none;
    --hero-bg: linear-gradient(135deg, #f3ebff 0%, #e9f0ff 100%);
    --cta-bg: linear-gradient(135deg, #f5eaff 0%, #fae8ff 100%);
    --backdrop: none;
    --blob-opacity: 0;
}

/* 2. Dark Glassmorphism */
[data-theme="dark-glass"] {
    --bg-main: #0f172a;
    --text-dark: #f8f9fa;
    --text-muted: #ffffff;
    --card-bg: rgba(43, 54, 71, 0.4);
    --card-border: 1px solid rgba(255, 255, 255, 0.15);
    --card-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1), inset 0 -1px 2px rgba(139, 92, 246, 0.15);
    --inner-card-bg: rgba(15, 23, 42, 0.6);
    --inner-card-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    --hero-bg: rgba(30, 41, 59, 0.4);
    --cta-bg: rgba(30, 41, 59, 0.4);
    --backdrop: blur(16px);
    --blob-opacity: 0.15;
}

/* 3. Liquid Pearl */
[data-theme="liquid-pearl"] {
    --bg-main: #e8e4e1;
    --text-dark: #1e293b;
    --text-muted: #475569;
    --card-bg: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    --card-border: 1px solid rgba(255, 255, 255, 0.6);
    --card-shadow: 0 20px 40px rgba(31, 38, 135, 0.1), inset 0 4px 15px rgba(255, 255, 255, 0.9), inset 0 -4px 15px rgba(236, 72, 153, 0.15);
    --inner-card-bg: rgba(255, 255, 255, 0.4);
    --inner-card-shadow: inset 0 2px 5px rgba(255,255,255,0.7), 0 5px 15px rgba(0,0,0,0.05);
    --hero-bg: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    --cta-bg: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    --backdrop: blur(25px);
    --blob-opacity: 0.6;
}

/* Resets */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-dark); overflow: hidden; transition: var(--transition); position: relative; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; font-family: inherit; cursor: pointer;}
.hidden { display: none !important; }

/* Backgrounds */
.bg-blobs { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; opacity: var(--blob-opacity); transition: var(--transition); pointer-events: none; }
.blob { position: absolute; filter: blur(90px); border-radius: 50%; animation: float 10s infinite ease-in-out alternate; }
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #8b5cf6; }
.blob-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: #ec4899; animation-delay: -5s; }
.blob-3 { top: 40%; left: 50%; width: 400px; height: 400px; background: #3b82f6; animation-delay: -2s; }

/* Layout */
.layout { display: flex; height: 100vh; z-index: 1; }
.main-content { flex: 1; padding: 25px 35px; overflow-y: auto; scroll-behavior: smooth; display: flex; flex-direction: column; gap: 24px; }
.view-section { display: flex; flex-direction: column; gap: 24px; }

/* Strict Grids */
.stats-container { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 15px; width: 100%; }
.grid-2-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; }
.detail-grid-dynamic { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.flex-column-gap { display: flex; flex-direction: column; gap: 15px; }
.flex-gap { display: flex; gap: 15px; }
.mb-20 { margin-bottom: 20px; }

/* 3D Cards */
.card-3d { background: var(--card-bg); border: var(--card-border); border-radius: var(--radius-xl); box-shadow: var(--card-shadow); backdrop-filter: var(--backdrop); -webkit-backdrop-filter: var(--backdrop); padding: 25px; transition: var(--transition); position: relative; overflow: hidden; width: 100%; }
.card-3d:hover { box-shadow: var(--card-shadow), 0 10px 25px rgba(0,0,0,0.06); }
.inner-card-3d { background: var(--inner-card-bg); box-shadow: var(--inner-card-shadow); border-radius: var(--radius-md); }
[data-theme="dark-glass"] .inner-card-3d { border: 1px solid rgba(255,255,255,0.05); }
[data-theme="liquid-pearl"] .inner-card-3d { border: 1px solid rgba(255,255,255,0.3); }

/* Buttons */
.btn-primary { background: var(--purple-gradient); color: white; padding: 12px 24px; border-radius: 30px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 16px rgba(139, 92, 246, 0.25); transition: var(--transition); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 20px rgba(139, 92, 246, 0.4); }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-secondary { background: var(--card-bg); color: var(--text-dark); padding: 12px 24px; border-radius: 30px; font-weight: 600; border: var(--card-border); display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--card-shadow); transition: var(--transition); backdrop-filter: var(--backdrop); }
.btn-secondary:hover { transform: translateY(-2px); }

/* Sidebar */
/* --- Mobile Sidebar Close Button --- */
.sidebar-close-btn {
    display: none; /* Hidden by default on PC */
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: var(--inner-card-bg);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 101;
}
.sidebar-close-btn:hover {
    color: var(--purple-main);
    transform: scale(1.1);
}

/* Make it visible ONLY on mobile screens */
@media (max-width: 992px) {
    .sidebar-close-btn {
        display: flex;
    }
}
.sidebar { width: 280px; margin: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; z-index: 100; border-radius: 0; border-right: 1px solid rgba(0,0,0,0.05); background: rgba(255,255,255,0.5); padding: 30px 20px;}
[data-theme="default"] .sidebar { background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(20px); border-right: 1px solid #fff; box-shadow: 5px 0 20px rgba(0,0,0,0.02);}

.profile-section { text-align: center; margin-bottom: 25px; }
.profile-img-wrapper { width: 90px; height: 90px; border-radius: 50%; padding: 5px; margin: 0 auto 15px; background: #f3ebff;}
.profile-img-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); color: #10b981; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-top: 10px; }
.dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; }

.nav-menu { display: flex; flex-direction: column; gap: 5px; margin-bottom: 20px; flex: 1; }
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-md); color: var(--text-muted); font-weight: 500; font-size: 0.9rem; transition: var(--transition); }
.nav-menu a:hover { background: var(--inner-card-bg); color: var(--text-dark); }
.nav-menu a.active { background: var(--purple-gradient); color: white; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2); }

.hire-card { padding: 25px 15px; text-align: center; margin-bottom: 15px; position: relative; background: var(--hero-bg); border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.5);}
.hire-icon { font-size: 2rem; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
.hire-card h3 { font-size: 0.9rem; margin-top: 10px; margin-bottom: 5px; }

/* Theme Switcher */
.theme-switcher-box { display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; font-weight: 600; font-size: 0.85rem; background: var(--card-bg); border-radius: var(--radius-lg); box-shadow: var(--card-shadow); border: var(--card-border);}
.theme-btn { background: var(--inner-card-bg); color: var(--text-dark); border: none; padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: bold; transition: 0.3s; }
.theme-btn:hover { background: var(--purple-main); color: white; }
[data-theme="default"] .theme-btn { background: #f3f4f6; }

.sidebar-plant { width: 100px; display: block; margin: 10px auto 0; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }

/* Top Header */
.top-header { padding: 25px 30px; border-radius: var(--radius-xl); display: flex; justify-content: space-between; align-items: center; }
.mobile-only { display: none; font-size: 2rem; color: var(--text-dark); }
.top-nav { display: flex; gap: 25px; }
.top-nav a { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); transition: 0.3s; }
.top-nav a:hover, .top-nav a.active { color: var(--purple-main); }
.header-actions { display: flex; gap: 15px; }
.icon-3d { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; background: var(--inner-card-bg); transition: 0.3s; }
[data-theme="default"] .icon-3d { background: #f3f4f6; }
.icon-3d:hover { transform: translateY(-2px); }
.header-profile img { width: 30px; height: 30px; border-radius: 50%; }
.badge { position: absolute; top: -2px; right: -2px; background: #ef4444; color: white; font-size: 0.6rem; font-weight: bold; width: 16px; height: 16px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

/* Text & Typography */
.text-purple { color: var(--purple-main); }
.text-muted { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.text-dark { color: var(--text-dark); }
.text-gradient { background: var(--pink-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 1.2rem; font-weight: 800; }
.view-all-link { color: var(--purple-main); font-size: 0.8rem; font-weight: 600; text-decoration: none; }
.view-all-link:hover { text-decoration: underline; }
.pill-tag { padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; color: var(--purple-main); display: inline-block; background: #f3ebff;}
[data-theme="default"] .pill-tag { background: #f3ebff; }

/* Hero Section */
.hero-section { display: flex; align-items: center; justify-content: space-between; padding: 40px; border-radius: var(--radius-xl); background: var(--hero-bg); width: 100%; border: var(--card-border); backdrop-filter: var(--backdrop); box-shadow: var(--card-shadow);}
.greeting { padding: 8px 16px; display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--text-dark); background: rgba(255,255,255,0.6); border-radius: 20px; font-size: 0.85rem;}
.hero-content h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 15px; font-weight: 800; }
.hero-btns { margin-top: 25px; }
.hero-graphics { position: relative; width: 40%; display: flex; justify-content: center; }
.hero-main-img { width: 100%; max-width: 400px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15)); z-index: 2; }
.float-icon { position: absolute; width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; color: var(--purple-main); border-radius: 14px; z-index: 3; animation: float 4s infinite ease-in-out; background: rgba(255,255,255,0.8); backdrop-filter: blur(5px);}
.icon-1 { top: 10%; left: 5%; }
.icon-2 { top: 40%; right: 0; animation-delay: 1s; }
.icon-3 { bottom: 10%; left: 0; animation-delay: 2s; }

/* --- HORIZONTAL STATS BAR FIX --- */
.stat-box { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 15px 12px; text-align: left; }
.stat-img { width: 45px; height: 45px; border-radius: 12px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; font-size: 1.6rem; background: var(--inner-card-bg); }
[data-theme="default"] .stat-img { background: #f3f4f6; }
.stat-info { display: flex; flex-direction: column; }
.stat-box h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.1; color: var(--text-dark);}
.stat-box p { font-size: 0.75rem; margin-top: 2px; line-height: 1.2;}

/* Skills Bars */
.skill-item { display: flex; align-items: center; gap: 15px; }
.skill-icon { font-size: 1.5rem; width: 30px; text-align: center; }
.skill-data { flex: 1; }
.skill-header { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 700; margin-bottom: 8px; }
.skill-bar-bg { width: 100%; height: 8px; border-radius: 10px; overflow: hidden; background: var(--inner-card-bg); }
[data-theme="default"] .skill-bar-bg { background: #f3f4f6; }
.skill-bar-fill { height: 100%; background: var(--purple-gradient); border-radius: 10px; width: 0; transition: width 1.5s ease-out; }

/* Projects Grid */
.project-card { padding: 15px; border-radius: var(--radius-lg); background: #ffffff; border: 1px solid rgba(0,0,0,0.05); display: flex; flex-direction: column;}
[data-theme="default"] .project-card { background: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
[data-theme="dark-glass"] .project-card { background: transparent; border-color: rgba(255,255,255,0.1); }
[data-theme="liquid-pearl"] .project-card { background: rgba(255,255,255,0.2); }
.proj-img { width: 100%; height: 150px; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 15px; background: #f8f9fa;}
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover .proj-img img { transform: scale(1.05); }
.proj-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.proj-head h3 { font-size: 1rem; font-weight: 700;}
.proj-link { padding: 6px; border-radius: 8px; color: var(--text-muted); transition: 0.3s; background: var(--bg-main);}
.proj-link:hover { color: var(--purple-main); }
.proj-desc { font-size: 0.8rem; margin-bottom: 15px; flex-grow:1; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lists (Certificates, Exp, Testimonials) */
.cert-item, .exp-item, .testimonial-card { padding: 15px; display: flex; align-items: center; gap: 12px; border-radius: var(--radius-md); background: var(--inner-card-bg);}
[data-theme="default"] .cert-item, [data-theme="default"] .testimonial-card { background: #f8f9fa; border: 1px solid #f1f5f9; }
.cert-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: white; flex-shrink:0; }
.cert-info h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }

.exp-item { flex-direction: column; align-items: flex-start; gap: 3px; border-left: 2px solid var(--purple-main); border-radius: 0 12px 12px 0;}
[data-theme="default"] .exp-item { background: #f8f9fa; }
.exp-item h4 { font-size: 0.9rem;}
.exp-date { font-size: 0.75rem; color: var(--text-muted); }

.testimonial-card { flex-direction: column; align-items: flex-start;}
.test-stars { color: #f59e0b; margin-bottom: 8px; font-size: 0.9rem; }
.test-author { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.test-author img { width: 35px; height: 35px; border-radius: 50%; }

/* CTA Banner */
.cta-banner { display: flex; justify-content: space-between; align-items: center; padding: 35px; border-radius: var(--radius-xl); background: var(--cta-bg); border: var(--card-border); backdrop-filter: var(--backdrop); box-shadow: var(--card-shadow); }
.cta-left { display: flex; align-items: center; gap: 20px; }
.cta-icon-box { width: 60px; height: 60px; border-radius: 16px; display: flex; justify-content: center; align-items: center; background: rgba(255,255,255,0.6);}

/* Restored Footer */
.bottom-footer { background: var(--card-bg); border-radius: var(--radius-xl); border: var(--card-border); padding: 40px; box-shadow: var(--card-shadow); backdrop-filter: var(--backdrop); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; border-bottom: 1px solid rgba(100,116,139,0.1); padding-bottom: 30px; }
.footer-brand h2 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 800;}
.social-icons { display: flex; gap: 15px; margin-top: 20px; }
.social-icons a { width: 35px; height: 35px; border-radius: 50%; background: var(--bg-main); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; color: var(--text-dark); transition: 0.3s; }
.social-icons a:hover { background: var(--purple-main); color: white; transform: translateY(-3px); }
.footer-links h4 { font-size: 1rem; margin-bottom: 15px; color: var(--text-dark); font-weight:700;}
.footer-links a { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; transition: 0.3s; }
.footer-links a:hover { color: var(--purple-main); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* Intersections Animations - Failsafe */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.show { opacity: 1; transform: translate(0,0); }

/* ========================================= */
/* RESPONSIVE ADJUSTMENTS (MOBILE FIXES)     */
/* ========================================= */
@media (max-width: 1400px) { 
    .footer-grid { grid-template-columns: 1fr 1fr; } 
}
@media (max-width: 1150px) { 
    .grid-3-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 
}

/* --- MOBILE PHONES & TABLETS --- */
@media (max-width: 992px) {
    .layout { flex-direction: column; }
    
    /* 1. Mobile Sidebar Fixes */
    .sidebar { 
        position: fixed; 
        left: -100%; 
        top: 0; 
        margin: 0; 
        width: 320px; 
        max-width: 85vw; /* Prevents it from taking 100% of the screen */
        z-index: 9999; 
        box-shadow: 20px 0 50px rgba(0,0,0,0.5); 
    }
    .sidebar.active { left: 0; }
    
    /* 2. GUARANTEED VISIBLE CLOSE BUTTON */
    .sidebar-close-btn {
        display: flex !important;
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        background: #ff4757 !important; /* Bright Red so you can't miss it */
        color: white !important;
        border: 2px solid white !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
        font-size: 1.8rem !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10000 !important; /* Forces it above everything else */
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4) !important;
        cursor: pointer;
    }

    .mobile-only { display: block; }
    .top-nav { display: none; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-graphics { width: 85%; margin-top: 30px; }
    
    /* Force main layout items to 1 column */
    .grid-2-col, .grid-3-col, .projects-grid, .footer-grid { 
        grid-template-columns: 1fr !important; 
    }
    
    /* 3. MOBILE STATS CARDS AS A 2-COLUMN GRID */
    .stats-container { 
        display: grid !important; 
        grid-template-columns: repeat(2, 1fr) !important; /* Creates 2 Cards per row */
        gap: 12px !important;
    }
    .stat-box {
        padding: 15px 10px !important;
        flex-direction: column !important; /* Stack icon on top of text */
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    /* Makes the 5th stat card (Rating) span full width at the bottom to look neat */
    .stat-box:last-child {
        grid-column: span 2;
        flex-direction: row !important; /* Keep it horizontal */
    }
    .stat-box h3 { font-size: 1.2rem !important; margin-top: 8px; }
    .stat-box p { font-size: 0.75rem !important; white-space: normal !important; }

    .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
    .cta-left { flex-direction: column; }
}

/* --- SMALL MOBILE PHONES --- */
@media (max-width: 480px) {
    .stat-box h3 { font-size: 1.1rem !important; }
    .stat-img { width: 40px !important; height: 40px !important; font-size: 1.3rem !important; }
}
/* ========================================= */
/* PREMIUM ANIMATIONS & MICRO-INTERACTIONS   */
/* ========================================= */

/* 1. Click (Press) Animation for all buttons */
.btn-primary:active, .btn-secondary:active, .theme-btn:active, .view-all-btn:active {
    transform: scale(0.92) translateY(2px) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: all 0.1s ease; /* Fast snap down */
}

/* 2. Bouncy Hover for Project Cards & Stat Boxes */
.project-card, .stat-box {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Creates a springy bounce effect */
}
.project-card:hover, .stat-box:hover {
    transform: translateY(-8px) scale(1.03);
    z-index: 10;
}

/* 3. Slide Hover for Lists (Certificates, Experience, Testimonials) */
.cert-item, .exp-item, .testimonial-card {
    transition: all 0.3s ease;
}
.cert-item:hover, .exp-item:hover, .testimonial-card:hover {
    transform: translateX(10px); /* Slides slightly to the right */
    box-shadow: -5px 5px 15px rgba(0,0,0,0.05);
}

/* 4. Playful Twirl Hover for Social Icons & Links (VIBRATION BUG FIXED) */
.icon-3d, .proj-link, .social-icons a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; 
    will-change: transform; /* Hardware acceleration for smooth 3D */
    -webkit-backface-visibility: hidden; /* Stops Chrome flickering */
    backface-visibility: hidden;
}

/* This creates an invisible "Force Field" around the icon. 
   If the icon bounces away from your mouse, your mouse is still touching 
   this invisible field, stopping the vibration loop permanently. */
.icon-3d::after, .proj-link::after, .social-icons a::after {
    content: '';
    position: absolute;
    top: -15px; 
    bottom: -15px; 
    left: -15px; 
    right: -15px;
    border-radius: 50%;
    z-index: 1;
}

.icon-3d:hover, .proj-link:hover, .social-icons a:hover {
    /* translateZ(0) forces the GPU to render it smoothly */
    transform: translateY(-5px) rotate(8deg) scale(1.15) translateZ(0);
}
/* 5. Advanced Complex Floating for Hero Icons */
@keyframes float-complex {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(12px, -15px) rotate(8deg); }
    66% { transform: translate(-10px, 12px) rotate(-5deg); }
}
.icon-1 { animation: float-complex 6s ease-in-out infinite; }
.icon-2 { animation: float-complex 7s ease-in-out infinite reverse; }
.icon-3 { animation: float-complex 5s ease-in-out infinite 1s; }


/* ========================================= */
/* 4. AURORA GLASS THEME (Liquid Pearl Refined) */
/* ========================================= */
[data-theme="aurora-glass"] {
    /* Base background is a warm, pearlescent white */
    --bg-main: #fcf9fa; 
    --text-dark: #2d2640; /* Deep indigo text instead of harsh black */
    --text-muted: #726887;
    
    /* Extreme Glass Panels */
    --card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
    --card-border: 1px solid rgba(255, 255, 255, 0.8);
    --card-shadow: 
        0 30px 60px rgba(167, 139, 250, 0.15), 
        inset 0 2px 6px rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(255, 255, 255, 0.2);
        
    /* Inner Glass Elements */
    --inner-card-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.15));
    --inner-card-shadow: 
        inset 0 3px 8px rgba(255, 255, 255, 0.9), 
        0 8px 20px rgba(0,0,0,0.04);
        
    --hero-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
    --cta-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    
    /* Heavy blur and color saturation */
    --backdrop: blur(24px) saturate(130%); 
    --blob-opacity: 0.9; /* Make the background colors pop through the glass */
}

/* 1. Custom Background Colors for Aurora Theme (Matches your image) */
[data-theme="aurora-glass"] .blob-1 { background: #ff9a9e; /* Warm Pink */ }
[data-theme="aurora-glass"] .blob-2 { background: #a18cd1; /* Soft Purple */ }
[data-theme="aurora-glass"] .blob-3 { background: #96e6a1; /* Teal/Cyan */ }

/* 2. High-Gloss Pill Buttons (Like the image) */
[data-theme="aurora-glass"] .btn-primary {
    background: linear-gradient(135deg, #a78bfa, #c084fc);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 15px 25px rgba(167, 139, 250, 0.4), 
        inset 0 4px 8px rgba(255, 255, 255, 0.8), /* Top highlight */
        inset 0 -4px 8px rgba(0, 0, 0, 0.15);     /* Bottom shadow */
    color: #ffffff;
}

[data-theme="aurora-glass"] .btn-secondary {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.05), 
        inset 0 4px 8px rgba(255, 255, 255, 1), 
        inset 0 -4px 8px rgba(0, 0, 0, 0.05);
    color: #0d9488; /* Teal text like the secondary button in image */
}

/* 3. Make inner cards look like physical glass plates */
[data-theme="aurora-glass"] .inner-card-3d {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 2px solid rgba(255, 255, 255, 1); /* Intense top reflection */
    backdrop-filter: blur(10px);
}

/* ========================================= */
/* 5. EXTREME 3D CLAY THEME (Reference Image)*/
/* ========================================= */
[data-theme="soft-3d"] {
    --bg-main: #e1dcf0; /* Deep pastel lavender background makes white cards POP */
    --text-dark: #3a3253; 
    --text-muted: #7b7094;
    
    /* THE REAL CLAY EFFECT (4-Part Shadow) */
    --card-bg: #ffffff;
    --card-border: none;
    --card-shadow: 
        15px 15px 30px rgba(150, 135, 175, 0.35),   /* Deep outer drop shadow */
        -10px -10px 20px rgba(255, 255, 255, 0.9),  /* Top-left soft glow */
        inset 5px 6px 12px rgba(255, 255, 255, 1),  /* Thick bright top-left rim */
        inset -5px -6px 15px rgba(190, 180, 210, 0.35); /* Inner bottom shadow for thickness */
        
    --inner-card-bg: #fdfcff;
    --inner-card-shadow: 
        8px 8px 15px rgba(150, 135, 175, 0.15),
        -5px -5px 10px rgba(255, 255, 255, 0.8),
        inset 3px 3px 6px rgba(255, 255, 255, 1),
        inset -3px -4px 8px rgba(190, 180, 210, 0.2);
        
    --hero-bg: #ffffff;
    --cta-bg: #ffffff;
    --backdrop: none;
    --blob-opacity: 0;
    
    /* Maximum Roundness */
    --radius-xl: 35px;
    --radius-lg: 25px;
    --radius-md: 18px;
}

/* 1. Solid Purple Sidebar */
[data-theme="soft-3d"] .sidebar {
    background: #8b79f6; /* Solid reference purple */
    border: none;
    box-shadow: 15px 0 35px rgba(100, 80, 160, 0.25), inset -5px 0 15px rgba(0,0,0,0.05);
}
[data-theme="soft-3d"] .sidebar h2, 
[data-theme="soft-3d"] .sidebar .text-dark { color: #ffffff; }
[data-theme="soft-3d"] .sidebar .text-muted { color: rgba(255, 255, 255, 0.8); }
[data-theme="soft-3d"] .sidebar-plant { filter: drop-shadow(0 15px 20px rgba(0,0,0,0.3)); }

/* Sidebar Navigation Pills */
[data-theme="soft-3d"] .nav-menu a { color: rgba(255, 255, 255, 0.8); font-weight: 600;}
[data-theme="soft-3d"] .nav-menu a:hover { background: rgba(255, 255, 255, 0.15); color: white; transform: scale(1.02);}
[data-theme="soft-3d"] .nav-menu a.active {
    background: #ffffff;
    color: #8b79f6;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2), inset 2px 3px 5px rgba(255,255,255,1);
    transform: scale(1.05);
}

/* Sidebar "Hire Me" Card & Peach Button */
[data-theme="soft-3d"] .sidebar .hire-card {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2);
    border-radius: 25px;
}
[data-theme="soft-3d"] .sidebar .btn-primary {
    background: #ffb8a3; /* Peach color */
    color: #b3391d;
    box-shadow: 
        0 8px 15px rgba(209, 86, 63, 0.3), 
        inset 3px 4px 8px rgba(255, 255, 255, 0.8), /* Peach highlight */
        inset -4px -5px 10px rgba(200, 100, 80, 0.4); /* Peach depth */
}

/* Sidebar Theme Switcher */
[data-theme="soft-3d"] .theme-switcher-box {
    background: rgba(255,255,255,0.15); border: none; color: white; box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2);
}
[data-theme="soft-3d"] .theme-btn {
    background: #ffffff; color: #8b79f6; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 2. EXTREME PILLOWY BUTTONS (Main UI) */
[data-theme="soft-3d"] .btn-primary {
    background: #9b72fa;
    color: white;
    border: none;
    box-shadow: 
        0 12px 20px rgba(139, 92, 246, 0.4),
        inset 3px 5px 8px rgba(255, 255, 255, 0.5),   /* Glossy top */
        inset -4px -6px 12px rgba(80, 30, 150, 0.6);  /* Deep jelly bottom shadow */
    border-radius: 40px; 
}
[data-theme="soft-3d"] .btn-secondary {
    background: #ffffff;
    box-shadow: 
        0 10px 20px rgba(150, 135, 175, 0.2), 
        inset 3px 4px 8px rgba(255, 255, 255, 1), 
        inset -3px -4px 10px rgba(190, 180, 210, 0.3);
}

/* 3. Pastel Color Coding for Stat Boxes (Exactly like Reference) */
[data-theme="soft-3d"] .stat-box { border-radius: 28px; border: none; }
[data-theme="soft-3d"] .stat-box:nth-child(1) { background: #f1e9ff; } /* Purple */
[data-theme="soft-3d"] .stat-box:nth-child(2) { background: #ffefe8; } /* Peach */
[data-theme="soft-3d"] .stat-box:nth-child(3) { background: #fff6d9; } /* Yellow */
[data-theme="soft-3d"] .stat-box:nth-child(4) { background: #eaf3ff; } /* Blue */
[data-theme="soft-3d"] .stat-box:nth-child(5) { background: #fdfcff; } /* White */

[data-theme="soft-3d"] .stat-box .stat-img {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05), inset 2px 3px 5px rgba(255,255,255,1), inset -2px -2px 5px rgba(0,0,0,0.05);
}

/* Top Header adjustments */
[data-theme="soft-3d"] .top-header, [data-theme="soft-3d"] .cta-banner { background: #ffffff; }
[data-theme="soft-3d"] .icon-3d { background: #ffffff; box-shadow: var(--inner-card-shadow); }



/* Profile Enlarge Styles */
#profile-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px); /* Blurs the background */
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: zoomIn 0.3s ease-out;
}

.lightbox-content img {
    max-width: 80vw;
    max-height: 70vh;
    border-radius: var(--radius-xl);
    border: 4px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

#close-lightbox {
    cursor: pointer;
    padding: 10px 20px;
}

/* Animation for the pop-up */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Keep the sidebar image looking clickable */
#sidebar-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#sidebar-img:hover {
    transform: scale(1.05);
}



/* --- FIXED WELCOME MODAL CSS --- */
.custom-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Extremely high to stay on top */
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-modal-container .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px); /* Blurs the background */
    -webkit-backdrop-filter: blur(10px);
}

.welcome-card {
    position: relative;
    z-index: 10001;
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--card-shadow);
    animation: modalSlideUp 0.4s ease-out;
}

.welcome-icon-box {
    width: 70px;
    height: 70px;
    background: var(--inner-card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}

.welcome-body p {
    margin-bottom: 15px;
    font-size: 1.05rem; /* Slightly larger */
    line-height: 1.6;
    color: #000000 !important; /* Forces Deep Black */
    font-weight: 500; /* Makes text slightly thicker for better contrast */
}

/* Also make sure the "Grand Welcome" title is very dark if it's not a gradient */
.welcome-header h2 {
    color: #000000;
    margin-top: 10px;
}

/* Ensure the bold tags inside the message are also deep black */
.welcome-body b {
    color: #000000;
    font-weight: 800;
}

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Ensure hidden works */
.hidden { display: none !important; }



/* --- UPDATED TOP THEME PILL BUTTON --- */
#theme-btn-top.theme-nav-pill {
    width: auto !important; /* Makes it wide */
    padding: 0 16px;
    border-radius: 30px !important;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.1); /* Subtle purple border */
}

/* Hover Effect for the Pill */
#theme-btn-top.theme-nav-pill:hover {
    color: var(--purple-main);
    transform: translateY(-3px); /* Lifts up */
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.15); /* Soft purple glow */
    background: var(--inner-card-bg);
}

/* Style for the text inside */
.nav-theme-label {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Icon size inside the pill */
#theme-btn-top i {
    font-size: 1.1rem;
}

/* Responsive: Hide text on mobile to save space */
@media (max-width: 768px) {
    .nav-theme-label {
        display: none;
    }
    #theme-btn-top.theme-nav-pill {
        width: 40px !important; /* Back to circle */
        padding: 0;
        justify-content: center;
    }
}




/* Ensure clickable stats cards look exactly like the others */
.stat-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex; /* Keeps the internal layout correct */
    cursor: pointer;
    transition: var(--transition);
}

.stat-card-link:hover {
    transform: translateY(-5px);
    border-color: var(--purple-main); /* Gives a nice highlight on hover */
}

/* Optional: Add a small arrow to clickable cards only */
.stat-card-link::after {
    content: '\eb32'; /* Boxicons arrow icon code */
    font-family: 'boxicons';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0.3;
    transition: 0.3s;
}

.stat-card-link:hover::after {
    opacity: 1;
    color: var(--purple-main);
}