/* ==========================================================================
   SAI KIRAN KETHA - 3D INTERACTIVE DEVELOPER PORTFOLIO STYLESHEET
   Design System: Cyber Glassmorphism & Modern 3D Visuals
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-primary: #07090e;
    --bg-secondary: #0d121f;
    --bg-tertiary: #131b2e;
    --bg-surface: rgba(15, 23, 42, 0.65);
    --bg-surface-hover: rgba(30, 41, 59, 0.75);
    --bg-card: rgba(13, 18, 31, 0.6);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --bg-card-border-hover: rgba(99, 102, 241, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #38bdf8;

    /* Accent & Brand Gradients */
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-sky: #38bdf8;
    --accent-emerald: #10b981;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
    --gradient-text: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);

    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --glow-primary: 0 0 25px rgba(99, 102, 241, 0.35);
    --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Transitions & Curves */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout & Spacing */
    --container-max-width: 1200px;
    --header-height: 76px;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --border-radius-full: 9999px;
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-hover: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-border: rgba(0, 0, 0, 0.08);
    --bg-card-border-hover: rgba(99, 102, 241, 0.5);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-accent: #2563eb;

    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-base), color var(--transition-base);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-indigo);
}

/* Three.js Canvas (Fixed in Background) */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6.5rem 0;
    position: relative;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glow-text {
    text-shadow: 0 0 35px rgba(99, 102, 241, 0.4);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--border-radius-full);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-sky);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
    position: fixed;
    inset: 0;
    background: #05070b;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.preloader-orbit {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-cyan);
    border-bottom-color: var(--accent-indigo);
    animation: spinClockwise 2s linear infinite;
}

.ring-2 {
    width: 75%;
    height: 75%;
    border-left-color: var(--accent-purple);
    border-right-color: var(--accent-sky);
    animation: spinCounter 1.5s linear infinite;
}

.ring-3 {
    width: 50%;
    height: 50%;
    border-top-color: var(--accent-emerald);
    animation: spinClockwise 1s linear infinite;
}

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -1px;
}

.preloader-progress-track {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.preloader-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.2s ease;
}

.preloader-status {
    display: flex;
    justify-content: space-between;
    width: 220px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

@keyframes spinClockwise {
    100% { transform: rotate(360deg); }
}

@keyframes spinCounter {
    100% { transform: rotate(-360deg); }
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor-dot,
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
}

.cursor-glow {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.05);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

body:hover .cursor-dot,
body:hover .cursor-glow {
    opacity: 1;
}

/* Cursor Hover states */
.cursor-grow .cursor-glow {
    width: 54px;
    height: 54px;
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-glow {
        display: none !important;
    }
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background var(--transition-base), box-shadow var(--transition-base), height var(--transition-base);
}

.site-header.scrolled {
    height: 66px;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-card-border);
    box-shadow: var(--shadow-md);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    position: relative;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.brand-logo:hover .logo-box {
    transform: scale(1.05) rotate(4deg);
    box-shadow: var(--glow-primary);
}

.logo-initials {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.15rem;
    color: #ffffff;
}

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

.brand-text .name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.brand-text .role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent-sky);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.35rem 0.6rem;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(12px);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--border-radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.12);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-md);
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    color: var(--accent-sky);
    border-color: var(--accent-sky);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.theme-toggle-btn .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: block;
    color: #f59e0b;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
}

.hamburger-btn .bar {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==========================================================================
   BUTTONS & INTERACTIVE ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-indigo);
    transform: translateY(-2px);
    color: var(--accent-sky);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-sky);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-sky);
    transition: gap var(--transition-fast);
}

.btn-text-link:hover {
    gap: 0.6rem;
    color: #ffffff;
}

/* Tooltip for copy email */
.btn-glass .tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--accent-emerald);
    color: #ffffff;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.btn-glass .tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--border-radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px #10b981;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10b981;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-sub {
    color: var(--text-primary);
}

.typewriter-container {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--accent-sky);
    margin-bottom: 1.25rem;
    min-height: 32px;
}

.typewriter-prefix {
    color: var(--accent-pink);
}

