/* ===============================================
   Portfolio Styles - Osmo Inspired
   Fixed padding/spacing issues
   =============================================== */

:root {
    --osmo-bg: #FAFAFA;
    --osmo-text: #111111;
    --osmo-card-bg: #FFFFFF;
    --osmo-accent: #0A3D2C;
    --osmo-green: #A3E635;
    --osmo-dark-green: #0A3D2C;
    --osmo-black: #050505;
    --osmo-white: #FAFAFA;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing variables for consistency */
    --padding-section: 120px;
    --padding-horizontal: 60px;
    --padding-horizontal-mobile: 24px;
    --max-width: 1400px;

    /* Transition system - Lando-inspired timing */
    --transition-fast: 0.2s cubic-bezier(0.65, 0.05, 0, 1);
    --transition-base: 0.3s cubic-bezier(0.65, 0.05, 0, 1);
    --transition-slow: 0.75s cubic-bezier(0.65, 0.05, 0, 1);

    /* Category-specific typography */
    --font-ml-ai: 'JetBrains Mono', 'Courier New', monospace;
    --font-finance: 'IBM Plex Mono', 'Courier', monospace;
    --font-web3: 'Orbitron', 'Space Grotesk', sans-serif;
    --font-mobile: 'Poppins', 'Inter', sans-serif;
    --font-mcp: 'Fira Code', 'JetBrains Mono', monospace;
}

/* ===============================================
   Page Loader
   =============================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.page-loader.loaded {
    animation: loaderSlideUp 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loaderSlideUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #FFF;
    letter-spacing: -0.03em;
    overflow: hidden;
    display: flex;
}

.loader-text span {
    display: inline-block;
    animation: loaderReveal 0.5s ease forwards;
    opacity: 0;
    transform: translateY(100%);
}

.loader-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: var(--osmo-green);
    width: 0%;
    animation: loaderProgress 1.5s ease forwards;
}

@keyframes loaderReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ===============================================
   Noise/Grain Texture Overlay
   =============================================== */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-2%, -2%);
    }

    20% {
        transform: translate(2%, 2%);
    }

    30% {
        transform: translate(-1%, 1%);
    }

    40% {
        transform: translate(1%, -1%);
    }

    50% {
        transform: translate(-2%, 2%);
    }

    60% {
        transform: translate(2%, -2%);
    }

    70% {
        transform: translate(-1%, -1%);
    }

    80% {
        transform: translate(1%, 1%);
    }

    90% {
        transform: translate(-2%, -2%);
    }
}

/* ===============================================
   Text Reveal Animation
   =============================================== */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text .line {
    display: block;
    overflow: hidden;
}

.reveal-text .line-inner {
    display: block;
    transform: translateY(105%);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.reveal-text.revealed .line-inner {
    transform: translateY(0);
}

/* Stagger lines */
.reveal-text .line:nth-child(1) .line-inner {
    transition-delay: 0s;
}

.reveal-text .line:nth-child(2) .line-inner {
    transition-delay: 0.1s;
}

.reveal-text .line:nth-child(3) .line-inner {
    transition-delay: 0.2s;
}

/* ===============================================
   Horizontal Scroll Section
   =============================================== */
.horizontal-scroll-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    margin-left: calc(-1 * var(--padding-horizontal));
    margin-right: calc(-1 * var(--padding-horizontal));
    padding-left: var(--padding-horizontal);
    width: calc(100% + var(--padding-horizontal) * 2);
}

.horizontal-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 0;
    padding-right: var(--padding-horizontal);
    cursor: grab;
}

.horizontal-scroll-container:active {
    cursor: grabbing;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Scroll hint */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.scroll-hint-arrow {
    display: inline-block;
    animation: scrollArrow 1.5s ease infinite;
}

@keyframes scrollArrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateX(6px);
        opacity: 1;
    }
}

/* Horizontal Gallery */
.horizontal-scroll-container .photo-card {
    flex-shrink: 0;
    width: 320px;
    height: 320px;
    aspect-ratio: auto;
}

