/* Reset & Globals */
:root {
    --bg-dark: #0a0a0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-1: #6d28d9;
    --accent-2: #2563eb;
    --accent-3: #0ea5e9;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    font-family: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: rgba(0, 0, 0, 0.03);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-border: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .glass-panel {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .status-pill {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .project-tab-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

[data-theme="light"] .project-tab-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="light"] .project-tab-btn.active {
    background: var(--accent-1);
    color: #fff;
    border-color: var(--accent-1);
}

[data-theme="light"] .tech-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-github-action {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-github-action:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.85);
}

[data-theme="light"] .nav-links.active {
    background: rgba(248, 250, 252, 0.98);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

[data-theme="light"] .footer-wide {
    background: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .avatar-img {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .badge-education {
    background: rgba(14, 165, 233, 0.06);
}


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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 10, 14, 0.7);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 5px;
}

.theme-btn:hover {
    color: var(--accent-3);
    transform: rotate(15deg);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-3);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Common Section Styles */
section {
    padding: 8rem 10% 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    margin-bottom: 4rem;
    text-align: center;
}

.section-heading h2 {
    font-size: 3rem;
    font-weight: 800;
}

.heading-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-3), transparent);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    color: white;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 15px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-3);
    color: var(--accent-3);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-3);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.sub-title {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2.4rem; /* For typing effect */
}

/* Typing effect cursor */
.typing-container::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: var(--accent-3);
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}




/* Hero Visual (Avatar + Stats) */
.hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3, .skills-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(5px);
}