.cursor-blink {
    color: var(--accent-cyan);
    animation: blink 0.9s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

.hero-description strong {
    color: var(--text-primary);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-label {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-pill:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-sky);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Hero 3D Card Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.hero-3d-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid var(--bg-card-border-hover);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(99, 102, 241, 0.15);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow var(--transition-base);
}

.card-glass-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
}

.card-hologram {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-avatar-circle {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-gradient-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #a855f7);
    animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
    100% { transform: rotate(360deg); }
}

.avatar-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bg-primary);
}

.avatar-initials {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Tech Badges on Avatar */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--bg-card-border-hover);
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    animation: floatBadge 3.5s ease-in-out infinite;
}

.badge-top-right {
    top: -5px;
    right: -25px;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: 5px;
    left: -25px;
    animation-delay: 1.2s;
}

.badge-mid-right {
    bottom: 25px;
    right: -30px;
    animation-delay: 2.2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

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

.card-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-sky);
    margin-bottom: 0.5rem;
}

.tag-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-sky);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-sky);
}

.card-name {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.card-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.card-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.25rem;
    border: 1px solid var(--bg-card-border);
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-sky);
}

.metric-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.w-full {
    width: 100%;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transition: color var(--transition-fast);
}

.scroll-down-indicator:hover {
    color: var(--accent-sky);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.mouse-wheel {
    width: 3px;
    height: 6px;
    background: var(--accent-sky);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   BENTO STATS & HIGHLIGHTS
   ========================================================================== */
.stats-section {
    padding: 3rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--bg-card-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.15);
}

.bento-span-2 {
    grid-column: span 2;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.neon-blue {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.neon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.neon-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.neon-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.75rem;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-suffix {
    color: var(--accent-sky);
    font-size: 2rem;
    margin-left: 2px;
}

.stat-title {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

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

/* Highlight Card in Bento */
.highlight-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border-color: rgba(99, 102, 241, 0.3);
}

.highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-sky);
}

.live-indicator .dot-circle {
    width: 8px;
    height: 8px;
    background: var(--accent-sky);
    border-radius: 50%;
}

.focus-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-full);
    color: var(--accent-indigo);
}

.highlight-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.highlight-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.tech-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem 2rem;
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-card:hover {
    border-color: var(--accent-indigo);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md), 0 0 25px rgba(99, 102, 241, 0.18);
}

.about-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-sky);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

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

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-full);
    color: var(--text-muted);
}

/* ==========================================================================
   SKILLS MATRIX & TECH STACK
   ========================================================================== */
.skills-filter-wrapper,
.skill-filter-tabs,
.filter-tabs-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.skill-filter-btn,
.filter-tab,
.skl-tab {
    padding: 0.55rem 1.25rem;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all var(--transition-fast);
}

.skill-filter-btn:hover,
.filter-tab:hover,
.skl-tab:hover {
    color: #ffffff;
    border-color: var(--accent-indigo);
    transform: translateY(-2px);
}

.skill-filter-btn.active,
.filter-tab.active,
.skl-tab.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.skill-filter-btn .skill-count {
    font-size: 0.72rem;
    padding: 0.1rem 0.45rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-weight: 600;
}

/* Skills Cards Grid */
.skills-matrix-cards,
.skills-logo-grid,
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* Individual Skill Card */
.skill-card-item,
.skill-item,
.skl-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.35rem 0.85rem 1.15rem;
    backdrop-filter: blur(16px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.skill-card-item.hidden,
.skill-item.hidden,
.skl-card.hidden,
.skl-card.skl-hidden {
    display: none !important;
}

.skill-card-item:hover,
.skill-item:hover,
.skl-card:hover {
    border-color: var(--accent-sky);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md), 0 0 25px rgba(56, 189, 248, 0.2);
}

/* Skill Icon Box */
.skill-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.skill-card-item:hover .skill-icon-box,
.skill-item:hover .skill-icon-box,
.skl-card:hover .skill-icon-box {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.skill-card-item img,
.skill-item img,
.skl-card img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease;
    display: block;
}

.skill-icon-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    border-radius: 14px;
}

/* Skill Name (under the icon) */
.skill-name,
.skl-card span.skill-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

