/* ==========================================================================
   DEVELOPER PORTFOLIO - ARUL RAJ W (2026)
   DESIGN SYSTEM: Futuristic Glassmorphism with Neon Accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Variables & Theme Configuration
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
    --bg-primary: #020617;
    --bg-secondary: #090d23;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-card-hover: rgba(23, 37, 84, 0.35);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #00f0ff;
    --accent-primary-rgb: 0, 240, 255;
    --accent-secondary: #00ffd2;
    --accent-secondary-rgb: 0, 255, 210;
    --border-color: rgba(0, 240, 255, 0.12);
    --border-hover: rgba(0, 240, 255, 0.35);
    --glow-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
    --glow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --timeline-bg: rgba(15, 23, 42, 0.7);
    --code-bg: #050b18;
}

:root[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(224, 242, 254, 0.4);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #0284c7;
    --accent-primary-rgb: 2, 132, 199;
    --accent-secondary: #0d9488;
    --accent-secondary-rgb: 13, 148, 136;
    --border-color: rgba(2, 132, 199, 0.15);
    --border-hover: rgba(2, 132, 199, 0.45);
    --glow-shadow: 0 0 25px rgba(2, 132, 199, 0.15);
    --glow-soft: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
    --timeline-bg: rgba(255, 255, 255, 0.8);
    --code-bg: #1e293b;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button, input, textarea {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* --------------------------------------------------------------------------
   1. Ambient Glowing Lights & Particle Canvas
   -------------------------------------------------------------------------- */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.ambient-glow {
    position: fixed;
    width: 40vw;
    height: 40vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    transition: all 0.5s ease;
}

[data-theme="light"] .ambient-glow {
    opacity: 0.07;
}

.ambient-glow.g1 {
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.8) 0%, transparent 80%);
    animation: drift 25s infinite alternate;
}

.ambient-glow.g2 {
    bottom: -10vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(var(--accent-secondary-rgb), 0.8) 0%, transparent 80%);
    animation: drift 30s infinite alternate-reverse;
}

.ambient-glow.g3 {
    top: 40%;
    left: 60%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.5) 0%, transparent 80%);
    animation: drift 20s infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vw) scale(1.2); }
}

/* Interactive Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* --------------------------------------------------------------------------
   2. Preloader
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020617;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.glow-logo {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 0 10px #00f0ff, 0 0 30px #00f0ff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
}

.loading-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #00ffd2);
    box-shadow: 0 0 10px #00f0ff;
    transition: width 0.1s ease;
}

.loading-status {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: #00ffd2;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   3. Typography & Section Headers
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.header-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 12px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

.side-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-heading i {
    color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #020617;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--accent-primary-rgb), 0.45);
}

.btn-secondary {
    background: rgba(var(--accent-primary-rgb), 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: rgba(var(--accent-primary-rgb), 0.1);
    box-shadow: var(--glow-shadow);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Glassmorphism utilities
   -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--glow-soft);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(12, 1fr);
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: 0 15px 35px -10px rgba(0, 240, 255, 0.15);
}

.bento-col-3 { grid-column: span 3; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 992px) {
    .bento-col-4, .bento-col-6, .bento-col-8 {
        grid-column: span 12;
    }
}

/* --------------------------------------------------------------------------
   6. Navbar
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.45); /* Fallback */
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    top: 12px;
    background: var(--bg-secondary);
    border-color: var(--border-color);
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.5);
}

.nav-container {
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s ease;
}

.navbar.scrolled .nav-container {
    padding: 10px 24px;
}

