:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg-glass: rgba(20, 20, 20, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(20, 15, 15, 0.7);
    --bg-base: #000000;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* BACKGROUND & CANVAS */
.scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: #000;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

/* LAYOUT */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    width: 100%;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(
        110deg,
        #8a8d91 0%,
        #c5c7c9 25%,
        #ffffff 50%,
        #c5c7c9 75%,
        #8a8d91 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titaniumShine 4s linear infinite;
}

.nav-links-container {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    padding: 0.25rem 1.25rem;
    border-radius: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
}

/* Dropdown CSS */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .dropdown .dropbtn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.nav-links .dropdown:hover .dropbtn, .nav-links .dropdown .dropbtn:focus {
    color: var(--text-primary);
    background: none;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(10, 10, 10, 0.5);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 12px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Invisible bridge so hover doesn't drop when moving to the menu */
.nav-links .dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1.5rem;
    background: transparent;
}

.nav-links .dropdown-content a {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 12px 16px !important;
    text-decoration: none;
    display: block;
    font-size: 0.9rem !important;
    border-radius: 0 !important;
    margin: 0;
    font-weight: 400 !important;
    text-align: left;
}

.nav-links .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.nav-links .dropdown:hover .dropdown-content,
.nav-links .dropdown-content.show {
    display: block;
}

/* Mobile dropdown is handled by a separate element outside the overflow container to prevent clipping */
.mobile-dropdown-menu {
    display: none;
}

@media (max-width: 1024px) {
    .nav-links .dropdown .dropbtn {
        pointer-events: auto; /* Re-enable click on mobile */
    }
    .mobile-dropdown-menu.show {
        display: flex;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        width: 100%;
        padding: 0.5rem 0;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        animation: fadeIn 0.2s ease-out;
    }
    .mobile-dropdown-menu a {
        color: rgba(255, 255, 255, 0.7);
        padding: 0.75rem 1.5rem;
        text-decoration: none;
        font-size: 0.95rem;
        display: block;
    }
    .mobile-dropdown-menu a:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
    }
    .nav-links .dropdown-content {
        display: none !important; /* Hide the inline one on mobile */
    }
}

.divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255,255,255,0.2);
    margin: 0 0.25rem;
}

.icon-link {
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}
.icon-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* STATS BADGE */
.stats-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    padding: 0.25rem 1.25rem; /* Exact padding of nav-links */
    border-radius: 40px;
    border: 1px solid var(--border-glass);
    position: relative;
    gap: 0.75rem;
}

.stats-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stats-item strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stats-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* HERO SECTION */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    min-height: calc(100vh - 120px);
}

.hero-content {
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-end;
    margin-bottom: 2rem;
}

.greeting-badge {
    align-self: flex-start;
    padding: 0.8rem 1.4rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 30px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    user-select: none;
    opacity: 0;
    animation: badgeEntrance 0.8s ease-out 0.2s forwards;
}

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