/* Horizontal Skills */
.horizontal-scroll-container .osmo-card.dark-card {
    flex-shrink: 0;
    width: 280px;
    min-height: 260px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--osmo-bg);
    color: var(--osmo-text);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===============================================
   Page Loader
   =============================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: #FFF;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===============================================
   Noise/Grain Overlay
   =============================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===============================================
   Text Reveal Animation
   =============================================== */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text .word {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.6s ease;
}

.reveal-text.revealed .word {
    transform: translateY(0);
    opacity: 1;
}

.reveal-text .word:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-text .word:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal-text .word:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal-text .word:nth-child(4) {
    transition-delay: 0.25s;
}

.reveal-text .word:nth-child(5) {
    transition-delay: 0.3s;
}

.reveal-line {
    overflow: hidden;
}

.reveal-line span {
    display: block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

.reveal-line.revealed span {
    transform: translateY(0);
}

/* ===============================================
   Header
   =============================================== */
.osmo-header {
    position: fixed;
    top: 24px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.header-pill {
    background: #1A1A1A;
    padding: 6px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 420px;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.menu-trigger {
    color: #FFF;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 100px;
    transition: background 0.2s;
}

.menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-logo {
    color: #FFF;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.header-actions {
    display: flex;
    gap: 4px;
}

.btn-login {
    color: #FFF;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    transition: background 0.2s;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-join {
    background: var(--osmo-green);
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-join:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(163, 230, 53, 0.4);
}

/* ===============================================
   Menu Overlay
   =============================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px;
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #FFF;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.2s;
    line-height: 1;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.menu-link {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: #FFF;
    text-decoration: none;
    letter-spacing: -0.03em;
    position: relative;
    transition:
        color var(--transition-base),
        transform var(--transition-base);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--osmo-green);
    transition: width var(--transition-slow);
}

.menu-link:hover {
    color: var(--osmo-green);
    transform: translateX(10px);
}

.menu-link:hover::after {
    width: 100%;
}

.menu-footer {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 30px;
}

.menu-footer a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.menu-footer a:hover {
    color: #FFF;
}

/* ===============================================
   Main Layout - Sections handle own padding
   =============================================== */
.osmo-main {
    position: relative;
    z-index: 2;
    background-color: var(--osmo-bg);
}

main {
    position: relative;
    z-index: 2;
    margin-bottom: 100vh;
}

/* ===============================================
   Hero Section
   =============================================== */
.osmo-hero {
    position: relative;
    min-height: 100vh;
    padding: 180px var(--padding-horizontal) var(--padding-section) var(--padding-horizontal);
    max-width: calc(var(--max-width) + var(--padding-horizontal) * 2);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--osmo-bg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
    overflow: hidden;
}

/* Topographic Background Pattern for Hero Section */
.osmo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='topo' x='0' y='0' width='300' height='300' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0,60 Q75,40 150,60 T300,60 M0,120 Q75,100 150,120 T300,120 M0,180 Q75,160 150,180 T300,180 M0,240 Q75,220 150,240 T300,240' stroke='%23000000' stroke-width='1' fill='none' opacity='0.4'/%3E%3Cpath d='M60,0 Q60,75 60,150 T60,300 M120,0 Q120,75 120,150 T120,300 M180,0 Q180,75 180,150 T180,300 M240,0 Q240,75 240,150 T240,300' stroke='%23000000' stroke-width='1' fill='none' opacity='0.4'/%3E%3Ccircle cx='75' cy='75' r='3' fill='%23000000' opacity='0.3'/%3E%3Ccircle cx='225' cy='225' r='3' fill='%23000000' opacity='0.3'/%3E%3Ccircle cx='150' cy='150' r='2' fill='%23000000' opacity='0.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23topo)'/%3E%3C/svg%3E"),
        radial-gradient(
            ellipse 600px 400px at 20% 30%,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 600px 400px at 80% 70%,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 60%
        );
    background-size: 300px 300px, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.osmo-hero > * {
    position: relative;
    z-index: 1;
}

/* Rive Canvas Elements */
.rive-canvas {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

/* Hero Canvas - Animated data orb in top right */
.hero-canvas {
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    opacity: 0.15;
    mix-blend-mode: screen;
}

/* Section Canvas - Morphing shapes behind headers */
.section-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 300px;
    opacity: 0;  /* Disabled - pivoting to foreground category designs */
    mix-blend-mode: screen;
    pointer-events: none;
    display: none;
}

/* Ensure hero content is above canvas */
.-titlehero,
.hero-subtitle,
.hero-description,
.hero-actions {
    position: relative;
    z-index: 2;
}

/* Section headers positioned above canvas - styles merged below */

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-canvas {
        width: 400px;
        height: 400px;
    }

    .section-canvas {
        width: 300px;
        height: 200px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .rive-canvas {
        display: none;
    }
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    color: #1A1A1A;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

/* Character-by-character reveal animation - Lando-inspired */
.hero-title .char {
    display: inline-block;
    transform: translateY(120%) rotate(8deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--char-index) * 0.03s);
}

.hero-title.revealed .char {
    transform: translateY(0%) rotate(0deg);
    opacity: 1;
}

/* Preserve spaces */
.hero-title .char.space {
    width: 0.25em;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-title .char {
        transform: none;
        opacity: 1;
        transition: none;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #555;
    max-width: 750px;
}

/* ===============================================
   Section Layout
   =============================================== */
.osmo-section {
    position: relative;
    width: 100%;
    padding: var(--padding-section) var(--padding-horizontal);
    background-color: var(--osmo-bg);
}

.osmo-section[data-theme="dark"] {
    background-color: #0F0F0F;
}

.osmo-section[data-theme="light"] {
    background-color: var(--osmo-bg);
    position: relative;
    overflow: hidden;
    padding: 80px var(--padding-horizontal);
}

/* Topographic Background Pattern for Light Sections */
.osmo-section[data-theme="light"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='topo' x='0' y='0' width='300' height='300' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0,60 Q75,40 150,60 T300,60 M0,120 Q75,100 150,120 T300,120 M0,180 Q75,160 150,180 T300,180 M0,240 Q75,220 150,240 T300,240' stroke='%23000000' stroke-width='1' fill='none' opacity='0.4'/%3E%3Cpath d='M60,0 Q60,75 60,150 T60,300 M120,0 Q120,75 120,150 T120,300 M180,0 Q180,75 180,150 T180,300 M240,0 Q240,75 240,150 T240,300' stroke='%23000000' stroke-width='1' fill='none' opacity='0.4'/%3E%3Ccircle cx='75' cy='75' r='3' fill='%23000000' opacity='0.3'/%3E%3Ccircle cx='225' cy='225' r='3' fill='%23000000' opacity='0.3'/%3E%3Ccircle cx='150' cy='150' r='2' fill='%23000000' opacity='0.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23topo)'/%3E%3C/svg%3E"),
        radial-gradient(
            ellipse 600px 400px at 20% 30%,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 600px 400px at 80% 70%,
            rgba(0, 0, 0, 0.08) 0%,
            transparent 60%
        );
    background-size: 300px 300px, 100% 100%, 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.osmo-section[data-theme="light"] > * {
    position: relative;
    z-index: 1;
}

/* Inner content max-width */
.osmo-section>.section-header-sticky,
.osmo-section>.osmo-grid,
.osmo-section>.experience-list,
.osmo-section>#photoGallery {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section-header-sticky {
    position: sticky;
    top: 100px;
    height: fit-content;
    margin-bottom: 40px;
    z-index: 100;
    background: #050505;
    padding: 20px 0;
    margin-left: -20px;
    padding-left: 20px;
}

.section-header-sticky h2 {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.04em;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header-sticky h2 .section-subtitle {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 500;
    color: var(--osmo-green);
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin-top: 4px;
}

[data-theme="dark"] .section-header-sticky {
    background: #0F0F0F;
}

/* Section Numbers - Lando-inspired visual hierarchy */
.section-number {
    position: absolute;
    top: 0;
    right: var(--padding-horizontal);
    font-size: clamp(6rem, 12vw, 8rem);
    font-weight: 700;
    font-family: var(--font-display);
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

[data-theme="light"] .section-number {
    color: rgba(0, 0, 0, 0.03);
}

/* Impact Statements */
.section-impact-statement {
    max-width: var(--max-width);
    margin: 0 auto 60px;
    padding: 0 var(--padding-horizontal);
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
}

.impact-stat {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--osmo-green);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 40px;
}

.impact-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
    margin: 0;
    font-weight: 500;
}

[data-theme="light"] .impact-desc {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .section-header-sticky {
    background: var(--osmo-bg);
}

[data-theme="dark"] .section-header-sticky h2 {
    color: #FFF;
}

[data-theme="light"] .section-header-sticky h2 {
    color: #1A1A1A;
}

/* ===============================================
   Grid Layouts
   =============================================== */
.osmo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skills-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    padding-bottom: 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.skills-grid::-webkit-scrollbar {
    display: none;
}

.skills-grid .osmo-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

/* ===============================================
   Cards
   =============================================== */
.osmo-card {
    background: #FFF;
    border-radius: 15px;
    padding: 28px;
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.osmo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Dark Cards */
.osmo-card.dark-card {
    background: #111;
    border: 1px solid #222;
    color: #FFF;
    min-height: 300px;
}

.osmo-card.dark-card .card-title {
    color: #FFF;
    font-size: 1.5rem;
}

.osmo-card.dark-card .skill-list-card li {
    background: rgba(255, 255, 255, 0.08);
    color: #E0E0E0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.osmo-card.dark-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    border-color: #333;
}

/* Featured Card - Same as regular cards */
.osmo-card.featured {
    background-color: #1A1A1A;
    color: #FFF;
}

/* ===============================================
   Badges
   =============================================== */
.card-badge-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.badge-black {
    background: #000;
    color: #FFF;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-primary);
}

.badge-grey {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-primary);
}

.badge-white {
    background: #FFF;
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===============================================
   Card Content - Full Width Layout (No Images)
   =============================================== */
.card-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.card-inner .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* Badge row spacing */
.project-card .card-badge-row {
    margin-bottom: 12px;
}

.card-content {
    margin-top: auto;
}

.card-date {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    font-weight: 500;
}

.card-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    color: #1A1A1A;
}

.card-desc {
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-tags span {
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    font-family: var(--font-primary);
}

/* ===============================================
   Project Deck
   =============================================== */
.projects-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 300px;
    max-width: 100%;
}

/* Override grid layout for projects deck */
.osmo-grid.projects-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-template-columns: none;
    gap: 0;
}

.project-card {
    position: sticky;
    top: 180px;
    /* Below the header */
    width: 100%;
    max-width: 900px;
    height: fit-content;
    margin: 0 auto 20px auto;
    background-color: #1A1A1A;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 24px 32px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Section header stays above cards */
#projects .section-header-sticky {
    position: sticky;
    top: 80px;
    z-index: 50;
    margin-bottom: 20px;
    background: #0F0F0F;
    padding: 20px 0;
}

/* All cards same design - remove alternating colors */
.project-card:nth-child(odd),
.project-card:nth-child(even) {
    background-color: #1A1A1A;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.12);
}

.project-card .card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2vw, 1.65rem);
    font-weight: 600;
    margin-bottom: 8px;
    color: #FFFFFF;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.project-card .card-desc {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    max-width: 100%;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    margin-bottom: 16px;
    font-weight: 400;
}

