/* ==========================================================================
   PREMIUM PORTFOLIO STYLESHEET - KAZI HAQUE (EXECUTIVE PRESENCE)
   ========================================================================== */

/* --- CSS Reset & Base Setup --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Fonts */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shared Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* --- THEME PALETTES (HSL & MODES) --- */

/* Core Mode overrides */
html[data-theme-mode="dark"] {
    --bg-primary: hsl(220, 16%, 6%);
    --bg-secondary: hsl(220, 20%, 8%);
    --surface: hsla(220, 16%, 12%, 0.45);
    --surface-hover: hsla(220, 16%, 16%, 0.65);
    
    --text-primary: hsl(0, 0%, 94%);
    --text-secondary: hsl(220, 10%, 75%);
    --text-muted: hsl(220, 8%, 55%);
    
    --shadow-main: 0 10px 40px 0 rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 50px 0 rgba(0, 0, 0, 0.55);
    --header-bg: hsla(220, 16%, 6%, 0.5);
    --header-bg-scrolled: hsla(220, 16%, 6%, 0.85);
    --toast-border: var(--border-hover);
}

html[data-theme-mode="light"] {
    --bg-primary: hsl(220, 25%, 98%);
    --bg-secondary: hsl(220, 20%, 94%);
    --surface: hsla(220, 25%, 90%, 0.35);
    --surface-hover: hsla(220, 25%, 84%, 0.55);
    
    --text-primary: hsl(220, 20%, 12%);
    --text-secondary: hsl(220, 12%, 32%);
    --text-muted: hsl(220, 8%, 48%);
    
    --shadow-main: 0 10px 40px 0 rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 50px 0 rgba(0, 0, 0, 0.10);
    --header-bg: hsla(220, 25%, 98%, 0.55);
    --header-bg-scrolled: hsla(220, 25%, 98%, 0.85);
    --toast-border: var(--border);
}

/* Theme 1: Obsidian Executive (Default Gold Glow) */
html[data-theme="midnight"] {
    --primary: hsl(47, 75%, 58%); /* Champagne Gold */
    --primary-glow: hsla(47, 75%, 58%, 0.20);
    --accent: hsl(47, 50%, 75%);
    --accent-glow: hsla(47, 50%, 75%, 0.15);
    --gradient-text: linear-gradient(135deg, hsl(47, 85%, 65%) 0%, hsl(47, 50%, 80%) 100%);
    --gradient-glow: radial-gradient(circle, hsla(47, 75%, 58%, 0.12) 0%, transparent 70%);
}
html[data-theme-mode="dark"][data-theme="midnight"] {
    --border: hsla(47, 50%, 65%, 0.10);
    --border-hover: hsla(47, 70%, 60%, 0.35);
}
html[data-theme-mode="light"][data-theme="midnight"] {
    --border: hsla(47, 50%, 40%, 0.15);
    --border-hover: hsla(47, 60%, 30%, 0.35);
    --primary: hsl(42, 85%, 35%);
    --primary-glow: hsla(42, 85%, 35%, 0.15);
    --accent: hsl(42, 60%, 55%);
    --gradient-text: linear-gradient(135deg, hsl(42, 85%, 35%) 0%, hsl(42, 60%, 50%) 100%);
    --gradient-glow: radial-gradient(circle, hsla(42, 85%, 35%, 0.08) 0%, transparent 70%);
}

/* Theme 2: SaaS Emerald (Mint/Emerald Glow) */
html[data-theme="emerald"] {
    --primary: hsl(150, 75%, 45%); /* Mint Green */
    --primary-glow: hsla(150, 75%, 45%, 0.20);
    --accent: hsl(175, 75%, 45%);
    --accent-glow: hsla(175, 75%, 45%, 0.15);
    --gradient-text: linear-gradient(135deg, hsl(150, 75%, 45%) 0%, hsl(175, 75%, 45%) 100%);
    --gradient-glow: radial-gradient(circle, hsla(150, 75%, 45%, 0.12) 0%, transparent 70%);
}
html[data-theme-mode="dark"][data-theme="emerald"] {
    --border: hsla(150, 60%, 45%, 0.10);
    --border-hover: hsla(150, 80%, 40%, 0.35);
}
html[data-theme-mode="light"][data-theme="emerald"] {
    --border: hsla(150, 50%, 35%, 0.15);
    --border-hover: hsla(150, 70%, 28%, 0.35);
    --primary: hsl(150, 80%, 32%);
    --primary-glow: hsla(150, 80%, 32%, 0.15);
    --accent: hsl(170, 75%, 38%);
    --gradient-text: linear-gradient(135deg, hsl(150, 80%, 32%) 0%, hsl(170, 75%, 38%) 100%);
    --gradient-glow: radial-gradient(circle, hsla(150, 80%, 32%, 0.08) 0%, transparent 70%);
}