.titanium-text {
    font-size: 2.65rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E"),
        linear-gradient(110deg, #6b6e73 0%, #a4a7ab 25%, #f4f5f6 50%, #a4a7ab 75%, #6b6e73 100%);
    background-size: 150px 150px, 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: titaniumShineText 4s linear infinite;
    padding-bottom: 0.2rem;
}

@keyframes titaniumShineText {
    0% { background-position: 0 0, 200% center; }
    100% { background-position: 150px 150px, -200% center; }
}

.titanium-bg {
    position: relative;
    background: #d1d5db; /* Plain light grey button */
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.titanium-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.3'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #a4a7ab 0%, #f4f5f6 50%, #6b6e73 100%);
    background-size: 150px 150px, 200% auto;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.titanium-bg:hover {
    transform: scale(1.03);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.6);
}

.titanium-bg:hover::before {
    opacity: 1;
    animation: titaniumShineText 4s linear infinite;
}

.hero-content p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn svg {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-view-work:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.btn-view-work:hover svg {
    transform: translate(3px, 3px);
}

.btn-download-resume:hover {
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.9), 0 8px 20px rgba(0,0,0,0.5), 0 0 15px rgba(255, 255, 255, 0.4) !important;
}

.btn-download-resume:hover svg {
    transform: translate(3px, -3px);
}

.btn-primary {
    background: linear-gradient(
        135deg,
        #e2e2e2 0%,
        #c5c7c9 40%,
        #ffffff 50%,
        #9ca1a6 60%,
        #6e7175 100%
    );
    color: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 15px rgba(0,0,0,0.4);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    background-size: 200% auto;
    transition: all 0.3s ease, background-position 0.3s ease;
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 6px 20px rgba(0,0,0,0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(
        135deg,
        rgba(40, 40, 40, 0.6) 0%,
        rgba(60, 60, 60, 0.6) 50%,
        rgba(25, 25, 25, 0.6) 100%
    );
    color: #f0f0f0;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(
        135deg,
        rgba(60, 60, 60, 0.8) 0%,
        rgba(80, 80, 80, 0.8) 50%,
        rgba(40, 40, 40, 0.8) 100%
    );
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* CODE CARD */
.hero-visuals {
    position: relative;
    margin-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: flex-end;
    margin-bottom: 2rem;
}

.hero-terminal {
    transform: scale(0.9);
    transform-origin: right center;
    width: 380px; /* Force width if needed to keep it proportional */
}

.code-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    width: 360px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.filename {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-right: auto;
    margin-left: 20%;
}

.card-body {
    padding: 1.5rem;
}

.code-line {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.keyword { color: #ff7b72; }
.module { color: #79c0ff; }

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    background: transparent;
}

/* HERO STATS MODULE */
.hero-stats-module {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    width: 600px;
    max-width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-evenly;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.05);
    margin: 0.5rem 0;
}

.hero-stat-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
}

.hero-import-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    min-height: 1.5rem;
    white-space: nowrap;
}

.hero-import-line .prompt {
    color: rgba(255,255,255,0.3);
}

.hero-import-line .keyword {
    color: #FF5F56;
}

.hero-import-line .pkg {
    color: #58A6FF;
}

.hero-import-line .career {
    color: #2ea043;
}

.hero-reveal-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
}

.hero-reveal-box.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-reveal-box.revealed-green {
    border-color: rgba(74, 222, 128, 0.2);
    box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.05), 0 0 15px rgba(74, 222, 128, 0.1);
}

.hero-reveal-box.revealed-orange {
    border-color: rgba(237, 122, 54, 0.2);
    box-shadow: inset 0 0 20px rgba(237, 122, 54, 0.05), 0 0 15px rgba(237, 122, 54, 0.1);
}

.hero-stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(
        110deg,
        #8a8d91 0%,
        #c5c7c9 25%,
        #ffffff 50%,
        #c5c7c9 75%,
        #8a8d91 100%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
    animation: titaniumShine 4s linear infinite;
    padding-bottom: 0.2rem;
}

@keyframes titaniumShine {
    to {
        background-position: 200% center;
    }
}

.hero-stat-value.green-glow {
    filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.4));
}

.hero-stat-value.orange-glow {
    filter: drop-shadow(0 0 12px rgba(237, 122, 54, 0.4));
}

.hero-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ABOUT SECTION */
.about-section {
    padding: 4rem 3rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 4rem 5rem;
    max-width: 1000px;
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.about-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.about-header .line {
    height: 1px;
    width: 80px;
    background: rgba(255,255,255,0.2);
}

.about-header .dot {
    width: 8px;
    height: 8px;
    background-color: #ff7043;
    border-radius: 50%;
}

.about-header h2 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.about-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.stat-icon {
    color: #ff7043;
    margin-bottom: 0.5rem;
}

.about-stat-item h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ff7043;
}

.about-stat-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-transform: uppercase;
}

/* SKILLS SECTION */
.skills-section {
    padding: 0 3rem 4rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 120px);
}

