/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* DEFAULT DARK THEME (Slate & Cyan) */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #ffffff;
    --text-muted: #94a3b8;
    --color-cyan: #06b6d4;
    --color-cyan-glow: rgba(6, 182, 212, 0.5);
    --color-purple: #a855f7;
    --color-purple-glow: rgba(168, 85, 247, 0.5);
    --timeline-border: rgba(6, 182, 212, 0.3);
    --font-primary: 'Inter', sans-serif;
    --section-max-width: 1200px; 
    --skillsbackground: rgba(6, 181, 212, 0.097);
    --social-icon-bg: rgba(30, 41, 59, 0.5);
}

/* LIGHT THEME OVERRIDES (Berry Creative: Raspberry & Violet) */
[data-theme="light"] {
    --bg-dark: #faf5ff;        /* Very light purple tint */
    --bg-card: #ffffff;        /* Pure White cards */
    --text-light: #002a78;     /* Dark purple text */
    --text-muted: #475569;     /* Muted plum */
    
    --timeline-border: rgba(219, 39, 119, 0.4);
    --skillsbackground: rgba(219, 39, 120, 0.158);
    --social-icon-bg: rgba(255, 255, 255, 0.8);

    /* Rebranding Cyan -> Raspberry */
    --color-cyan: #db2777; 
    --color-cyan-glow: rgba(219, 39, 119, 0.4);
    
    /* Rebranding Purple -> Violet */
    --color-purple: #db2777; 
    --color-purple-glow: #db2777;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: var(--text-light); transition: color 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. SHARED LAYOUT & UTILITIES
   ========================================= */
.site-wrapper { width: 100%; position: relative; }

section {
    padding: 80px 20px;
    width: 100%;
    position: relative;
    scroll-margin-top: 80px;
}

.about-container, 
.skills-list, 
.timeline, 
.education-timeline,
.projects-grid, 
.cert-list, 
.contact-container {
    max-width: var(--section-max-width);
    margin: 0 auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 15px var(--color-purple-glow);
}
/* Remove heavy shadow in light mode for cleaner look */
[data-theme="light"] .section-title { text-shadow: none; }

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
    margin: 0 auto 60px auto;
    max-width: 800px;
}
[data-theme="light"] .section-divider {
    /* Uses new Raspberry color automatically */
    background: linear-gradient(90deg, transparent, var(--color-cyan), transparent);
}

/* Utility: Background Glows */
.glow-purple {
    background-color: rgba(168, 85, 247, 0.02);
    box-shadow: inset 0 0 50px rgba(168, 85, 247, 0.05);
}
[data-theme="light"] .glow-purple {
    background-color: #faf5ff;
    box-shadow: none;
    border-top: 1px solid rgba(46, 16, 101, 0.05);
    border-bottom: 1px solid rgba(46, 16, 101, 0.05);
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky; 
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease;
}
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(46, 16, 101, 0.1);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--color-cyan), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--color-cyan-glow);
}
[data-theme="light"] .logo-text { text-shadow: none; }