/* Theme 3: Steel Digital (Ice-Blue/Slate Glow) */
html[data-theme="crimson"] {
    --primary: hsl(200, 85%, 55%); /* Ice Blue */
    --primary-glow: hsla(200, 85%, 55%, 0.20);
    --accent: hsl(215, 85%, 60%);
    --accent-glow: hsla(215, 85%, 60%, 0.15);
    --gradient-text: linear-gradient(135deg, hsl(200, 85%, 55%) 0%, hsl(215, 85%, 60%) 100%);
    --gradient-glow: radial-gradient(circle, hsla(200, 85%, 55%, 0.12) 0%, transparent 70%);
}
html[data-theme-mode="dark"][data-theme="crimson"] {
    --border: hsla(200, 70%, 55%, 0.10);
    --border-hover: hsla(200, 90%, 50%, 0.35);
}
html[data-theme-mode="light"][data-theme="crimson"] {
    --border: hsla(200, 60%, 40%, 0.15);
    --border-hover: hsla(200, 80%, 30%, 0.35);
    --primary: hsl(205, 90%, 42%);
    --primary-glow: hsla(205, 90%, 42%, 0.15);
    --accent: hsl(215, 85%, 48%);
    --gradient-text: linear-gradient(135deg, hsl(205, 90%, 42%) 0%, hsl(215, 85%, 48%) 100%);
    --gradient-glow: radial-gradient(circle, hsla(205, 90%, 42%, 0.08) 0%, transparent 70%);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--surface);
    border: 2px solid var(--bg-primary);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- General Layout --- */
body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-slow);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

/* --- Custom Cursor Follower --- */
@media (hover: hover) {
    body {
        cursor: none;
    }
    
    a, button, input, textarea, select, .tab-btn, .filter-btn {
        cursor: none;
    }

    .cursor-follower {
        position: fixed;
        width: 34px;
        height: 34px;
        border: 1px solid var(--primary);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 9999;
        transition: transform 0.12s ease, border-color var(--transition-fast), width 0.3s ease, height 0.3s ease;
        background-color: transparent;
        box-shadow: 0 0 10px var(--primary-glow);
    }

    .cursor-dot {
        position: fixed;
        width: 6px;
        height: 6px;
        background-color: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        z-index: 10000;
        transition: transform 0.06s ease, background-color var(--transition-fast);
    }

    .cursor-hovered {
        width: 50px;
        height: 50px;
        background-color: var(--primary-glow);
        border-color: var(--primary);
    }

    .cursor-clicked {
        transform: translate(-50%, -50%) scale(0.8);
        background-color: var(--primary);
    }
}

/* --- Glassmorphic Panels --- */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    transition: border-color var(--transition-medium), background-color var(--transition-medium), transform var(--transition-medium), box-shadow var(--transition-medium);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    background-color: var(--surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* --- Typography Helpers --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: hsl(220, 16%, 6%);
    font-weight: 600;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

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

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: hsla(0, 0%, 100%, 0.02);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast), border var(--transition-fast), height var(--transition-fast);
}

.header.scrolled {
    background: var(--header-bg-scrolled);
    border-bottom: 1px solid var(--border-hover);
    height: 70px;
}

.nav-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Theme Switcher Dropdown --- */
.theme-switcher {
    position: relative;
}

.theme-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.theme-btn:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.theme-icon {
    width: 18px;
    height: 18px;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1100;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-opt {
    background: transparent;
    border: none;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.theme-opt:hover, .theme-opt.active {
    background: hsla(0, 0%, 100%, 0.05);
    color: var(--text-primary);
}

.theme-color-preview {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.color-midnight { background-color: hsl(47, 75%, 58%); }
.color-emerald { background-color: hsl(150, 75%, 45%); }
.color-crimson { background-color: hsl(200, 85%, 55%); }

/* --- Mode Toggle (Light/Dark) --- */
.mode-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.mode-toggle:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.mode-icon {
    width: 18px;
    height: 18px;
}

html[data-theme-mode="dark"] .moon-icon {
    display: none;
}

html[data-theme-mode="light"] .sun-icon {
    display: none;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
    background: transparent;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: var(--gradient-glow);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.badge-container {
    margin-bottom: 24px;
}

.glow-badge {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    color: var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--primary-glow);
    display: inline-block;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.typing-text {
    color: var(--primary);
    font-weight: 600;
}

.typing-cursor {
    color: var(--primary);
    animation: blink 0.8s infinite;
}

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

.hero-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    background: var(--gradient-glow);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    transform: scale(1);
}

.avatar-card {
    position: relative;
    width: 300px;
    height: 300px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.avatar-glow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
    opacity: 0.6;
}

.avatar-tag {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--primary);
    color: hsl(220, 16%, 6%);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* --- Scroll Down Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.scroll-indicator .wheel {
    width: 3px;
    height: 6px;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    animation: scroll-wheel 1.6s ease infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.scroll-indicator .arrow {
    display: block;
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scroll-arrow 1.6s infinite;
}

@keyframes scroll-arrow {
    0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.5; }
    50% { transform: translateY(4px) rotate(45deg); opacity: 1; }
}

/* --- Executive Metrics Banner --- */
.metrics-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 30px 0;
}

.metrics-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.metric-block {
    text-align: center;
    flex: 1;
    min-width: 180px;
}

.metric-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-divider {
    width: 1px;
    height: 40px;
    background-color: var(--border);
}

@media (max-width: 768px) {
    .metrics-container {
        flex-direction: column;
        gap: 30px;
    }
    .metric-divider {
        display: none;
    }
}

/* --- Section Header Helper --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-tagline {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(2.2rem, 3.8vw, 3rem);
    letter-spacing: -0.8px;
    display: inline-block;
}

.section-line {
    width: 40px;
    height: 2px;
    background-color: var(--primary);
    margin: 12px auto 0;
    border-radius: var(--radius-full);
}

/* --- Services / Consulting Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.service-card:hover .service-icon-wrapper {
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.service-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.service-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- About & Timeline Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
}

.about-info, .about-interactive-tabs {
    padding: 40px 35px;
}

.about-grid-subtitle {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.about-p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.about-p:last-of-type {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    text-align: center;
}

.stat-num {
    font-size: 2rem;
    color: var(--primary);
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Tabs Styling */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    gap: 16px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 4px;
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--text-primary);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

.skills-category {
    margin-bottom: 24px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-cat-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: hsla(0, 0%, 100%, 0.02);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--primary-glow);
}