.skills-card {
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 4rem 5rem;
    max-width: 1000px;
    width: 100%;
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* TERMINAL ANIMATION (TECH STACK) */
.terminal-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.terminal-window {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    transition: box-shadow 1s ease, border-color 1s ease;
    position: relative;
}

/* The final glowing state */
.terminal-window.glowing {
    border-color: rgba(74, 222, 128, 0.4);
    box-shadow: 0 0 40px rgba(74, 222, 128, 0.1), 0 30px 60px rgba(0,0,0,0.6);
}

.terminal-window.glowing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, transparent 40%, transparent 60%, rgba(237, 122, 54, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.terminal-header {
    background: rgba(20, 20, 20, 0.5);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background: #FF5F56; }
.btn-min { background: #FFBD2E; }
.btn-max { background: #27C93F; }

.terminal-title {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-family: 'Courier New', Courier, monospace;
    flex: 2;
    text-align: center;
    margin-right: calc(100% / 3); /* visually center */
}

.terminal-body {
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: white;
    min-height: 250px;
    position: relative;
    z-index: 2;
}

.terminal-line {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.prompt {
    color: rgba(255,255,255,0.5);
    margin-right: 1rem;
}

.cmd {
    color: #FF5F56; /* reddish import */
    margin-right: 0.5rem;
}

.pkg {
    color: #58A6FF; /* bluish package */
}

.cursor {
    color: rgba(255,255,255,0.8);
    margin-left: 2px;
    font-weight: bold;
    animation: blink 1s step-end infinite;
}

.cursor.hidden {
    display: none;
}

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

.tech-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    opacity: 0; /* Hidden initially */
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease, background 0.3s ease;
}

.tech-pill.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(74, 222, 128, 0.4);
}

.tech-pill i {
    font-size: 1.25rem;
}
/* SERVICES SECTION */
.services-section {
    position: relative;
    padding: 6rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.services-bg-text {
    position: absolute;
    top: -2%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 15rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.15;
    z-index: -1;
    white-space: nowrap;
    letter-spacing: -0.05em;
    font-family: 'Inter', sans-serif;
}

.services-header-area {
    margin-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-stack-container {
    position: relative;
    padding-bottom: 5rem;
}

.stacked-card {
    position: sticky;
    background: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem;
    margin-bottom: 4rem;
    will-change: transform;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.stacked-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 15%, transparent), 0 20px 50px rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.stacked-card:hover::after {
    opacity: 1;
}

.stacked-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.card-visual-bg {
    position: absolute;
    right: -10%;
    bottom: -10%;
    width: 65%;
    height: 80%;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    will-change: transform, opacity;
}

.stacked-card:hover .card-visual-bg {
    transform: scale(1.05) translate(-2%, -2%);
    opacity: 0.15;
}

.card-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

/* Specific 60/40 layout for Cards */
.card-1 .card-content, .card-2 .card-content, .card-3 .card-content, .card-4 .card-content, .card-5 .card-content, .card-6 .card-content {
    max-width: 50%;
}
.card-1 .card-visual-bg, .card-2 .card-visual-bg, .card-3 .card-visual-bg, .card-4 .card-visual-bg, .card-5 .card-visual-bg, .card-6 .card-visual-bg {
    right: 2rem;
    bottom: 2rem;
    top: 2rem;
    width: 45%;
    height: auto;
    opacity: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.card-1:hover .card-visual-bg, .card-2:hover .card-visual-bg, .card-3:hover .card-visual-bg, .card-4:hover .card-visual-bg, .card-5:hover .card-visual-bg, .card-6:hover .card-visual-bg {
    opacity: 1;
    transform: scale(1.02);
}

.card-tags-editorial {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 1rem;
}

.stacked-card h3 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stacked-card p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 90%;
}



/* --- SVG ANIMATIONS --- */

/* 1. Chart Animation */
/* 1. Chart Animation */
.anim-chart-complex .chart-main-curve {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawMainLine 5s ease-in-out infinite alternate;
}
@keyframes drawMainLine {
    0%, 10% { stroke-dashoffset: 1000; }
    90%, 100% { stroke-dashoffset: 0; }
}
.anim-chart-complex .chart-drop {
    stroke-dasharray: 6 6;
    animation: dashMove 2s linear infinite;
}
@keyframes dashMove {
    from { stroke-dashoffset: 24; }
    to { stroke-dashoffset: 0; }
}
.anim-chart-complex .chart-node {
    animation: pulseNode 4s ease-in-out infinite;
}

/* 2. Neural Brain & Chip Animation */
@keyframes packet1 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(-15px, 15px); }
    90% { opacity: 1; }
    100% { transform: translate(-15px, 35px); opacity: 0; }
}
@keyframes packet2 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(-20px, 0); }
    90% { opacity: 1; }
    100% { transform: translate(-40px, 20px); opacity: 0; }
}
@keyframes packet3 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-50px, 0); opacity: 0; }
}
@keyframes packet4 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(-15px, -15px); }
    90% { opacity: 1; }
    100% { transform: translate(-45px, -15px); opacity: 0; }
}
@keyframes packet5 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    33% { transform: translate(0, -15px); }
    66% { transform: translate(-15px, -30px); }
    90% { opacity: 1; }
    100% { transform: translate(-30px, -30px); opacity: 0; }
}
@keyframes packet6 {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translate(-25px, -20px); }
    90% { opacity: 1; }
    100% { transform: translate(-25px, -45px); opacity: 0; }
}