.project-card .card-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    font-weight: 500;
    font-family: var(--font-primary);
}

.project-card .card-tags {
    margin-top: auto;
}


/* ===============================================
   Impact Metrics Section - Compact
   =============================================== */
.card-impact {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.impact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.impact-value {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

.impact-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .card-impact {
        flex-wrap: wrap;
        gap: 16px;
    }

    .impact-item {
        min-width: 80px;
    }

    .impact-value {
        font-size: 1.25rem;
    }
}

/* ===============================================
   Experience Timeline
   =============================================== */
.experience-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.experience-item {
    display: flex;
    padding: 50px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    gap: 50px;
    transition: background-color 0.3s ease;
}

.experience-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.exp-date {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #888;
    width: 180px;
    flex-shrink: 0;
    padding-top: 6px;
    font-weight: 500;
}

.exp-content {
    flex: 1;
    max-width: 750px;
}

.exp-role {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 6px;
    line-height: 1.15;
}

.exp-company {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.exp-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.experience-item .card-tags span {
    background: transparent;
    color: #666;
    border: 1px solid #DDD;
}

/* ===============================================
   Skills List
   =============================================== */
.skill-list-card {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-list-card li {
    background: #F4F4F5;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #333;
    transition: transform 0.2s, background 0.2s;
}

.skill-list-card li:hover {
    transform: translateY(-2px);
    background: #E4E4E7;
}

/* ===============================================
   Certifications
   =============================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.cert-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 12px;
    padding: 10px;
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-content {
    flex: 1;
}

.cert-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
}

.cert-date {
    font-size: 0.8rem;
    color: #999;
}

.cert-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #E0E0E0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.cert-link:hover {
    background: #1A1A1A;
    color: #FFF;
    border-color: #1A1A1A;
}

/* ===============================================
   Photography Gallery - Horizontal Scroll
   =============================================== */
.gallery-container {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
}

/* Center Gallery Header */
#photography .section-header-sticky.gallery-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
}

#photography .section-header-sticky.gallery-header h2 {
    margin: 0 auto;
}

/* Drag Indicator */
.gallery-drag-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: var(--font-primary);
    font-weight: 500;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-drag-indicator svg {
    width: 20px;
    height: 20px;
    animation: dragIndicator 2s ease-in-out infinite;
}

@keyframes dragIndicator {
    0%, 100% {
        transform: translateX(-4px);
    }
    50% {
        transform: translateX(4px);
    }
}

.gallery-scroll-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: visible;
    cursor: grab;
    margin: 60px 0;
    perspective: 1500px;
    perspective-origin: center center;
}