/* Category Subtitle */
.skill-category,
.skl-card span.skill-category {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Brand Colors for Fallback Icons */
.python-color { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.sql-color { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.js-color { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.react-color { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.next-color { background: rgba(255, 255, 255, 0.1); color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); }
.html-color { background: rgba(249, 115, 22, 0.15); color: #f97316; border: 1px solid rgba(249, 115, 22, 0.3); }
.css-color { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.bootstrap-color { background: rgba(124, 58, 237, 0.15); color: #8b5cf6; border: 1px solid rgba(124, 58, 237, 0.3); }
.node-color { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.express-color { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.bash-color { background: rgba(100, 116, 139, 0.15); color: #cbd5e1; border: 1px solid rgba(100, 116, 139, 0.3); }
.pg-color { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.mysql-color { background: rgba(234, 88, 12, 0.15); color: #fb923c; border: 1px solid rgba(234, 88, 12, 0.3); }
.supabase-color { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.mongo-color { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.git-color { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.github-color { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, 0.2); }
.vscode-color { background: rgba(59, 130, 246, 0.15); color: #38bdf8; border: 1px solid rgba(59, 130, 246, 0.3); }
.cursor-color { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.colab-color { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.ai-color { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.openai-color { background: rgba(16, 185, 129, 0.15); color: #10a37f; border: 1px solid rgba(16, 185, 129, 0.3); }
.langchain-color { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.3); }
.auto-color { background: rgba(234, 179, 8, 0.15); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.3); }
.antigravity-color { background: rgba(217, 70, 239, 0.15); color: #e879f9; border: 1px solid rgba(217, 70, 239, 0.3); }

[data-theme="light"] .skill-icon-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .skills-matrix-cards,
    .skills-logo-grid,
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 0.85rem;
    }
    .skill-icon-box {
        width: 48px;
        height: 48px;
    }
    .skill-card-item img,
    .skill-item img,
    .skl-card img {
        width: 32px;
        height: 32px;
    }
    .skill-name,
    .skl-card span.skill-name {
        font-size: 0.8rem;
    }
    .skill-category,
    .skl-card span.skill-category {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .skills-matrix-cards,
    .skills-logo-grid,
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
    }
    .skill-card-item,
    .skill-item,
    .skl-card {
        padding: 1rem 0.5rem 0.8rem;
    }
}

/* ==========================================================================
   FEATURED PROJECTS
   ========================================================================== */
.project-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.project-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.project-filter-btn:hover {
    color: #ffffff;
    border-color: var(--accent-indigo);
}

.project-filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.project-card:hover {
    border-color: var(--accent-sky);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(56, 189, 248, 0.2);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 14, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-full);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-sky);
    backdrop-filter: blur(8px);
}

.highlight-badge {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.neon-badge {
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.4);
}

.project-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: var(--border-radius-sm);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

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

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-card-border);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.icon-link {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.icon-link:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-sky);
    transform: scale(1.08);
}

/* ==========================================================================
   RESUME SECTION
   ========================================================================== */
.resume-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(16px);
}

.resume-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.resume-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--border-radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.resume-tab-btn:hover {
    color: #ffffff;
    border-color: var(--accent-indigo);
}

.resume-tab-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.resume-download-actions {
    display: flex;
    gap: 0.75rem;
}

.resume-tab-content {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.resume-tab-content.active {
    display: flex;
}

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

.resume-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    transition: all var(--transition-fast);
}

.resume-card:hover {
    border-color: var(--accent-indigo);
    background: rgba(0, 0, 0, 0.3);
}

.resume-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.resume-title-group h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 0.95rem;
    color: var(--accent-sky);
    font-weight: 500;
}

.resume-date-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-full);
    color: var(--accent-sky);
}

.resume-card-body p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.resume-bullets {
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Certifications Grid */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    transition: all var(--transition-fast);
}

.cert-item:hover {
    border-color: var(--accent-emerald);
    transform: translateY(-2px);
}

.cert-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.cert-info {
    flex-grow: 1;
}

.cert-info h4 {
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.cert-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cert-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

/* Competencies Grid */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.comp-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
}

.comp-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-sky);
}

.comp-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   JOURNEY TIMELINE
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-cyan), var(--accent-purple));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent-sky);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.marker-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-sky);
    border-radius: 50%;
}

.marker-dot.pulsing {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseMarker 1.5s infinite;
}

@keyframes pulseMarker {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
}

.timeline-card:hover {
    border-color: var(--accent-indigo);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.2);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-sky);
    margin-bottom: 0.5rem;
}