/* 3. Deep Learning Animation */
.anim-network-complex .nn-node {
    animation: pulseNode 4s ease-in-out infinite;
}
@keyframes pulseNode {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.15); filter: brightness(1.3); }
}
.anim-network-complex .nn-conn {
    animation: pulseConn 4s ease-in-out infinite;
}
@keyframes pulseConn {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.8; stroke-width: 2.5; }
}

/* Gen AI Native SVG Animations */
.genai-node-pulse {
    animation: nodePulse 3s infinite alternate;
    will-change: transform, opacity;
}
@keyframes nodePulse {
    0% { transform: scale(0.98); opacity: 0.8; }
    100% { transform: scale(1.02); opacity: 1; }
}

.anim-genai-flow-1, .anim-genai-flow-2, .anim-genai-flow-3, .anim-genai-flow-4, .anim-genai-flow-5 {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: genaiFlow 3s infinite linear;
}
.anim-genai-flow-2 { animation-delay: 0.5s; }
.anim-genai-flow-3 { animation-delay: 1.0s; }
.anim-genai-flow-4 { animation-delay: 1.5s; }
.anim-genai-flow-5 { animation-delay: 2.0s; }

@keyframes genaiFlow {
    0% { stroke-dashoffset: 100; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { stroke-dashoffset: -100; opacity: 0; }
}

/* MLOps Native SVG Animations */
.mlops-node {
    animation: mlopsNodePulse 4s infinite alternate;
    will-change: transform, opacity;
}
@keyframes mlopsNodePulse {
    0% { opacity: 0.8; transform: scale(0.98); transform-origin: center; }
    100% { opacity: 1; transform: scale(1.02); transform-origin: center; }
}

.mlops-trace {
    animation: mlopsTraceRotate 10s linear infinite;
    transform-origin: 300px 300px;
}
@keyframes mlopsTraceRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 4. Prediction Curve Animation */
.anim-prediction .pred-curve {
    animation: shiftCurve 6s ease-in-out infinite;
}
@keyframes shiftCurve {
    0%, 100% { d: path('M2 18 Q 12 4, 22 12'); }
    50% { d: path('M2 18 Q 12 20, 22 12'); }
}
.anim-prediction .pred-point {
    animation: pulsePoint 4s ease-in-out infinite;
}
@keyframes pulsePoint {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.5); opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }
}

/* 4. Computer Vision Animation */
.anim-vision-complex .vision-scan-line {
    animation: scanMove 4s ease-in-out infinite;
}
@keyframes scanMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(300px); }
}
.anim-vision-complex .vision-brackets {
    transform-origin: center;
    animation: bracketPulse 3s ease-in-out infinite;
}
@keyframes bracketPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}
.anim-vision-complex .vision-node {
    animation: pulseNode 3s ease-in-out infinite;
}

