@font-face {
    font-family: 'Bricolage Grotesque';
    src: local('Bricolage Grotesque'), url('../fonts/BricolageGrotesque.ttf') format('truetype');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bhopali';
    src: url('../fonts/Bhopali.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Departure Mono';
    src: url('../fonts/DepartureMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #84bdb8;
    --muted-text: #ccc;
    --border-color: rgba(255, 255, 255, 0.15);
    
    --font-main: 'Bricolage Grotesque', sans-serif;
    --font-mono: 'Departure Mono', monospace;
    --font-bhopali: 'Bhopali', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

main { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; position: relative; z-index: 5; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

body.home-page { height: 100vh; overflow: hidden; }
body.home-page main { justify-content: center; }

img {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.system-header { width: 100%; margin-bottom: 30px; margin-top: 50px; display: flex; align-items: center; gap: 20px; }
.system-header:first-child { margin-top: 10px; }

.header-label {
    color: var(--accent-color); font-family: var(--font-main); font-weight: 500; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 2px; white-space: nowrap; opacity: 0;
    transform: translateX(-15px); animation: fadeSlideRight 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.header-line { flex-grow: 1; height: 2px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden; border-radius: 2px; }
.header-line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 80px; height: 100%;
    background: var(--accent-color); transform: translateX(-100%);
    animation: solidShuttle 4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes fadeSlideRight { to { opacity: 1; transform: translateX(0); } }
@keyframes solidShuttle {
    0% { left: 0; transform: translateX(-100%); width: 80px; }
    50% { width: 120px; }
    100% { left: 100%; transform: translateX(0%); width: 80px; }
}

.header { height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; background: transparent; position: relative; z-index: 10; flex-shrink: 0; transition: background 0.3s ease; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; cursor: pointer; color: #fff; padding: 0 5px; background: linear-gradient(to right, transparent 50%, var(--accent-color) 50%); background-size: 200% 100%; transition: background-position 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s ease; display: flex; overflow: hidden; }
.logo:hover { background-position: -100% 0; color: #121212; }
.logo span { display: inline-block; transform: translateY(100%); animation: slotSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; transition: color 0.4s ease; }

.logo-mobile { display: none; }

.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a {
    font-size: 1rem; color: #ffffff; font-weight: 550; opacity: 0;
    transition: font-variation-settings 0.45s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
    font-variation-settings: 'wght' 550; animation: simpleFade 0.5s ease forwards 0.5s; position: relative; flex-shrink: 0;
}
.desktop-nav a.active-page { opacity: 1; color: var(--accent-color); font-variation-settings: 'wght' 550; }
.desktop-nav a.active-page::after { content: none; }

@keyframes slotSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes simpleFade { to { opacity: 0.8; } }

.menu-icon { display: none; }
.menu-overlay { display: none; }
.menu-divider { display: none; }
.menu-about-link { display: none; }

.hero-section { width: 100%; padding: 20px; position: relative; }
.grid-base, .grid-highlight { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; }

.grid-base {
    z-index: -1; background-size: 30px 30px;
    background-image: linear-gradient(90deg, transparent 14px, rgba(255,255,255,0.03) 14px, rgba(255,255,255,0.03) 16px, transparent 16px), linear-gradient(0deg, transparent 14px, rgba(255,255,255,0.03) 14px, rgba(255,255,255,0.03) 16px, transparent 16px);
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}
.grid-highlight {
    z-index: 0; background-size: 30px 30px;
    background-image: linear-gradient(90deg, transparent 14px, rgba(132, 189, 184, 0.15) 14px, rgba(132, 189, 184, 0.15) 16px, transparent 16px), linear-gradient(0deg, transparent 14px, rgba(132, 189, 184, 0.15) 14px, rgba(132, 189, 184, 0.15) 16px, transparent 16px);
    contain: layout paint; transform: translateZ(0);
    --mask-x: -999px; --mask-y: -999px;
    mask-image: radial-gradient(300px circle at var(--mask-x) var(--mask-y), black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(300px circle at var(--mask-x) var(--mask-y), black 0%, transparent 100%);
}

.hero-content { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; animation: float 6s ease-in-out infinite; }
.hero-logo { width: 100px; height: auto; margin-bottom: 25px; opacity: 0; filter: blur(10px); animation: cinemaReveal 1s cubic-bezier(0.2, 1, 0.3, 1) forwards; animation-delay: 0.2s; }
.hero-content h1 {
    font-size: clamp(3rem, 8vw, 8rem); font-weight: 800; line-height: 0.95; letter-spacing: -2px; margin-bottom: 40px; text-align: center;
    opacity: 0; filter: blur(20px); transform: scale(1.1); animation: cinemaReveal 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards, glowPulse 4s ease-in-out infinite 1s;
}

.error-container { position: relative; z-index: 5; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 75vh; width: 100%; overflow: hidden; }
.error-content { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; text-align: center; }
.kinetic-404 { display: flex; flex-direction: row; gap: 15px; margin-bottom: 20px; cursor: pointer; justify-content: center; align-items: center; width: 100%; opacity: 0; filter: blur(15px); transform: scale(0.95) translateY(20px); animation: cinemaReveal 1s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
.digit { font-family: 'Syne', sans-serif; font-size: clamp(6rem, 25vw, 14rem); font-weight: 800; line-height: 1; color: var(--text-color); transition: transform 0.4s cubic-bezier(0.17, 0.89, 0.32, 1.27), color 0.3s; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.error-msg { font-size: clamp(1rem, 4vw, 1.5rem); font-weight: 500; letter-spacing: -0.5px; color: #888; margin-bottom: 40px; opacity: 0; filter: blur(10px); transform: scale(0.95) translateY(20px); animation: cinemaReveal 1s cubic-bezier(0.2, 1, 0.3, 1) 0.5s forwards; max-width: 500px; padding: 0 10px; text-align: center; }

.light-amp { font-weight: 300; vertical-align: middle; }

body.home-page .cta-button, .about-text .cta-button, .error-content .cta-button {
    position: relative; display: inline-flex; justify-content: center; align-items: center; width: fit-content;
    padding: 14px 38px; border-radius: 50px; font-size: 1rem; font-weight: 550; font-variation-settings: 'wght' 550;
    color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.02); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1); cursor: pointer;
}
body.home-page .cta-button, .error-content .cta-button { opacity: 0; animation: cinemaReveal 1s cubic-bezier(0.2, 1, 0.3, 1) 0.8s forwards; }

body.home-page .cta-button::after, .about-text .cta-button::after, .error-content .cta-button::after {
    content: ''; position: absolute; inset: 0; border-radius: 50px; padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%, rgba(255,255,255,0.05));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude; -webkit-mask-composite: destination-out; pointer-events: none;
}

.about-text .cta-button { margin-top: 20px; }

@keyframes cinemaReveal { 0% { opacity: 0; filter: blur(15px); transform: scale(0.95) translateY(20px); } 100% { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes glowPulse { 0%, 100% { text-shadow: 0 0 10px rgba(132, 189, 184, 0); } 50% { text-shadow: 0 0 30px rgba(132, 189, 184, 0.5); } }

.footer { height: 80px; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; font-size: 0.9rem; color: #888; background: transparent; z-index: 10; margin-top: auto; flex-shrink: 0; }
.copyright { color: #ccc; font-size: 0.9rem; }
.copyright strong { font-weight: 500; }
.footer-right { display: flex; align-items: center; gap: 15px; }

.contact-btn {
    background: none; border: none; padding: 0; font-family: inherit; font-size: 0.9rem;
    font-weight: 550; font-variation-settings: 'wght' 550; color: rgba(255,255,255,0.6); cursor: pointer;
    outline: none; display: inline-flex; align-items: center; justify-content: center;
    transition: color 0.3s ease, font-variation-settings 0.3s ease;
}
.cta-button.contact-btn { color: rgba(255,255,255,0.9); font-size: 1rem; }

.contact-label, .contact-success { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.contact-success { color: var(--accent-color); font-variation-settings: 'wght' 350; }
.contact-success svg { display: block; margin-top: 1px; }

.contact-btn.fidget-pop { animation: fidgetPop 0.3s cubic-bezier(0.17, 0.89, 0.32, 1.27); }
@keyframes fidgetPop { 0% { transform: scale(1); } 50% { transform: scale(0.94); } 100% { transform: scale(1); } }

.social-icons { display: flex; gap: 15px; align-items: center; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 15px; margin-left: 5px; }
.icon-link { width: 20px; height: 20px; opacity: 0.6; transition: all 0.3s ease; display: block; color: #ffffff !important; }
.icon-link svg { width: 100%; height: 100%; fill: currentColor; }
.icon-link img { width: 100%; height: 100%; object-fit: contain; }

.portfolio-container { padding: 40px; padding-top: 10px; padding-bottom: 10px; width: 100%; max-width: 1600px; margin: 0 auto; }
.project-container { max-width: 1400px; margin: 0 auto; padding: 40px; padding-bottom: 140px; }
.marquee-container, .portfolio-marquee { width: 100%; overflow: hidden; background: transparent; white-space: nowrap; position: relative; cursor: default; }
.portfolio-marquee { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: none; margin-bottom: 0; margin-top: 60px; }
.portfolio-marquee .track { display: inline-block; animation: marqueeScroll 20s linear infinite; }
.portfolio-marquee span { font-family: var(--font-main); font-size: 3rem; font-weight: 800; text-transform: uppercase; color: var(--accent-color); margin-right: 0; }
.portfolio-marquee span.outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); transition: all 0.3s ease; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.project-card, .video-card { display: block; position: relative; width: 100%; background: #1a1a1a; opacity: 1; }

.animate-in { opacity: 0; animation: smoothFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes smoothFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.project-card { aspect-ratio: 1 / 1; overflow: hidden; }
.image-wrapper { width: 100%; height: 100%; position: relative; background-color: #1a1a1a; }
.image-wrapper img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }

.overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; opacity: 0; transition: opacity 0.3s ease; padding: 20px; 
}
.overlay-content { 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 8px; transform: translateY(20px); transition: transform 0.3s ease; width: 100%;
}
.overlay h2 { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -1px; margin: 0; text-transform: none; }
.overlay-sub { font-size: 0.95rem; font-weight: 500; color: var(--accent-color); letter-spacing: 0; text-transform: none; margin-top: 4px; }
.overlay-year { font-size: 0.85rem; font-weight: 400; color: #aaa; letter-spacing: 0; }

.project-top-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; width: 100%; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-group { display: flex; align-items: center; gap: 30px; }
.text-link-btn { font-size: 1rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 1px; position: relative; padding-bottom: 5px; cursor: pointer; transition: color 0.3s ease; }
.text-link-btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: var(--accent-color); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }

.project-header-flex { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.project-category { color: var(--accent-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; display: block; }
.header-main h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; font-weight: 800; margin: 0; letter-spacing: -1px; margin-bottom: 25px; }
.header-meta { display: flex; gap: 60px; text-align: left; }
.meta-item h3 { color: var(--accent-color); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 1px; opacity: 0.8; }
.meta-item p { font-size: 0.95rem; color: #fff; line-height: 1.3; font-weight: 500; }
.hero-media { width: 100%; margin-bottom: 60px; overflow: hidden; border-radius: 4px; }
.hero-media img { width: 100%; height: auto; display: block; object-fit: cover; }

.project-text-block { max-width: 800px; margin: 0 auto 80px auto; text-align: left; }
.project-text-block h3 { font-size: 1.5rem; color: #fff; margin-bottom: 20px; }
.project-text-block p { font-size: 1.05rem; line-height: 1.6; color: var(--muted-text); margin-bottom: 25px; }

.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; width: 100%; }
.project-media img { width: 100%; height: auto; display: block; border-radius: 4px; }
.caption { display: block; margin-top: 10px; color: #666; font-size: 0.85rem; font-style: italic; text-align: right; }

.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; max-width: 100%; padding: 0; }
.photo-item { margin-bottom: 0; cursor: pointer; transition: all 0.3s ease; width: 100%; position: relative; overflow: hidden; }
.photo-item img { width: 100%; height: auto; display: block; pointer-events: none; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); border-radius: 4px; }
.photo-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; background: rgba(0,0,0,0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; text-align: center; padding: 20px; }
.photo-overlay h3 { font-family: var(--font-main); font-size: 1.4rem; font-weight: 700; color: #fff; transform: translateY(15px); transition: transform 0.3s ease; margin-bottom: 5px; }
.photo-overlay span { font-family: var(--font-main); font-size: 1rem; font-weight: 400; color: var(--accent-color); transform: translateY(15px); transition: transform 0.3s ease 0.1s; }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; padding: 0; width: 100%; max-width: 1600px; margin: 0 auto; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: transparent; margin-bottom: 15px; width: 100%; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-meta { display: flex; justify-content: space-between; align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 15px; background: transparent !important; }
.video-card { background: transparent !important; }
.video-meta h2 { font-family: var(--font-main); font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.1; color: #fff; max-width: 70%; background: transparent !important; }
.video-meta span { font-family: var(--font-main); font-size: 0.9rem; font-weight: 400; color: var(--accent-color); text-align: right; background: transparent !important; }

.about-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; border-bottom: 1px solid rgba(255,255,255,0.1); }
.about-image { width: 100%; height: 100%; min-height: 500px; position: relative; border-right: 1px solid rgba(255,255,255,0.1); }
.about-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.5s ease; }
.about-text { padding: 60px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.about-text h1 { font-size: 4rem; font-weight: 800; line-height: 0.9; letter-spacing: -2px; margin-bottom: 30px; text-transform: uppercase; }
.about-text p { font-size: 1.05rem; line-height: 1.6; color: var(--muted-text); max-width: 500px; margin-bottom: 20px; }

.organic-glitch { display: inline-block; white-space: nowrap; color: var(--accent-color); }
.organic-glitch span {
    display: inline-block;
    position: relative;
    animation: slamEnter 0.6s cubic-bezier(0.2, 1, 0.3, 1) both calc(var(--i) * 0.03s),
               glitchLoop 4s infinite calc(1.5s + (var(--i) * 0.08s));
    will-change: font-variation-settings, transform, opacity;
}
@keyframes slamEnter {
    0% { font-variation-settings: 'wght' 200; transform: translateY(20px) scale(0.9); opacity: 0; filter: blur(10px); }
    40% { font-variation-settings: 'wght' 900; transform: translateY(-2px) scale(1.05); opacity: 1; filter: blur(0); }
    100% { font-variation-settings: 'wght' 800; transform: translateY(0) scale(1); opacity: 1; filter: blur(0); }
}
@keyframes glitchLoop {
    0%, 92%, 100% { font-variation-settings: 'wght' 800; transform: translate3d(0,0,0) skewX(0); }
    94% { font-variation-settings: 'wght' 300; transform: translate3d(-2px,1px,0) skewX(-8deg); }
    96% { font-variation-settings: 'wght' 900; transform: translate3d(2px,-1px,0) skewX(8deg); }
    98% { font-variation-settings: 'wght' 400; transform: translate3d(-1px,0,0) skewX(0); }
}

.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 60px 40px; gap: 40px; max-width: 1600px; margin: 0 auto; }
.info-column h3 { font-size: 1.1rem; color: var(--accent-color); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; display: inline-block; }
.info-column ul { list-style: none; position: relative; padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.1); }
.about-grid .info-column:last-child ul { border-left: none; }
.info-column li { font-size: 1.05rem; color: var(--muted-text); margin-bottom: 25px; line-height: 1.6; position: relative; }
.info-column li::before { content: ''; position: absolute; left: -25px; top: 6px; width: 9px; height: 9px; background: #121212; border: 2px solid var(--accent-color); border-radius: 50%; }
.info-column li strong { color: #fff; font-weight: 700; display: block; margin-bottom: 2px; }

.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(18, 18, 18, 0.98); flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; padding: 40px; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { display: flex; flex-direction: column; align-items: center; max-width: 90vw; max-height: 85vh; position: relative; transition: transform 0.4s ease; transform: scale(0.95); }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-img { max-width: 100%; max-height: 75vh; box-shadow: 0 10px 30px rgba(0,0,0,0.5); pointer-events: none; user-select: none; border-radius: 4px; }
.lightbox-caption { margin-top: 20px; text-align: center; color: white; width: 100%; }
.lightbox-caption h3 { font-family: var(--font-main); font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: #fff; }
.lb-meta { display: flex; gap: 15px; justify-content: center; font-size: 0.9rem; color: var(--accent-color); font-family: var(--font-main); font-weight: 400; }
.lightbox-close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 3rem; cursor: pointer; font-weight: 200; z-index: 2001; transition: color 0.3s ease; line-height: 1; }

.font-mono, code, pre { font-family: var(--font-mono); }
.font-bhopali { font-family: var(--font-bhopali); }

.liquid-dock-container { position: fixed; bottom: 40px; left: 0; right: 0; margin: 0 auto; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; width: max-content; background: rgba(30, 30, 30, 0.6); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.15); border-top: 1px solid rgba(255, 255, 255, 0.25); border-radius: 60px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dock-link { font-family: var(--font-main); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255, 255, 255, 0.7); text-decoration: none; padding: 8px 12px; border-radius: 40px; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dock-link svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.8; transition: transform 0.3s ease; }
.dock-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.15); align-self: center; }

.header-jewel { margin-bottom: 50px; }
.jewel-title h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); line-height: 1; font-weight: 800; margin: 0; letter-spacing: -1px; margin-bottom: 25px; }
.jewel-line { width: 100%; height: 1px; background: rgba(255,255,255,0.15); }

.aligned-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; margin-bottom: 80px; }
.left-info-container { display: flex; flex-direction: column; justify-content: flex-start; }
.meta-row { display: flex; gap: 60px; align-items: flex-start; margin-bottom: 40px; }
.meta-block h4 { color: var(--accent-color); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 4px; opacity: 0.8; letter-spacing: 1px; font-weight: 500; }
.meta-block p { font-size: 0.95rem; color: #fff; font-weight: 500; line-height: 1.3; }
.intro-text p { font-size: 1.05rem; line-height: 1.6; color: var(--muted-text); margin-bottom: 25px; max-width: 60ch; }
.right-image-container { width: 100%; position: relative; overflow: hidden; border-radius: 4px; display: block; }
.right-image-container img { width: 100%; height: auto; display: block; transition: transform 0.6s ease; border-radius: 4px; }
.gallery-item.full-width { margin-bottom: 30px; width: 100%; }
.gallery-item img { width: 100%; height: auto; display: block; border-radius: 4px; }

@media (hover: hover) {
    .desktop-nav a:hover { opacity: 1; color: var(--accent-color); font-variation-settings: 'wght' 350; }
    body.home-page .cta-button:hover, .about-text .cta-button:hover, .error-content .cta-button:hover { background: rgba(132, 189, 184, 0.1); border-color: rgba(132, 189, 184, 0.4); transform: translateY(-2px); font-variation-settings: 'wght' 350; color: var(--accent-color); }
    .contact-btn:hover { color: var(--accent-color); font-variation-settings: 'wght' 350; }
    .icon-link:hover { opacity: 1; color: var(--accent-color) !important; }
    .portfolio-marquee:hover span.outline { color: var(--accent-color); -webkit-text-stroke: 0px; }
    .project-card:hover .overlay { opacity: 1; }
    .project-card:hover img { transform: scale(1.05); }
    .project-card:hover .overlay-content { transform: translateY(0); }
    .text-link-btn:hover { color: var(--accent-color); }
    .text-link-btn:hover::after { transform: scaleX(1); transform-origin: left; }
    .photo-item:hover img { transform: scale(1.05); }
    .photo-item:hover .photo-overlay { opacity: 1; }
    .photo-item:hover .photo-overlay h3, .photo-item:hover .photo-overlay span { transform: translateY(0); }
    .about-image:hover img { filter: grayscale(0%); }
    .lightbox-close:hover { color: var(--accent-color); }
    .kinetic-404:hover .digit:nth-child(1) { transform: translateY(-20px) rotate(-15deg); color: var(--accent-color); }
    .kinetic-404:hover .digit:nth-child(2) { transform: translateY(10px) scale(0.8); }
    .kinetic-404:hover .digit:nth-child(3) { transform: translateY(-10px) rotate(10deg) skewX(10deg); color: var(--accent-color); }
    .liquid-dock-container:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5); }
    .dock-link:hover { color: #fff; }
    .dock-link.prev:hover svg { transform: translateX(-3px); }
    .dock-link.next:hover svg { transform: translateX(3px); }
}

body.home-page .cta-button:active, .about-text .cta-button:active, .error-content .cta-button:active, .contact-btn:active {
    transform: translateY(0) scale(0.98); 
}

@media (max-width: 1200px) { .project-grid { grid-template-columns: repeat(2, 1fr); } .photo-gallery { grid-template-columns: repeat(2, 1fr); } .about-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { 
    .video-grid { grid-template-columns: 1fr; gap: 30px; padding: 20px; } 
    .about-hero { grid-template-columns: 1fr; } 
    .about-image { height: 400px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); } 
    .about-text { padding: 40px 20px; } 
    .about-grid { grid-template-columns: 1fr; padding: 40px 20px; } 
    .liquid-dock-container { bottom: 25px; padding: 10px 15px; }
    .dock-link.prev span, .dock-link.next span { display: none; }
    .dock-link { padding: 8px; }
    .dock-link svg { width: 20px; height: 20px; }
}

@media (max-width: 768px) {
    body.home-page { height: auto; min-height: 100dvh; overflow-y: auto; display: block; }
    
    .header { position: sticky; top: 0; background: rgba(18, 18, 18, 0.98); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0 25px; z-index: 200; height: 90px; }
    .logo { display: none; }
    .logo-mobile { display: block; }
    .logo-mobile img { width: 64px; height: 64px; }
    .desktop-nav { display: none; }
    
    .menu-icon { display: flex; cursor: pointer; width: 32px; height: 32px; position: relative; align-items: center; justify-content: center; }
    .menu-icon .icon-close { display: none; }
    .menu-icon.open .icon-menu { display: none; }
    .menu-icon.open .icon-close { display: block; }

    .menu-overlay { 
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
        background: #121212;
        flex-direction: column; justify-content: flex-start; align-items: flex-start; 
        padding-top: 130px; padding-left: 25px; padding-right: 25px; z-index: 150; 
    }
    .menu-overlay.active { display: flex; }
    .menu-overlay a { 
        font-size: 2rem; margin: 0; padding: 12px 0; font-weight: 800; color: #fff; opacity: 0; 
        transform: translateY(20px); transition: all 0.4s ease; text-align: left; 
        letter-spacing: -1px; display: block; width: 100%; line-height: 1;
    }
    .menu-overlay a:active { color: var(--accent-color); transform: scale(0.98); transition: 0.1s; }
    .menu-overlay.active a { opacity: 1; transform: translateY(0); }
    
    .menu-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin: 30px 0; display: block; }
    .menu-about-link { font-weight: 500 !important; font-size: 1.2rem !important; opacity: 0.7; letter-spacing: 2px !important; text-transform: uppercase; margin-top: auto; padding-bottom: 40px !important; }

    body.home-page main.hero-section { min-height: 100dvh; padding-top: 0; justify-content: flex-start; align-items: center; }
    .hero-content { width: 100%; align-items: flex-start; padding: 0 25px; margin-top: 40px; margin-bottom: 50px; }
    .hero-logo { display: none; }
    .hero-content h1 { font-size: clamp(3rem, 15vw, 4.5rem); line-height: 0.95; margin: 0 0 20px 0; text-align: left; }
    
    .hero-accent-line { display: block; width: 0; height: 2px; background: var(--accent-color); margin: 0 0 30px 0; opacity: 1; animation: lineGrow 0.8s forwards 1s; }
    @keyframes lineGrow { to { width: 140px; } }
    
    .grid-highlight { display: block; opacity: 0.3; mask-image: radial-gradient(circle, black 0%, transparent 80%); animation: autoScanMobile 8s ease-in-out infinite alternate; }
    @keyframes autoScanMobile { 0% { -webkit-mask-position: 0% 0%; } 100% { -webkit-mask-position: 100% 100%; } }
    .grid-base { opacity: 0.3; display: block; }

    .footer { flex-direction: column-reverse; height: auto; padding: 60px 20px; gap: 20px; align-items: center; text-align: center; margin-top: 0; }
    .footer-right { flex-direction: row; width: auto; gap: 10px; justify-content: center; align-items: center; }
    .social-icons { border-left: none; padding-left: 0; margin-left: 0; gap: 15px; }

    .project-grid { grid-template-columns: 1fr; gap: 30px; } 
    
    .project-card .overlay { 
        opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 50%);
        justify-content: flex-end; align-items: flex-start; padding: 25px; text-align: left;
    }
    .project-card .overlay-content { transform: translateY(0); align-items: flex-start; gap: 4px; }
    .project-card .overlay h2 { font-size: 1.4rem; letter-spacing: -0.5px; } 
    .project-card .overlay-sub { font-size: 0.85rem; letter-spacing: 0; }
    .project-card .overlay-year { font-size: 0.75rem; }
    
    .photo-gallery { grid-template-columns: 1fr; padding: 0; width: 100%; gap: 30px;}
    .video-grid { padding: 0; }
    .portfolio-container { padding: 20px; padding-bottom: 0;}
    .photo-item { width: 100%; margin-bottom: 0; }
    .lightbox { padding: 20px; }
    .lightbox-close { top: 10px; right: 20px; font-size: 2.5rem; }
    .portfolio-marquee span { font-size: 2rem; }
    .header-meta { flex-direction: column; gap: 15px; }
    .project-card:hover img, .photo-item:hover img { transform: none; }
    .photo-item:hover { border: none; }
    .photo-overlay { opacity: 1 !important; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); justify-content: flex-end; padding-bottom: 30px; }
    .photo-overlay h3, .photo-overlay span { transform: translateY(0) !important; }
    .project-top-nav { flex-wrap: wrap; gap: 15px; justify-content: center; }

    .about-text { padding: 50px 35px; } 
    .about-text h1 { font-size: clamp(2.5rem, 12vw, 4rem); margin-bottom: 25px; line-height: 0.95; }
    .about-grid { padding: 40px 25px; gap: 30px; }

    .error-container { min-height: 80dvh; justify-content: center; align-items: center; padding-top: 0; }
    .error-content { margin-top: -10vh; align-items: center; }
    .kinetic-404 { gap: 12px; margin-bottom: 10px; }
    .error-msg { text-align: center; margin-bottom: 30px; font-size: 1.1rem; }

    .header-jewel { margin-bottom: 20px; }
    .aligned-split { display: flex; flex-direction: column-reverse; gap: 20px; margin-bottom: 40px; }
    .meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px; }
    .liquid-dock-container { max-width: calc(100vw - 40px); }
    
    .jewel-title h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); margin-bottom: 10px; }
    .project-category { font-size: 0.7rem; margin-bottom: 10px; white-space: nowrap; }
    .intro-text p { margin-bottom: 15px; }
}