.gallery-scroll-wrapper:active {
    cursor: grabbing;
}

/* Circular/Clock-hand motion gallery */
.gallery-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.gallery-scroll-container.dragging {
    transition: none;
}

#photoGallery {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: center center;
}

#photoGallery .photo-card {
    position: absolute;
    width: 300px;
    height: 380px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -190px;
    transform-origin: center center;
    user-select: none;
    pointer-events: none;
    transform-style: preserve-3d;
    backface-visibility: visible;
    transition: opacity 0.6s ease;
}

#photoGallery .photo-card img {
    pointer-events: none;
    user-select: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.gallery-intro {
    margin-bottom: 60px;
    max-width: 600px;
    padding-left: var(--padding-horizontal);
}

.gallery-tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--osmo-green);
    margin-bottom: 16px;
    font-weight: 600;
}

.gallery-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 500;
    color: #FFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gallery-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.gallery-link {
    display: inline-block;
    color: #FFF;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    transition: all 0.3s ease;
}

.gallery-link:hover {
    background: #FFF;
    color: #000;
    border-color: #FFF;
}

/* Gallery Instruction */
.gallery-instruction {
    margin-top: 40px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--padding-horizontal);
}

.gallery-instruction-text {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin: 0;
}

/* Gallery Outro Text */
.gallery-outro {
    margin-top: 60px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--padding-horizontal);
}