.skill-tag:hover {
    border-color: var(--accent-3);
    color: var(--accent-3);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(14,165,233,0.1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}


/* Education Section */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .timeline-container::before {
    background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

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

.timeline-icon {
    position: absolute;
    left: 0;
    top: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-3);
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--accent-3);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.edu-title-group h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.edu-school {
    color: var(--accent-3);
    font-size: 1.1rem;
    font-weight: 500;
}

.edu-date {
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

[data-theme="light"] .edu-date {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.edu-contributions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.edu-contributions h4 {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

[data-theme="light"] .edu-contributions h4 {
    color: rgba(0,0,0,0.4);
}

.edu-contributions ul {
    list-style: none;
    padding: 0;
}

.edu-contributions li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.edu-contributions li:last-child {
    margin-bottom: 0;
}

.edu-contributions li i {
    color: #10b981; /* Green checkmark */
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: 30px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    backdrop-filter: blur(15px);
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    outline: none;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--accent-3);
    background: rgba(14, 165, 233, 0.05);
}

.submit-btn {
    align-self: center;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.submit-msg {
    display: none;
    color: #4ade80;
    margin-top: 1rem;
    font-weight: 500;
}

/* Footer */
.footer-wide {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 10%;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 14, 0.4);
    backdrop-filter: blur(10px);
    margin-top: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-center p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.footer-right.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.footer-right.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.footer-right.social-links a:hover {
    color: var(--accent-3);
    border-color: var(--accent-3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.2);
}

/* Scroll Animations Classes */
.hidden-element {
    opacity: 0;
    filter: blur(5px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden-element.up { transform: translateY(40px); }
.hidden-element.left { transform: translateX(-40px); }
.hidden-element.right { transform: translateX(40px); }
.hidden-element.scale { transform: scale(0.9); }

.show-element {
    opacity: 1;
    filter: blur(0);
    transform: translate(0) scale(1);
}

/* =========================================
   UI UPGRADE STYLES (Glassmorphism, Tabs, etc.)
   ========================================= */

.glass-panel {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-socials {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.hero-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.hero-socials a:hover {
    color: var(--accent-1);
    transform: translateY(-3px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 350px;
}

.stat-card {
    padding: 1.2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.4);
}

.stat-icon {
    font-size: 1.2rem;
    color: var(--accent-1);
    margin-bottom: 0.5rem;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-tabs-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.project-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.project-tab-btn.active {
    background: var(--accent-1);
    color: #fff;
    border-color: var(--accent-1);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

/* --- Avatar Card (Hero) --- */
.avatar-card {
    position: relative;
    width: 280px;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    z-index: 10;
}

.avatar-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-1);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.3;
    z-index: -1;
    top: 20px;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.avatar-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.avatar-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.badge-education {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    color: var(--accent-1);
}

/* --- Project Card (New Layout) --- */
.project-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.project-card-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--accent-1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-card-heading i {
    color: var(--accent-2);
    font-size: 1.2rem;
}

.project-card-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-3);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn-primary-sm {
    background: var(--accent-1);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary-sm:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn-github-action {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-github-action:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* --- Particle Canvas --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

/* ========================================= */

/* ═══ INTERACTIVE CASE STUDIES ═══ */
.featured-case-study-container {
    margin-top: 4rem;
}

.case-study-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.case-study-block.hidden {
    display: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 1rem;
}

.case-study-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.case-study-title i {
    color: var(--accent-3);
    margin-right: 0.5rem;
}

.case-study-sub {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Slicers / Filters */
.slicers-bar {
    padding: 1.5rem 2rem;
    border-radius: 16px;
}

.slicers-header {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.slicers-header i {
    color: var(--accent-3);
}

.slicer-tip {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.slicers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.slicer-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 180px;
}

.slicer-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.slicer-group label i {
    color: var(--accent-3);
    margin-right: 0.3rem;
}

.custom-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.5rem;
}

.custom-select option {
    background-color: #1a1a24;
    color: #f3f4f6;
    padding: 8px;
}

.custom-select:focus {
    border-color: var(--accent-3);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .custom-select {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

[data-theme="light"] .custom-select option {
    background-color: #ffffff;
    color: #0f172a;
}

/* CSV Upload Section */
.upload-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px dashed rgba(14, 165, 233, 0.4);
    background: rgba(14, 165, 233, 0.03);
    text-align: center;
    transition: var(--transition-smooth);
}

.upload-section:hover {
    border-color: var(--accent-3);
    background: rgba(14, 165, 233, 0.06);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.upload-icon {
    font-size: 2rem;
    color: var(--accent-3);
}

.upload-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.upload-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0;
}

.upload-btn {
    margin-top: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
    margin-top: 0.3rem;
}

.upload-note {
    font-size: 0.75rem !important;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Slicers Row Layout & Churn Note */
.slicers-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.slicers-main {
    flex: 1;
    min-width: 280px;
}

.churn-note {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.churn-note-icon {
    font-size: 1.3rem;
    color: #ef4444;
    margin-top: 0.1rem;
}

.churn-note strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.churn-note p {
    margin: 0;
    line-height: 1.45;
}

/* Savings Recommendations */
.savings-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.savings-tip {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    line-height: 1.4;
}

.tip-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-right: 0.4rem;
}

.tip-high .tip-badge { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.tip-medium .tip-badge { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.tip-opportunity .tip-badge { background: rgba(16, 185, 129, 0.2); color: #10b981; }

/* KPI Cards */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.kpi-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.kpi-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    transform: translateY(-3px);
}

[data-theme="light"] .kpi-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.08);
}

.kpi-card.kpi-red { border-left: 3px solid #FF6B6B; }
.kpi-card.kpi-amber { border-left: 3px solid #F6C90E; }
.kpi-card.kpi-blue { border-left: 3px solid #3498DB; }
.kpi-card.kpi-green { border-left: 3px solid #3FB950; }

.kpi-title {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.kpi-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.kpi-sub {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.chart-box {
    padding: 1.5rem;
    border-radius: 16px;
}

.chart-box h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.chart-box-full {
    grid-column: 1 / -1;
}

.chart-canvas-wrap {
    position: relative;
    height: 280px;
}

/* Dashboard Sections */
.dashboard-section {
    padding: 2rem;
    border-radius: 16px;
}

.dashboard-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-section h4 i {
    color: var(--accent-3);
    margin-right: 0.5rem;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

.sql-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.sql-table th {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-3);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem;
    text-align: left;
    white-space: nowrap;
}

.sql-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

[data-theme="light"] .sql-table td {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.sql-table tr:hover td {
    background: rgba(14, 165, 233, 0.05);
}

.severity-high {
    color: #FF6B6B;
    font-weight: 600;
}

.severity-safe {
    color: #3FB950;
    font-weight: 600;
}

.risk-score-badge {
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Persona Cards */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.persona-card {
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.persona-card:hover {
    transform: translateY(-4px);
}

.persona-card.saver { border-left: 3px solid #3FB950; }
.persona-card.balanced { border-left: 3px solid #3498DB; }
.persona-card.high-spender { border-left: 3px solid #FF6B6B; }

.persona-month {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.persona-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.persona-amount {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

/* ROI Simulator */
.roi-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.roi-slider-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.roi-slider-group strong {
    color: var(--accent-3);
}

.roi-slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.roi-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-3);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.roi-results {
    margin-bottom: 1.5rem;
}

.roi-recommendation {
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    line-height: 1.6;
}

.rec-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.rec-strong { background: rgba(63, 185, 80, 0.15); color: #3FB950; }
.rec-good { background: rgba(52, 152, 219, 0.15); color: #3498DB; }
.rec-marginal { background: rgba(246, 201, 14, 0.15); color: #F6C90E; }
.rec-bad { background: rgba(255, 107, 107, 0.15); color: #FF6B6B; }

/* Switch-case button in project cards */
.switch-case-btn {
    cursor: pointer;
    font-family: inherit;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .hero-section {
    .hero-visual {
        margin-top: 2rem;
    }

    .hero-socials {
        justify-content: center;
    }

    .stats-grid {
        margin: 1.5rem auto 0;
    }
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text, .skills-container {
        text-align: center;
    }
    
    .skills-grid {
        justify-content: center;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-3);
}

@media screen and (max-width: 768px) {
    .case-study-header {
        flex-direction: column;
        text-align: center;
    }

    .slicers-grid {
        flex-direction: column;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .roi-sliders {
        grid-template-columns: 1fr;
    }

    section {
    .project-card-heading {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
        padding: 6rem 5% 3rem;
    }

    .main-title { font-size: 3.5rem; }
    .sub-title { font-size: 1.5rem; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(10, 10, 14, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .input-group {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }

    .timeline-container {
        padding-left: 2rem;
    }
    
    .timeline-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .edu-header {
        flex-direction: column;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }

    .footer-wide {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .main-title { font-size: 2.8rem; }
}