.nav-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--accent-primary);
    font-family: 'Fira Code', monospace;
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px 0;
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

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

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

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 16px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Nav Toggle states */
.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-intro {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 12px;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, rgba(var(--accent-primary-rgb), 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.typing-text {
    color: var(--accent-secondary);
    text-shadow: 0 0 15px rgba(var(--accent-secondary-rgb), 0.2);
}

.cursor-blink {
    animation: blink-caret 0.75s step-end infinite;
    color: var(--accent-secondary);
}

@keyframes blink-caret {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-shadow);
}

/* Hero Interactive Visual (IDE Card) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.circuit-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.circuit-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 60%);
    z-index: -1;
}

.glass-image-frame {
    position: relative;
    z-index: 10;
    border-radius: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.glass-image-frame:hover {
    transform: translateY(-8px);
}

.hero-profile-img {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(var(--accent-primary-rgb), 0.3);
}

.float-badge {
    position: absolute;
    z-index: 20;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 16px;
    animation: floatBadge 6s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.float-badge i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.fb-1 { top: 10%; left: -25px; animation-delay: 0s; }
.fb-2 { bottom: 25%; right: -35px; animation-delay: 2s; }
.fb-3 { bottom: -20px; left: 15%; animation-delay: 4s; }

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse-icon {
    display: block;
    width: 26px;
    height: 44px;
    border-radius: 15px;
    border: 2px solid var(--text-secondary);
    position: relative;
}

.mouse-icon .wheel {
    display: block;
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. About Me Section
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: start;
}

.about-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.about-card-glow {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 70%);
    z-index: -1;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.personal-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.detail-label {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
    margin-bottom: 4px;
}

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

.experience-showcase {
    display: flex;
    flex-direction: column;
}

.showcase-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.showcase-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.card-text h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

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

/* --------------------------------------------------------------------------
   9. Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
    background: rgba(var(--bg-secondary), 0.5);
    border-y: 1px solid var(--border-color);
}

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

.stat-counter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.stat-counter:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.stat-counter.wide {
    grid-column: span 4;
}

.counter-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-secondary);
    line-height: 1.2;
    margin-bottom: 8px;
    font-family: 'Fira Code', monospace;
    text-shadow: 0 0 10px rgba(var(--accent-secondary-rgb), 0.15);
}

.counter-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   10. Education Timeline Section
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-primary);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px;
    margin-bottom: 60px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    top: 24px;
    z-index: 10;
    box-shadow: 0 0 8px var(--accent-primary);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: var(--timeline-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(16px);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.timeline-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.institution {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-secondary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-family: 'Fira Code', monospace;
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   11. Skills Section
   -------------------------------------------------------------------------- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
}

.skill-category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.skill-category-card h3 i {
    color: var(--accent-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    width: 0; /* Animated dynamically */
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-badge {
    background: rgba(var(--accent-primary-rgb), 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.tool-badge:hover {
    background: rgba(var(--accent-primary-rgb), 0.12);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
}

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

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #020617;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--accent-primary-rgb), 0.25);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.project-details {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.features-subheading {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    font-weight: 700;
}

.features-list {
    list-style: none;
    margin-bottom: 24px;
}

.features-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li i {
    color: var(--accent-secondary);
    font-size: 0.8rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    margin-top: auto;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
}

.project-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Special styling for Large Featured Card */
.project-card.featured-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.project-card.featured-card .project-image-wrapper {
    height: 100%;
    aspect-ratio: auto;
}

.project-card.featured-card .project-details {
    padding: 36px;
}

/* --------------------------------------------------------------------------
   13. Achievements Section
   -------------------------------------------------------------------------- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.ach-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(var(--accent-secondary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.4rem;
}

.ach-content span {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 6px;
}

.ach-content h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.ach-content h4 {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.ach-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. Certifications Section
   -------------------------------------------------------------------------- */
.certs-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.cert-stamp {
    font-size: 2.2rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    opacity: 0.8;
}

.cert-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-issuer {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-secondary);
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
}

.cert-glow-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px 2px 0 0;
    box-shadow: var(--glow-shadow);
}

/* --------------------------------------------------------------------------
   15. Coding Profiles Section
   -------------------------------------------------------------------------- */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-8px);
}

.profile-overlay-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    top: -20px;
    left: -20px;
}