.gallery-outro-text {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    font-style: italic;
    margin: 0;
}

/* Horizontal scroll gallery with circular scroll */

.photo-card {
    flex: 0 0 350px;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    background: #222;
    scroll-snap-align: start;
    transition: transform 0.4s ease;
}

.photo-card:hover {
    transform: scale(1.02);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.08);
}

/* ===============================================
   Footer
   =============================================== */
.footer {
    background-color: #FFFFFF;
    color: #1A1A1A;
    padding: 100px var(--padding-horizontal) 40px var(--padding-horizontal);
    position: sticky;
    bottom: 0;
    z-index: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 60px;
}

.footer-form-section {
    flex: 1;
    max-width: 550px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1A1A1A;
    font-family: var(--font-primary);
}

.osmo-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-group-row {
    display: flex;
    gap: 14px;
}

.osmo-input {
    background: #F4F4F5;
    border: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    width: 100%;
    outline: none;
    transition: background 0.2s, box-shadow 0.2s;
    font-weight: 400;
}

.osmo-input:focus {
    background: #EAEAEB;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.osmo-textarea {
    resize: none;
    min-height: 110px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #666;
    font-family: var(--font-primary);
    font-weight: 400;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn-osmo-black {
    background: #FF4444;
    color: #FFF;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: var(--font-primary);
}

.btn-osmo-black:hover {
    background: #FF5555;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.footer-links-section {
    display: flex;
    gap: 70px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-small {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    font-family: var(--font-primary);
    font-weight: 400;
}

.footer-link-small:hover {
    color: #1A1A1A;
}

.footer-brand-massive {
    font-family: var(--font-display);
    font-size: clamp(8rem, 25vw, 28rem);
    font-weight: 700;
    line-height: 0.8;
    color: #1A1A1A;
    text-align: center;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 30px;
    font-family: var(--font-primary);
    font-weight: 400;
}

/* ===============================================
   Black-Scholes Interactive Demo
   =============================================== */
.black-scholes-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-top: 60px;
    padding: 50px;
    background: linear-gradient(135deg, #0A1A1A 0%, #0F2A1F 100%);
    border-radius: 16px;
    border: 1px solid rgba(163, 230, 53, 0.1);
    position: relative;
    overflow: hidden;
}

.black-scholes-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(163, 230, 53, 0.3), transparent);
}