/* Timeline Styling */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 4px;
    width: 1px;
    height: calc(100% - 20px);
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

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

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 1.5px solid var(--primary);
    z-index: 1;
}

.timeline-meta {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 500;
}

.timeline-org {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Projects Section --- */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--transition-fast), border var(--transition-fast), color var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: hsl(220, 16%, 6%);
    box-shadow: 0 4px 12px var(--primary-glow);
}

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

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-hover-overlay {
    position: absolute;
    inset: 0;
    background: hsla(220, 16%, 6%, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
}

.project-link-icon {
    width: 46px;
    height: 46px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(220, 16%, 6%);
    transform: translateY(15px);
    transition: transform var(--transition-medium), background var(--transition-fast);
}

.project-card:hover .project-link-icon {
    transform: translateY(0);
}

.project-link-icon:hover {
    background-color: var(--text-primary);
}

.project-link-icon svg {
    width: 20px;
    height: 20px;
}

.project-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
    flex-grow: 1;
}

.project-card.hide {
    display: none;
}

.project-card.show {
    animation: filterIn 0.5s ease forwards;
}

@keyframes filterIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* --- Community Involvement Section --- */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.comm-card {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
}

.comm-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.comm-logo-icon svg {
    width: 20px;
    height: 20px;
}

.comm-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.comm-role {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.comm-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.speaker-mentions {
    padding: 35px;
    text-align: center;
}

.speaker-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.speaker-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 20px;
}

.speaker-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.speaker-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.speaker-badge:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 40px;
}

.contact-info, .contact-form-wrapper {
    padding: 40px 35px;
}

.contact-subtitle {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-wrapper {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.contact-detail-item:hover .icon-wrapper {
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.detail-text {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-link, .detail-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-link:hover {
    color: var(--primary);
}

.contact-icons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.contact-circle-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-main);
    transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-circle-btn:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--primary);
    color: var(--text-primary);
    background: var(--primary-glow);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.contact-circle-btn svg {
    width: 20px;
    height: 20px;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.9rem;
    transition: transform var(--transition-medium), color var(--transition-medium);
    transform-origin: left;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-22px) scale(0.8);
    color: var(--primary);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    transform: scaleX(1);
}

/* Valid / Invalid States */
.form-group.invalid input, .form-group.invalid textarea {
    border-bottom-color: hsl(0, 80%, 60%);
}
.form-group.invalid label {
    color: hsl(0, 80%, 60%);
}
.form-group.invalid .form-line {
    background-color: hsl(0, 80%, 60%);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    background-color: var(--bg-secondary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Toast Notifications --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-hover);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(15px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.toast.hide {
    opacity: 0;
    transform: translateY(-15px) scale(0.96);
}

.toast-success-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* --- Blog Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-date {
    color: var(--text-muted);
}

.blog-card-title {
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--text-primary);
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
}

.blog-card-link:hover {
    color: var(--text-primary);
}

.blog-link-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.blog-card-link:hover .blog-link-icon {
    transform: translate(2px, -2px);
}

.blog-action-wrapper {
    display: flex;
    justify-content: center;
}

/* --- Responsive Layouts --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    .hero-container {
        gap: 40px;
    }
    .avatar-card {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-follower, .cursor-dot {
        display: none !important;
    }

    .section-padding {
        padding: 70px 0;
    }

    /* Navbar Mobile */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 80px 40px;
        gap: 30px;
        transition: right var(--transition-medium);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Sections */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 30px;
        padding-bottom: 50px;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-info, .about-interactive-tabs, .contact-info, .contact-form-wrapper {
        padding: 24px;
    }

    .projects-grid, .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