.site-nav { display: flex; align-items: center; }
.nav-links { display: flex; gap: 30px; margin-right: 30px; }
.nav-links a:hover { color: var(--color-cyan); }

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--color-cyan);
    color: var(--text-light);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.theme-toggle-btn:hover {
    background: var(--color-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-glow {
    background-color: var(--color-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}
.btn-glow:hover { box-shadow: 0 0 25px var(--color-cyan-glow); }

.btn-primary-glow {
    background-color: var(--color-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--color-cyan-glow);
}
.btn-primary-glow:hover { box-shadow: 0 0 30px var(--color-cyan-glow); }

.btn-outline {
    border: 2px solid var(--color-cyan);
    color: var(--text-light);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--skillsbackground);
    box-shadow: 0 0 15px var(--color-cyan-glow);
}
/* Tint hover for light mode */
[data-theme="light"] .btn-outline:hover {
    background-color: rgba(219, 39, 119, 0.1);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    
    /* Dark Theme Background */
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(transparent, transparent 50px, rgba(255, 255, 255, 0.02) 50px, rgba(255, 255, 255, 0.02) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255, 255, 255, 0.02) 50px, rgba(255, 255, 255, 0.02) 51px);
    background-attachment: fixed;
    background-color: var(--bg-dark);
    transition: background-image 0.3s ease, background-color 0.3s ease;
}

/* Light Theme Background (Berry & Violet Circuit) */
[data-theme="light"] .hero-section {
    background-image: 
        /* Raspberry Pink Glow (Top Left) */
        radial-gradient(circle at 20% 30%, rgba(219, 39, 119, 0.25) 0%, transparent 50%),
        /* Violet Glow (Bottom Right) */
        radial-gradient(circle at 80% 70%, rgba(228, 58, 237, 0.25) 0%, transparent 50%),
        /* Grid Lines - Faint Purple */
        repeating-linear-gradient(transparent, transparent 50px, rgba(46, 16, 101, 0.03) 50px, rgba(46, 16, 101, 0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(46, 16, 101, 0.03) 50px, rgba(46, 16, 101, 0.03) 51px);
}

#particle-canvas {
    opacity: 0.2;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}

.hero-content { z-index: 2; max-width: 800px; }

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.typing-container {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-family: monospace;
    min-height: 1.5em;
}

#typing-text { color: var(--color-cyan); }
.cursor { color: var(--color-cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; }

.hero-social { display: flex; justify-content: center; gap: 20px; }
.hero-social a {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background-color: var(--social-icon-bg);
    border: 1px solid var(--timeline-border);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}
[data-theme="light"] .hero-social a {
    background-color: #fff;
    border-color: var(--timeline-border);
    color: var(--text-muted);
}
.hero-social a:hover {
    background-color: var(--social-icon-bg);
    border-color: var(--color-cyan);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--color-cyan-glow);
    color: var(--text-light);
}

.StatusCount {
    margin-top: 60px;
    display: flex; justify-content: center; gap: 50px; flex-wrap: wrap;
    z-index: 2;
}
.stat-card { text-align: center; }
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* FIX: Darker gradient for Light Mode so numbers are visible */
[data-theme="light"] .stat-number {
    background: linear-gradient(135deg, #2e1065, var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 5px; }
.partation { font-size: 2.5rem; color: var(--text-muted); opacity: 0.2; font-weight: 100; }

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}
.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 15px;
}
.about-text strong,
.highlight {
    color: var(--color-cyan);
    font-weight: 600;
}
.about-image { display: flex; justify-content: center; }
.about-image img {
    width: 300px; height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-cyan);
    box-shadow: 0 0 30px var(--color-cyan-glow);
    transition: transform 0.3s ease;
}
.about-image img:hover { transform: scale(1.05); }

/* =========================================
   6. SKILLS SECTION
   ========================================= */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
    justify-content: center;
}

.skill-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(30, 41, 59, 0.4);
    padding: 20px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
[data-theme="light"] .skill-item {
    background: #ffffff;
    border-color: rgba(46, 16, 101, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.skill-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-cyan);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--color-cyan-glow);
}
[data-theme="light"] .skill-item:hover {
    background: #fff;
    border-color: var(--color-cyan);
}

.skill-icon { width: 40px; height: 40px; object-fit: contain; margin-bottom: 10px; }

/* FIX: Invert icons only in Dark Mode. */
.invert-white { filter: invert(1) brightness(200%); }
[data-theme="light"] .invert-white { filter: none; opacity: 0.9; }

.skill-name { font-size: 0.9rem; font-weight: 500; }

/* =========================================
   7. TIMELINE (Experience & Education)
   ========================================= */
.timeline, .education-timeline {
    position: relative;
    padding-left: 50px;
    border-left: 2px solid var(--timeline-border);
}

.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -59px;
    top: 0;
    width: 16px; height: 16px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-glow);
    z-index: 2;
    transition: transform 0.3s ease;
}
.timeline-item:hover .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--color-cyan);
}

.timeline-marker .badge {
    position: absolute;
    left: 0%; top: 50%;
    margin-left: 8px;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--color-purple), var(--color-cyan));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px var(--color-purple-glow);
    font-size: 1.2rem;
    color: #fff; /* Ensure icon in badge is white */
}
.timeline-marker:has(.badge) { background: transparent; box-shadow: none; width: 0; height: 0; }
.founder-item .timeline-marker { top: 20px; left: -59px; }

.experience-card, .education-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    display: flex; gap: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
/* Light Mode Cards */
[data-theme="light"] .experience-card, 
[data-theme="light"] .education-card {
    background: #ffffff;
    border: 1px solid rgba(46, 16, 101, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.experience-card:hover, .education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
[data-theme="light"] .experience-card:hover, 
[data-theme="light"] .education-card:hover {
    box-shadow: 0 10px 30px -10px rgba(219, 39, 119, 0.15);
}

.org-logo {
    width: 60px; height: 60px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 5px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}
[data-theme="light"] .org-logo {
    background: #f1f5f9;
    border-color: rgba(46, 16, 101, 0.1);
}
.org-logo img { width: 100%; height: 100%; border-radius: 8px; object-fit: contain; }

.timeline-content { flex: 1; }
.timeline-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: var(--text-light); }
.timeline-date { font-size: 0.85rem; color: var(--color-cyan); margin-bottom: 5px; font-family: monospace; display: block;}
.timeline-institution { color: var(--color-purple); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.timeline-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tech-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--skillsbackground);
    border: 1px solid var(--timeline-border);
    border-radius: 15px;
    color: var(--color-cyan);
}