.bs-canvas {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(163, 230, 53, 0.08);
}

.bs-controls {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(163, 230, 53, 0.08);
}

.bs-control {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bs-label {
    color: rgba(163, 230, 53, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'JetBrains Mono', monospace;
}

.bs-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(163, 230, 53, 0.1);
    border-radius: 3px;
    outline: none;
    transition: background 0.2s;
}

.bs-slider:hover {
    background: rgba(163, 230, 53, 0.15);
}

.bs-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #A3E635;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.3);
    transition: all 0.2s cubic-bezier(0.65, 0.05, 0, 1);
}

.bs-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(163, 230, 53, 0.5);
}

.bs-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #A3E635;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(163, 230, 53, 0.3);
    transition: all 0.2s cubic-bezier(0.65, 0.05, 0, 1);
}

.bs-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 16px rgba(163, 230, 53, 0.5);
}

.bs-value {
    color: #FAFAFA;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
    min-width: 120px;
}

.bs-info {
    grid-column: 1 / -1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(163, 230, 53, 0.08);
    margin-top: 20px;
}

.bs-info-text {
    color: rgba(250, 250, 250, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.bs-info-text:last-child {
    margin-bottom: 0;
}

.bs-info-text strong {
    color: rgba(163, 230, 53, 0.9);
    font-weight: 600;
}

.bs-info-text em {
    color: rgba(163, 230, 53, 0.7);
    font-style: normal;
}

.bs-link {
    color: #A3E635;
    text-decoration: none;
    border-bottom: 1px solid rgba(163, 230, 53, 0.3);
    transition: all 0.2s;
}

.bs-link:hover {
    color: #B5F74D;
    border-bottom-color: #A3E635;
}

/* ===============================================
   Responsive
   =============================================== */
@media (max-width: 1200px) {
    :root {
        --padding-horizontal: 40px;
    }
}

@media (max-width: 1024px) {
    :root {
        --padding-section: 80px;
        --padding-horizontal: 32px;
    }

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

    .section-header-sticky {
        position: relative;
        top: 0;
        margin-bottom: 32px;
    }

    .project-card {
        position: relative;
        top: 0;
        height: auto;
        min-height: 220px;
        max-height: none;
        margin-bottom: 20px;
        padding: 24px;
    }

    .project-card .card-badge-row {
        margin-bottom: 10px;
    }

    .card-inner {
        flex-direction: column;
        margin: 0;
    }

    .card-inner .card-content {
        padding: 0;
    }

    .projects-deck {
        padding-bottom: 0;
    }

    #photoGallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-row {
        flex-direction: column;
        gap: 40px;
    }

    .menu-link {
        font-size: 2.5rem;
    }

    .experience-item {
        flex-direction: column;
        gap: 12px;
        padding: 40px 0;
    }

    .exp-date {
        width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --padding-section: 60px;
        --padding-horizontal: var(--padding-horizontal-mobile);
    }

    .header-pill {
        width: calc(100% - 48px);
        max-width: 380px;
    }

    .osmo-hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .skills-grid .osmo-card {
        flex: 0 0 280px;
    }

    .project-card {
        padding: 28px;
    }

    .photo-card {
        flex: 0 0 280px;
        height: 380px;
    }

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

    .cert-card {
        padding: 20px;
    }

    .cert-title {
        font-size: 1rem;
    }

    .black-scholes-container {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }

    .bs-canvas {
        height: 450px;
    }

    .form-group-row {
        flex-direction: column;
    }

    .form-footer {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .btn-osmo-black {
        width: 100%;
        text-align: center;
    }

    .menu-link {
        font-size: 2rem;
    }

    .footer {
        min-height: auto;
        padding-top: 60px;
    }

    .footer-brand-massive {
        font-size: clamp(5rem, 20vw, 10rem);
    }
}

@media (max-width: 480px) {
    :root {
        --padding-horizontal: 16px;
    }

    .header-pill {
        width: calc(100% - 32px);
    }

    .btn-login {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-header-sticky h2 {
        font-size: 2rem;
    }

    .project-card {
        padding: 20px;
    }

    .osmo-card {
        padding: 20px;
        min-height: 200px;
    }

    .osmo-card.dark-card {
        min-height: 180px;
    }

    .black-scholes-container {
        padding: 20px;
        gap: 24px;
    }

    .bs-canvas {
        height: 350px;
    }

    .bs-controls {
        padding: 20px;
        gap: 20px;
    }

    .bs-info {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================================
   Hero CTA Buttons
   =============================================== */
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-hero-primary,
.btn-hero-secondary,
.btn-hero-tertiary {
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow),
        background var(--transition-base),
        border-color var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: var(--osmo-green);
    color: #000;
    border: 2px solid var(--osmo-green);
    box-shadow: 0 4px 12px rgba(163, 230, 53, 0.3);
}

.btn-hero-primary:hover {
    background: #8FCC28;
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(163, 230, 53, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--osmo-text);
    border: 2px solid var(--osmo-text);
}

.btn-hero-secondary:hover {
    background: var(--osmo-text);
    color: #FFF;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-hero-tertiary {
    background: transparent;
    color: var(--osmo-text);
    border: 2px solid rgba(17, 17, 17, 0.2);
}

.btn-hero-tertiary:hover {
    border-color: var(--osmo-text);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-hero-tertiary {
        width: 100%;
        justify-content: center;
    }
}

/* ===============================================
   Tech Stack Filter
   =============================================== */
.tech-filter-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px auto;
    max-width: var(--max-width);
    padding: 0 var(--padding-horizontal);
    justify-content: center;
}

.tech-filter-btn {
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFF;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.tech-filter-btn.active {
    background: var(--osmo-green);
    border-color: var(--osmo-green);
    color: #000;
    font-weight: 600;
}

@media (max-width: 768px) {
    .tech-filter-container {
        padding: 0 var(--padding-horizontal-mobile);
        gap: 8px;
    }

    .tech-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Project Card Filtering */
.project-card.hidden {
    display: none;
}

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

/* ===============================================
   Marquee Tech Stack - Lando-inspired
   =============================================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    margin: 60px 0;
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
}

.marquee-track {
    margin-bottom: 24px;
}

.marquee-content {
    display: flex;
    gap: 24px;
    width: fit-content;
}

.marquee-track[data-direction="left"] .marquee-content {
    animation: scrollLeft 30s linear infinite;
}

.marquee-track[data-direction="right"] .marquee-content {
    animation: scrollRight 30s linear infinite;
}

/* Pause on hover for accessibility */
.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

.skill-pill {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #FFF;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--transition-base);
}

.skill-pill:hover {
    background: rgba(163, 230, 53, 0.1);
    border-color: var(--osmo-green);
    color: var(--osmo-green);
    transform: translateY(-2px);
}

@keyframes scrollLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .marquee-content {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .marquee-container {
        margin: 40px 0;
    }

    .skill-pill {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .marquee-track[data-direction="left"] .marquee-content {
        animation-duration: 20s;
    }

    .marquee-track[data-direction="right"] .marquee-content {
        animation-duration: 20s;
    }
}