.timeline-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-full);
    color: var(--text-muted);
}

.active-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    border-color: var(--accent-sky);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.15);
}

.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.contact-link {
    font-size: 0.95rem;
    color: var(--accent-sky);
    font-weight: 500;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.contact-text {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.info-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.contact-socials-box {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(16px);
}

.contact-socials-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.social-box-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-box-btn:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-indigo);
    transform: translateY(-2px);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(16px);
}

.form-presets {
    margin-bottom: 1.5rem;
}

.preset-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.preset-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.preset-pill {
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--bg-card-border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.preset-pill:hover {
    color: #ffffff;
    border-color: var(--accent-indigo);
}

.preset-pill.active {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-indigo);
    color: var(--accent-sky);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label .required {
    color: var(--accent-pink);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.textarea-wrap {
    align-items: flex-start;
}

.textarea-wrap i {
    top: 1rem;
}

.textarea-wrap textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--accent-sky);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.input-wrap input:focus + i,
.input-wrap textarea:focus + i {
    color: var(--accent-sky);
}

.form-error {
    font-size: 0.75rem;
    color: #f87171;
    display: none;
}

.form-group.has-error .form-error {
    display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ef4444;
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinClockwise 0.8s linear infinite;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-card-border);
    padding: 3.5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
}

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

.footer-nav a:hover {
    color: var(--accent-sky);
}

.footer-right {
    text-align: right;
}

.copyright-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    color: #ffffff;
    background: var(--accent-indigo);
    transform: translateY(-2px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* ==========================================================================
   MODALS (Case Study & Resume)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-card-border-hover);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.25);
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.modal-close-btn:hover {
    color: #ffffff;
    background: #ef4444;
    transform: rotate(90deg);
}

/* Modal Content Styles */
.modal-project-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-sm);
    color: var(--accent-sky);
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h4 {
    font-size: 1.2rem;
    color: var(--accent-sky);
    margin-bottom: 0.5rem;
}

.modal-section p,
.modal-section ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.modal-section ul {
    padding-left: 1.25rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-card-border);
}

/* Printable Resume Modal */
.resume-modal-card {
    max-width: 850px;
}

.modal-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.header-btns {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.resume-modal-close {
    position: static;
}

.resume-document {
    background: #ffffff;
    color: #1e293b;
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.resume-doc-header {
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.resume-doc-header h2 {
    color: #0f172a;
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.resume-doc-subtitle {
    font-weight: 600;
    color: #475569;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.resume-doc-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #334155;
}

.resume-doc-section {
    margin-bottom: 1.5rem;
}

.doc-sec-title {
    font-size: 1.1rem;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.doc-item {
    margin-bottom: 1rem;
}

.doc-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.doc-institute {
    font-weight: 600;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.doc-details {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.doc-list {
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: #334155;
}

/* Print Stylesheet */
@media print {
    body * {
        visibility: hidden;
    }
    #resume-modal,
    #resume-modal * {
        visibility: visible;
    }
    #resume-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #ffffff;
        padding: 0;
    }
    .modal-card {
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .modal-header-actions {
        display: none;
    }
    .resume-document {
        box-shadow: none;
        padding: 0;
    }
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--accent-emerald);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastSlideIn 0.3s ease;
}

.toast.toast-error {
    border-color: #ef4444;
}

.toast i {
    font-size: 1.4rem;
    color: #10b981;
}

.toast.toast-error i {
    color: #ef4444;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

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

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-bottom: 1px solid var(--bg-card-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform var(--transition-base);
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        background: transparent;
        border: none;
        gap: 0.75rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-resume-btn {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-span-2 {
        grid-column: span 1;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .competencies-grid {
        grid-template-columns: 1fr;
    }

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

    /* Timeline Mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 10px;
        right: auto;
    }
}