.view-cert {
    display: inline-block; margin-top: 10px;
    font-size: 0.85rem; color: var(--color-purple);
    border-bottom: 1px dashed var(--color-purple);
}
.view-cert:hover { color: var(--text-light); border-bottom-style: solid; }

/* =========================================
   8. PROJECTS SECTION
   ========================================= */
.project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0 30px;
}

.project-tab {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-tab:hover,
.project-tab.active {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    color: #0b1120;
    border-color: transparent;
    box-shadow: 0 0 18px rgba(80, 185, 255, 0.4);
    font-weight: 700;
}

.project-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex; flex-direction: column;
    height: 100%;
}
[data-theme="light"] .project-card {
    background: #ffffff;
    border-color: rgba(46, 16, 101, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

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

.card-image {
    height: 180px; background: #111;
    overflow: hidden; position: relative;
    flex-shrink: 0;
}
.card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .card-image img { transform: scale(1.1); }

.card-content { 
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}
.card-title { font-size: 1.25rem; margin-bottom: 10px; color: var(--text-light); }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; flex-grow: 1; }

.project-card .tech-stack { margin-top: auto; margin-bottom: 20px; }

.project-links { display: flex; gap: 10px; }
.project-link {
    flex: 1; text-align: center; padding: 8px; font-size: 0.9rem;
    border: 1px solid var(--color-cyan); border-radius: 6px; color: var(--color-cyan);
}
.project-link:hover { background: var(--color-cyan); color: var(--bg-dark); }

.view-more-container { text-align: center; margin-top: 50px; }
.hidden { display: none; }

/* =========================================
   9. CERTIFICATIONS
   ========================================= */
.cert-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px;
}

.cert-card-item {
    display: flex; align-items: center;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
}
[data-theme="light"] .cert-card-item {
    background: #ffffff;
    border-color: rgba(46, 16, 101, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.cert-card-item:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: var(--color-cyan);
    transform: translateX(5px);
}
[data-theme="light"] .cert-card-item:hover {
    background: #fff;
}

.cert-logo-wrapper {
    width: 60px; height: 60px;
    border-radius: 8px; 
    margin-right: 15px;
    padding: 2px; 
    flex-shrink: 0;
}
.cert-logo-img { width: 100%; height: 100%; border-radius: 8px; object-fit: contain; }

.cert-info { flex: 1; padding-right: 10px; }
.cert-name { font-size: 1rem; font-weight: 700; line-height: 1.2; margin-bottom: 2px; }
.cert-issuer { font-size: 0.8rem; color: var(--color-cyan); }
.cert-date { font-size: 0.75rem; color: var(--text-muted); }

.cert-view-btn {
    color: var(--text-muted); font-size: 0.8rem;
    border: 1px solid var(--text-muted); padding: 5px 12px;
    border-radius: 20px; white-space: nowrap;
}
.cert-view-btn:hover { border-color: var(--color-cyan); color: var(--color-cyan); }

/* =========================================
   10. CONTACT SECTION
   ========================================= */
.contact-container {
    display: grid; grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h3 { font-size: 1.8rem; margin-bottom: 15px; color: var(--color-cyan); }
.detail-item {
    display: flex; align-items: center; gap: 15px;
    margin-top: 20px; font-size: 1.1rem; color: var(--text-muted);
}
.detail-item i { 
    width: 40px; height: 40px; 
    display: flex; align-items: center; justify-content: center;
    background: rgba(168, 85, 247, 0.1); 
    border-radius: 50%; color: var(--color-purple); 
}

/* Form Styles */
.contact-form {
    background: rgba(30, 41, 59, 0.3);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}
[data-theme="light"] .contact-form {
    background: #ffffff;
    border: 1px solid rgba(46, 16, 101, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; color: #fff; font-family: inherit;
    transition: all 0.3s;
}

/* FIX: Light Mode Form Inputs should be light with dark text */
[data-theme="light"] .form-group input, 
[data-theme="light"] .form-group textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #2e1065;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    background: rgba(15, 23, 42, 0.9);
}
[data-theme="light"] .form-group input:focus, 
[data-theme="light"] .form-group textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(219, 39, 119, 0.3);
}

/* =========================================
   11. FOOTER SECTION
   ========================================= */
.modern-footer {
    margin-top: 100px;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 5% 20px;
    position: relative;
}
[data-theme="light"] .modern-footer {
    background: #f8fafc;
    border-top: 1px solid rgba(46, 16, 101, 0.1);
}

.footer-cta {
    background: linear-gradient(90deg, var(--bg-card), #0f172a);
    border: 1px solid var(--color-cyan-glow);
    border-radius: 15px;
    padding: 40px;
    display: flex; justify-content: space-between; align-items: center;
    max-width: var(--section-max-width);
    margin: -100px auto 50px auto;
    position: relative; z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
[data-theme="light"] .footer-cta {
    background: linear-gradient(90deg, #faf5ff, #ffffff);
    border: 1px solid var(--color-cyan);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.footer-cta h2 { font-size: 1.8rem; margin-bottom: 5px; }

.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: var(--section-max-width);
    margin: 0 auto 40px auto;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 40px;
}
[data-theme="light"] .footer-grid { border-bottom: 1px solid rgba(46, 16, 101, 0.1); }

.footer-col h4 { color: var(--color-cyan); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-purple); font-weight: bold;}

.footer-socials { display: flex; align-items: center; margin-top: 10px; }
.footer-socials i {
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--social-icon-bg);
    border: 1px solid var(--timeline-border);
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-muted);
    margin-right: 10px;
}
[data-theme="light"] .footer-socials i {
    background: #fff;
    border-color: var(--timeline-border);
}
.footer-socials i:hover {
    background-color: var(--social-icon-bg);
    border-color: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan-glow);
    color: var(--text-light);
}