/* 5. NLP Grid Animation */
/* 5. Subtle Neural Animation */
.anim-neural-subtle .neural-node {
    transform-origin: center;
}
@keyframes microDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(var(--dx), var(--dy)); }
}
@keyframes glowNode {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.3); filter: drop-shadow(0 0 5px var(--accent)); }
}
@keyframes fadeLink {
    0% { opacity: 0; }
    50% { opacity: 0.1; }
    100% { opacity: 0.6; }
}
@keyframes dashPulse {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.card-4:hover .neural-node {
    animation-duration: 2s !important;
    filter: drop-shadow(0 0 8px var(--accent)) !important;
}
.card-4:hover .neural-pulse {
    animation-duration: 2s !important;
}

/* 6. API Code Animation */
.anim-api .cursor-blink {
    animation: blinkCursor 1.2s step-end infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.anim-api .code-bracket {
    animation: pulseBracket 5s ease-in-out infinite alternate;
}
@keyframes pulseBracket {
    0%, 100% { stroke-width: 0.5; opacity: 0.4; }
    50% { stroke-width: 1.5; opacity: 1; }
}

/* 6. Deployment Pipeline Animation */
.anim-deployment .deploy-packet {
    offset-path: path('M5 18 V 10 Q 5 4 16 4');
    animation: movePacket 4s linear infinite;
}
@keyframes movePacket {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* Performance: Pause animations when elements are not in viewport or are covered */
.stacked-card.covered .card-content,
.stacked-card.covered .card-visual-bg {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}
.stacked-card.covered *,
.stacked-card:not(.in-view) *,
.hero-section:not(.in-view) * {
    animation-play-state: paused !important;
}



.card-content {
    margin-bottom: 3rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Stacking Offsets */
.card-1 { top: 12vh; z-index: 1; }
.card-2 { top: 15vh; z-index: 2; }
.card-3 { top: 18vh; z-index: 3; }
.card-4 { top: 21vh; z-index: 4; }
.card-5 { top: 24vh; z-index: 5; }
.card-6 { top: 27vh; z-index: 6; }


/* EXPERIENCE SECTION */
.experience-section {
    padding: 6rem 3rem 8rem 3rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.experience-bg-text {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(10rem, 20vw, 24rem);
    font-weight: 800;
    font-family: 'Inter', sans-serif;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
    z-index: -1;
    pointer-events: none;
    letter-spacing: 0.5rem;
    white-space: nowrap;
}

.experience-list-container {
    max-width: 1200px;
    width: 100%;
}

.experience-header-area {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-badge {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: #4ade80;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.5);
    display: inline-block;
}

.experience-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(to right, #4ade80, #ED7A36);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.experience-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
}

.experience-layout {
    display: flex;
    gap: 3rem;
    position: relative;
}

.timeline-container {
    width: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

.timeline-line {
    position: absolute;
    top: 50px;
    bottom: 50px;
    width: 1px;
    background: rgba(255,255,255,0.1);
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: -59px; /* 48px gap + 10px to center of container + 1px for centering */
    top: 45px; /* Aligns with the middle of the experience header */
    z-index: 2;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    transition: all 0.3s ease;
}

.experience-row.expanded .timeline-dot {
    background: #ff5e3a;
    box-shadow: 0 0 15px #ff5e3a;
}

.experience-list {
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.handwritten-note {
    position: absolute;
    font-family: cursive;
    color: rgba(255,255,255,0.3);
    font-size: 1rem;
    line-height: 1.4;
    pointer-events: none;
}
.handwritten-note.top-right {
    top: -50px;
    right: -100px;
    transform: rotate(5deg);
}
.handwritten-note.bottom-left {
    bottom: -60px;
    left: -120px;
    transform: rotate(-10deg);
}

.experience-row {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
}

.experience-row:hover {
    background: rgba(20, 20, 20, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.exp-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    gap: 2rem;
}

.exp-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.exp-num {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
}

.exp-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.exp-icon-box svg {
    width: 24px;
    height: 24px;
    stroke: #4ade80; /* Default green */
    transition: stroke 0.3s ease;
}

.experience-row.expanded .exp-icon-box svg {
    stroke: #ff5e3a; /* Red when open */
}

.exp-middle {
    flex-grow: 1;
}

.exp-role {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.exp-company-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

.exp-right-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.exp-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.exp-meta-item svg {
    width: 14px;
    height: 14px;
}

.exp-arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.exp-header:hover .exp-arrow-btn {
    background: rgba(255,255,255,0.1);
}

.experience-row.expanded .exp-arrow-btn {
    transform: rotate(90deg);
    background: white;
    color: black;
}

.exp-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-row.expanded .exp-body {
    max-height: 1500px;
}

.exp-content {
    display: flex;
    gap: 3rem;
    padding: 2.5rem;
    margin-top: 1.5rem;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.experience-row.expanded .exp-content {
    opacity: 1;
    transform: translateY(0);
}

.exp-image {
    width: 300px;
    height: 200px;
    border-radius: 16px;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    flex-shrink: 0;
}

.exp-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-details {
    flex-grow: 1;
}

.exp-company {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.exp-company span {
    color: rgba(255,255,255,0.4);
    margin: 0 0.5rem;
}

.exp-desc {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.exp-desc li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.exp-desc li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.proof-of-work {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
}

.proof-of-work h4 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.25rem;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.proof-img-container {
    aspect-ratio: 16/9;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    position: relative;
}

.proof-img-container::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    z-index: 2;
}

.proof-img-container:hover::after {
    opacity: 1;
}

.proof-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proof-img-container:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}


/* PROJECTS SECTION */
.projects-section {
    padding: 4rem 3rem 5rem 3rem;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.projects-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.projects-section .experience-header-area {
    margin-bottom: 1.5rem;
}

.project-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin: 0 auto 1.5rem auto;
    max-width: fit-content;
    flex-wrap: wrap;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1.25rem;
    border-radius: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
}

.filter-btn:hover {
    color: var(--text-main);
}

.filter-btn.active {
    background: rgba(255,255,255,0.15);
    color: var(--text-main);
}

.projects-glass-wrapper {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 1300px;
}

.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 3rem 1rem;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

.projects-carousel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.project-card {
    flex: 0 0 340px; /* Fixed width for carousel cards */
    max-width: 85vw; /* Prevent scroll-snap trap on small screens */
    scroll-snap-align: start;
    background: transparent;
    border-radius: 24px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    height: 480px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    will-change: transform;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

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

.project-card:hover {
    transform: translateY(-30px) scale(1.08);
}

.card-top-header {
    display: flex;
    align-items: center;
    padding: 0 0.5rem 1rem 0.5rem;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.card-app-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: auto;
}

.card-menu {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.card-image-block {
    position: relative;
    width: 100%;
    flex-grow: 1;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-variant-image .card-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.card-overlay-bottom h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.card-overlay-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

/* Variant Text specific styles */
.card-variant-text .card-image-block {
    background: #161616;
    border-radius: 24px;
}

.text-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.text-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.moon-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.groups-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.text-card-middle {
    margin-top: auto;
    margin-bottom: 2.5rem;
}

.user-avatars {
    display: flex;
    margin-bottom: 1rem;
}

.avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #161616;
    margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

.discussion-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.disc-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.text-card-middle h3 {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.1;
    color: white;
}

.text-card-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.followers-count {
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
}

.join-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Badges for Images */
.live-pill {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #FF5F56;
    border-radius: 50%;
}

.follower-pill {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
    z-index: 2;
}

/* New Header */
.carousel-section-header {
    display: flex;
    justify-content: flex-start;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.live-dot-header {
    width: 10px;
    height: 10px;
    background-color: #FF3B30;
    border-radius: 50%;
}

.carousel-header-left h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.carousel-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

/* Split Card */
.card-variant-split {
    background: #000;
    padding: 0;
    overflow: hidden;
}

.split-image-container {
    height: 75%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.split-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-text-container {
    height: 25%;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    background: #161616;
}

.split-text-container p {
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.3;
}

/* Full Image Card */
.card-variant-full {
    position: relative;
    padding: 1.5rem;
    overflow: hidden;
    justify-content: space-between;
}

.follower-pill-right {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: white;
}

.full-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.full-image-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.full-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: white;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-tag {
    background: white;
    color: black;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.full-overlay-bottom h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.full-overlay-bottom p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

/* PROJECT MODAL */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.project-modal {
    background: rgba(15, 20, 30, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255,255,255,0.02);
    will-change: transform;
}

.project-modal-overlay.active .project-modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modal-badge {
    color: #fff;
    font-weight: 500;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.modal-body {
    display: flex;
    gap: 4rem;
}

.modal-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-project-icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

.modal-project-icon-wrapper img, .modal-project-icon-wrapper svg {
    width: 32px;
    height: auto;
}

.modal-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: #fff;
}

.modal-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

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

.modal-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #60a5fa;
}

.modal-feature-name {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.modal-tech-stack {
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.tech-stack-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

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

.modal-tech-stack .tech-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 1;
    transform: none;
}

.modal-media-frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: #000;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 5;
    transition: background 0.3s, transform 0.3s;
}

.modal-carousel-btn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.modal-image-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.modal-bottom-cta {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2.5rem;
    align-items: flex-start;
}

.cta-left {
    flex: 0 0 35%;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

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

.cta-right {
    flex: 1;
    display: flex;
    gap: 1.5rem;
}

.cta-card {
    flex: 1;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-theme-blue {
    border-color: rgba(96, 165, 250, 0.2);
    background: linear-gradient(145deg, rgba(96, 165, 250, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.cta-theme-green {
    border-color: rgba(74, 222, 128, 0.2);
    background: linear-gradient(145deg, rgba(74, 222, 128, 0.05) 0%, rgba(0,0,0,0) 100%);
}

.cta-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
}

.cta-theme-blue .cta-card-icon { color: #60a5fa; background: rgba(96, 165, 250, 0.1); }
.cta-theme-green .cta-card-icon { color: #4ade80; background: rgba(74, 222, 128, 0.1); }

.cta-card-title {
    font-weight: 600;
    color: #fff;
    font-size: 1.05rem;
}

.cta-card-subtitle {
    font-size: 0.85rem;
}
.cta-theme-blue .cta-card-subtitle { color: #60a5fa; }
.cta-theme-green .cta-card-subtitle { color: #4ade80; }

.cta-card-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    flex-grow: 1;
}

.cta-card-btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-theme-blue .cta-card-btn {
    background: #3b82f6;
    color: #fff;
}
.cta-theme-blue .cta-card-btn:hover { background: #2563eb; }

.cta-theme-green .cta-card-btn {
    background: #22c55e;
    color: #fff;
}
.cta-theme-green .cta-card-btn:hover { background: #16a34a; }

@media (max-width: 900px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-left, .modal-right {
        flex: 1 1 auto;
    }
    .modal-bottom-cta {
        flex-direction: column;
    }
    .cta-left {
        flex: 1 1 auto;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .cta-right {
        flex-direction: column;
    }
}

/* EDUCATION SECTION */
.education-section {
    padding: 4rem 2rem 5rem 2rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.education-header-area {
    text-align: center;
    margin-bottom: 2rem;
}

/* Glassmorphic Dashboard Styles */
.edu-dashboard {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    background: rgba(13, 17, 23, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 1.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

/* Left Gallery */
.edu-gallery {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/11;
    height: 100%;
    background: #000;
}

.edu-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.65) contrast(1.1);
}

.edu-gallery-img.active {
    opacity: 1;
}

.edu-gallery-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.edu-counter {
    color: rgba(255,255,255,0.7);
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.edu-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.edu-nav-arrow {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edu-nav-arrow:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.edu-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.edu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.edu-dot.active {
    background: white;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
    transform: scale(1.2);
}

/* Right Cards */
.edu-cards {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    max-height: 480px;
    padding-right: 0.5rem;
}

.edu-cards::-webkit-scrollbar {
    width: 4px;
}

.edu-cards::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.edu-cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.edu-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 145px;
}

.edu-list-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.edu-list-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
}

.edu-list-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--text-primary);
    border-radius: 3px 0 0 3px;
}

.edu-item-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: color 0.3s, background 0.3s;
}

.edu-list-item.active .edu-item-icon {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.edu-item-info {
    flex-grow: 1;
}

.edu-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.edu-item-degree {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.edu-item-year {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Fira Code', monospace;
}

.edu-item-desc {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.edu-item-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.edu-item-tags span {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-muted);
}

.edu-item-arrow {
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.edu-list-item:hover .edu-item-arrow {
    opacity: 0.5;
    transform: translateX(0);
}

.edu-list-item.active .edu-item-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .edu-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .edu-gallery {
        min-height: auto;
        aspect-ratio: 16/10;
    }
    .edu-cards {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .edu-dashboard {
        padding: 1.2rem;
        border-radius: 16px;
        gap: 1.2rem;
    }
    .edu-gallery {
        min-height: auto;
        aspect-ratio: 4/3;
        border-radius: 12px;
    }
    .edu-gallery-controls {
        padding: 1rem 1.2rem;
    }
    .edu-nav-arrow {
        width: 32px;
        height: 32px;
    }
    .edu-list-item {
        padding: 1rem;
        height: auto;
        min-height: 120px;
    }
    .edu-item-icon {
        width: 36px;
        height: 36px;
    }
    .edu-item-degree {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .edu-dashboard {
        padding: 1rem;
        border-radius: 12px;
        gap: 1rem;
    }
    .edu-gallery {
        aspect-ratio: 1/1;
    }
    .edu-cards {
        max-height: 350px;
    }
    .edu-item-info p {
        font-size: 0.8rem;
    }
    .edu-item-tags span {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    background: rgba(13, 17, 23, 0.5);
    backdrop-filter: blur(20px);
}

.footer-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    color: transparent;
}

.footer-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    margin-top: 5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1280px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .services-section {
        padding: 4rem 1rem;
    }
    .services-bg-text {
        font-size: 8rem;
    }
    .stacked-card {
        padding: 2.5rem 2rem;
        min-height: auto;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
    }
    .card-content, .card-1 .card-content, .card-2 .card-content, .card-3 .card-content, .card-4 .card-content, .card-5 .card-content, .card-6 .card-content {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .card-visual-bg, .card-1 .card-visual-bg, .card-2 .card-visual-bg, .card-3 .card-visual-bg, .card-4 .card-visual-bg, .card-5 .card-visual-bg, .card-6 .card-visual-bg {
        position: relative;
        width: 100%;
        height: 200px;
        right: 0;
        bottom: 0;
        top: 0;
        opacity: 1;
    }
    .stacked-card h3 {
        font-size: 2.25rem;
    }
    .card-1 { top: 10vh; }
    .card-2 { top: 12vh; }
    .card-3 { top: 14vh; }
    .card-4 { top: 16vh; }
    .card-5 { top: 18vh; }
    .card-6 { top: 20vh; }

    .hero-content h1 {
        font-size: 2.25rem;
    }
    .stats-badge {
        display: none;
    }
    .navbar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .nav-links-container {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 0 0.5rem;
    }
    .nav-links-container::-webkit-scrollbar {
        display: none;
    }
    .nav-links {
        width: max-content;
        margin: 0 auto; /* Centers it if it fits, scrolls if it overflows */
    }
    .code-card {
        width: 300px;
    }
    .about-card, .skills-card {
        padding: 3rem;
    }
    .about-stats {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }
    .about-stat-item {
        width: 30%;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about-card, .skills-card {
        padding: 2rem;
    }
    .about-stat-item {
        width: 45%;
    }
    .hero-section {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 4rem;
    }
    .hero-content {
        align-items: center;
    }
    .greeting-badge {
        align-self: center;
        font-size: 17px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }
    .hero-visuals {
        margin-top: 2rem;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    /* Mobile Network Diagram */
    .network-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        padding: 1rem;
    }
    .center-column {
        width: 100%;
        order: -1; /* Tech Stack at top */
        margin-bottom: 2rem;
    }
    .skills-column {
        width: 45%; /* Side-by-side columns below tech stack */
        gap: 1rem;
    }
    .network-node {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        justify-content: flex-start !important;
    }
    .network-node.right-node {
        flex-direction: row-reverse;
    }

    /* Mobile Experience Section */
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    .exp-num::after {
        display: none; /* Hide the arrow next to number on mobile */
    }
    .exp-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .exp-right-meta {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .exp-arrow-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
    }
    .handwritten-note {
        display: none;
    }
}

@media (max-width: 768px) {
    .timeline-container {
        display: none;
    }
    .experience-bg-text {
        font-size: clamp(4rem, 15vw, 8rem);
    }
    .exp-content {
        flex-direction: column;
    }
    .exp-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    .proof-grid {
        grid-template-columns: 1fr;
    }
    .experience-section {
        padding: 4rem 1.5rem;
    }
}

/* RESPONSIVE PROJECTS SECTION */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .projects-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .projects-section {
        padding: 3rem 1.5rem;
    }
    .project-filters {
        gap: 0.75rem;
        padding: 0.3rem 1rem;
    }
    .filter-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* RESPONSIVE TERMINAL TEXT (HERO) */
@media (max-width: 768px) {
    .hero-import-line {
        font-size: 0.95rem;
        white-space: nowrap;
    }
}
@media (max-width: 480px) {
    .hero-import-line {
        font-size: 0.85rem;
        letter-spacing: -0.02em;
    }
}