/* Profile specific branding styles */
.profile-card.lc { border-color: rgba(245, 158, 11, 0.2); }
.profile-card.lc .profile-icon-brand { color: #f59e0b; }
.profile-card.lc .profile-overlay-glow { background-color: #f59e0b; }
.profile-card.lc:hover { border-color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.25); }

.profile-card.sr { border-color: rgba(139, 92, 246, 0.2); }
.profile-card.sr .profile-icon-brand { color: #8b5cf6; }
.profile-card.sr .profile-overlay-glow { background-color: #8b5cf6; }
.profile-card.sr:hover { border-color: #8b5cf6; box-shadow: 0 0 20px rgba(139, 92, 246, 0.25); }

.profile-card.cc { border-color: rgba(180, 83, 9, 0.2); }
.profile-card.cc .profile-icon-brand { color: #b45309; }
.profile-card.cc .profile-overlay-glow { background-color: #b45309; }
.profile-card.cc:hover { border-color: #b45309; box-shadow: 0 0 20px rgba(180, 83, 9, 0.25); }

.profile-card.gh { border-color: rgba(248, 250, 252, 0.2); }
.profile-card.gh .profile-icon-brand { color: var(--text-primary); }
.profile-card.gh .profile-overlay-glow { background-color: #f1f5f9; }
.profile-card.gh:hover { border-color: var(--text-primary); box-shadow: 0 0 20px rgba(248, 250, 252, 0.25); }

.profile-icon-brand {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.profile-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-solved {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-extra {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.badge-tag {
    margin-top: 14px;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
    background: rgba(var(--accent-secondary-rgb), 0.05);
    padding: 3px 10px;
    border-radius: 4px;
}

.profile-card.disabled {
    cursor: default;
    pointer-events: none;
}

/* GitHub Repos Wrapper */
.github-repos-container {
    margin-top: 60px;
}

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

.repo-loading-card {
    grid-column: span 3;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.repo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.repo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.repo-card-header i.repo-folder {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.repo-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.repo-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    word-break: break-all;
}

.repo-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.repo-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
    color: var(--text-secondary);
}

.repo-lang {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.repo-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   16. Services & Experience Section
   -------------------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

.student-experience-box {
    margin-top: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.student-experience-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.student-experience-box p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 700px;
    margin-inline: auto;
}

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

.exp-badge {
    background: rgba(var(--accent-secondary-rgb), 0.08);
    border: 1px solid rgba(var(--accent-secondary-rgb), 0.2);
    color: var(--accent-secondary);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.exp-badge:hover {
    background: rgba(var(--accent-secondary-rgb), 0.15);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   17. Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.contact-card-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
    transform: translateX(6px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(var(--accent-primary-rgb), 0.08);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.contact-details-text {
    display: flex;
    flex-direction: column;
}

.contact-details-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Fira Code', monospace;
    text-transform: uppercase;
}

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

.contact-socials-grid {
    display: flex;
    gap: 16px;
}

.contact-social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.contact-social-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

.contact-action-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(12px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .form-group input, [data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.5);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.2);
}

.form-status {
    font-size: 0.9rem;
    font-family: 'Fira Code', monospace;
    margin-top: 8px;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* Interactive map box */
.map-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
    backdrop-filter: blur(12px);
}

.map-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

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

.footer-right p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-right a {
    color: var(--accent-primary);
    font-weight: 600;
}

.footer-right a:hover {
    text-shadow: var(--glow-shadow);
}

/* --------------------------------------------------------------------------
   19. Case Study Modal System
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: var(--glow-soft);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-primary);
}

/* Case Study Content Styles */
.modal-project-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-project-tagline {
    font-size: 1.1rem;
    color: var(--accent-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    border-left: 3px solid var(--accent-primary);
    padding-left: 12px;
}

.modal-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   20. Responsive Media Queries
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .bento-col-3, .bento-col-4 { grid-column: span 6; }
    .bento-col-8 { grid-column: span 12; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        padding-top: 60px;
    }
    
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-tagline {
        margin-inline: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-socials {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured-card {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .timeline-line {
        left: 24px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 54px;
        padding-right: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
        left: 16px;
    }
    
    .timeline-content {
        padding: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-counter.wide {
        grid-column: span 2;
    }
    
    .certs-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .repos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .repo-loading-card {
        grid-column: span 2;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .glass-image-frame {
        width: 260px;
        height: 310px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #090d23;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
    }
    
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 40px 0;
    }
    
    .bento-card {
        padding: 20px;
    }
    
    .glass-image-frame {
        width: 220px;
        height: 260px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-counter.wide {
        grid-column: span 1;
    }
    
    .certs-carousel {
        grid-template-columns: 1fr;
    }
    
    .profiles-grid {
        grid-template-columns: 1fr;
    }
    
    .repos-grid {
        grid-template-columns: 1fr;
    }
    
    .repo-loading-card {
        grid-column: span 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}