.status-pill {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 15px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-pill .dot {
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.footer-bottom {
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
    max-width: var(--section-max-width); margin: 0 auto;
}

/* =========================================
   12. RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 900px) {
    .site-header { padding: 15px 20px; }
    
    .hamburger { display: flex; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
    .hamburger span { width: 25px; height: 3px; background: #fff; border-radius: 2px; transition: all 0.3s ease; }
    
    /* FIX: Make hamburger visible on Light Mode */
    [data-theme="light"] .hamburger span { background: var(--text-light); }

    /* Hamburger Active Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .site-nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(15,23,42,0.98);
        flex-direction: column; padding: 25px 20px; gap: 20px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }
    [data-theme="light"] .site-nav {
        background: rgba(255,255,255,0.98);
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
    .site-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-links { flex-direction: column; margin: 0; text-align: center; gap: 15px; }
    
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .footer-cta { flex-direction: column; text-align: center; gap: 20px; margin-top: -80px; }
    
    /* Mobile View Timeline Center Alignment */
    .timeline, .education-timeline {
        padding-left: 0;
        border-left: none;
        text-align: center;
        position: relative;
    }

    .timeline::before, .education-timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 2px;
        background: var(--timeline-border);
        z-index: 0;
    }

    .timeline-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin-bottom: 40px;
        z-index: 1;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-marker {
        position: relative;
        left: 0;
        top: 0;
        margin: 0 auto 20px auto;
        z-index: 2;
    }

    .timeline-marker:has(.badge) {
        width: 40px;
        height: 40px;
        background: transparent;
        box-shadow: none;
    }

    .founder-item .timeline-marker {
        top: 0;
        left: 0;
    }

    .timeline-marker .badge {
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: 0;
        transform: translate(-50%, -50%);
    }

    .experience-card, .education-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .org-logo {
        margin: 0 auto 15px auto;
    }

    .timeline-content {
        text-align: center;
        width: 100%;
    }

    .timeline-title, 
    .timeline-date, 
    .timeline-institution, 
    .timeline-desc {
        text-align: center;
    }

    .tech-stack {
        justify-content: center;
        text-align: center;
    }

    .cert-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 65px);
        min-height: calc(100dvh - 65px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 30px 20px 20px 20px;
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .about-text p {
        text-align: justify;
    }
}

@media (max-width: 600px) {
    .hero-section {
        min-height: calc(100vh - 65px);
        min-height: calc(100dvh - 65px);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        padding: 25px 15px 20px 15px;
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .typing-container {
        font-size: 1.05rem;
        margin-bottom: 25px;
        min-height: 2.4em;
        padding: 10px 0;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
        margin-bottom: 25px;
        width: 100%;
        padding: 50px 0 0 0;
    }

    .hero-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .hero-social {
        display: flex;
        justify-content: center;
        gap: 18px;
        margin-bottom: 15px;
    }

    /* Mobile View StatusCount Horizontal Alignment */
    .StatusCount {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 4px;
        margin-top: auto;
        padding: 10px 0 50px 0;
    }

    .stat-card {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .stat-number {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
        margin-top: 3px;
    }

    .partation {
        display: block;
        font-size: 1.1rem;
        opacity: 0.25;
        align-self: center;
        flex-shrink: 0;
    }
    
    .experience-card, .education-card { flex-direction: column; }
    .org-logo { width: 50px; height: 50px; margin-bottom: 15px; }
    
    section { padding: 60px 15px; }
    .section-title { font-size: 1.8rem; }
    .about-image img { width: 250px; height: 250px; }
    .about-text p { text-align: justify; }
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px; 
    height: 50px;
    background: var(--color-cyan);
    color: var(--bg-dark);
    border-radius: 50%;
    border: none;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 15px var(--color-cyan-glow);
    z-index: 2000;
    
    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* State when button is visible */
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--color-cyan-glow);
}