:root {
    --bg: #050814;
    --bg-alt: #070b15;
    --accent: #4df1ff;
    --accent-soft: rgba(77, 241, 255, 0.22);
    --accent-strong: rgba(77, 241, 255, 0.9);
    --text: #f7f9fc;
    --muted: #98a2c3;
    --border-subtle: rgba(130, 187, 255, 0.18);
    --card-bg: rgba(6, 10, 22, 0.96);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.75);
    --max-width: 1180px;
    --transition-fast: 180ms ease-out;
}

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

body {
    font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #18263e 0, #050814 45%, #03050a 100%);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    /* slightly up from default */
}

a {
    color: inherit;
    text-decoration: none;
}

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

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* NAV */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(2, 6, 18, 0.97), rgba(2, 6, 18, 0.8), transparent);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Main logo – at least 60x60, transparent background */
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    mix-blend-mode: normal;
    filter: none;
    backdrop-filter: none;

}

/* Footer logo version – smaller but same asset */
.logo-img-footer {
    width: 50px;
    height: 50px;
    border-radius: 6px;
}

.logo-text-main {
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.14em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--muted);
    padding: 4px 6px;
    border-radius: 999px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4df1ff, #96fff2);
    border-radius: 999px;
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 80%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 999px;
    background: radial-gradient(circle at 10% 0, #9ffff4, #4df1ff 45%, #12a9b8 100%);
    color: #020308;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 25px var(--accent-strong);
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 120ms ease-out, box-shadow 120ms ease-out, filter 120ms ease-out;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 35px var(--accent-strong);
    filter: brightness(1.05);
}

.nav-cta span.icon {
    font-size: 1rem;
}

.nav-menu-toggle {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(5, 8, 20, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-menu-toggle span {
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    position: relative;
}

.nav-menu-toggle span::before,
.nav-menu-toggle span::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    left: 0;
}

.nav-menu-toggle span::before {
    top: -5px;
}

.nav-menu-toggle span::after {
    top: 5px;
}

/* LAYOUT */

main {
    flex: 1;
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px 40px;
}

/* HERO */

.section.hero {
    padding-top: 40px;
    padding-bottom: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent-soft);
    background: radial-gradient(circle at 0 50%, rgba(77, 241, 255, 0.26), rgba(5, 10, 24, 0.96));
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
    box-shadow: 0 0 12px var(--accent-strong);
}

.hero-title {
    font-size: clamp(2.5rem, 3.4vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: 0.03em;
    margin-bottom: 16px;
}

.hero-title span.accent {
    background: linear-gradient(120deg, #4df1ff, #9dfff5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 26px;
}

.hero-sub strong {
    color: var(--text);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    outline: none;
    cursor: pointer;
    background: radial-gradient(circle at 0% 0%, #a9fff7, #4df1ff 50%, #13a3b2 100%);
    color: #020308;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 18px 40px rgba(0, 200, 255, 0.9);
    transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 55px rgba(0, 200, 255, 1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(5, 8, 20, 0.7);
    color: var(--muted);
    font-size: 0.88rem;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform 120ms ease-out;
}

.btn-ghost:hover {
    border-color: var(--accent-soft);
    color: var(--text);
    background: rgba(8, 13, 29, 0.98);
    transform: translateY(-1px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pill {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    border: 1px solid rgba(152, 162, 195, 0.5);
    background: rgba(3, 8, 22, 0.85);
}

/* HERO MEDIA */

.hero-media {
    position: relative;
}

/* Outer wrapper: no hard border, softer glow */
.hero-card {
    position: relative;
    border-radius: 32px;
    padding: 0;
    background: radial-gradient(circle at 0 0, rgba(77, 241, 255, 0.16), transparent 55%);
    border: none;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.9);
    isolation: isolate;
    overflow: visible;
}

/* Inner container: no border, transparent background */
.hero-card-inner {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: none;
    background: transparent;
}

/* Slightly wider video aspect ratio */
.hero-video-frame {
    position: relative;
    padding-top: 72%;
}

/* Video fills, with soft blended edges using overlay */
.hero-video-frame-inner {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    overflow: hidden;
}

/* Actual video: borderless */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: #020308;
}

/* Edge glow / blending overlay */
.hero-video-frame-inner::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0, rgba(77, 241, 255, 0.28), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(0, 105, 255, 0.26), transparent 60%),
        radial-gradient(circle at 50% 50%, transparent 55%, rgba(5, 8, 20, 0.9) 100%);
    mix-blend-mode: soft-light;
}

/* Keep floating tag as is, just slightly raised */
.hero-floating-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(3, 7, 20, 0.94);
    border: 1px solid rgba(142, 207, 255, 0.25);
    font-size: 0.72rem;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

/* Keep orbit but make it more subtle */
.hero-orbit {
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    border: 1px dashed rgba(77, 241, 255, 0.35);
    opacity: 0.16;
    transform: scale(1.04);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* --- HERO: very soft parallax hover tilt --- */
.hero-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 220ms ease-out;
}

.hero-card-inner,
.hero-video-frame-inner,
.hero-floating-tag {
  transform: translateZ(0);
  will-change: transform;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-card { transition: none; }
}

/* STATS */

.stats-strip {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    background: rgba(4, 7, 20, 0.96);
    border-radius: 999px;
    border: 1px solid rgba(129, 199, 255, 0.2);
    padding: 10px 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.stat-item {
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: rgba(154, 164, 193, 0.9);
    margin-bottom: 3px;
}

.stat-value {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
}

/* SECTION HEADERS */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.section-title {
    font-size: 1.55rem;
    letter-spacing: 0.04em;
}

.section-sub {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 420px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    font-size: 0.74rem;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid rgba(142, 207, 255, 0.25);
    background: rgba(5, 8, 20, 0.94);
    color: var(--muted);
}

/* PROJECTS */

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

.project-card {
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 0 0, rgba(77, 241, 255, 0.22), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 92, 255, 0.18), transparent 55%),
        var(--card-bg);
    border: 1px solid rgba(130, 196, 255, 0.23);
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18), transparent 60%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

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

.project-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.project-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.project-tag {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--muted);
    border-radius: 999px;
    padding: 4px 10px;
    border: 1px solid rgba(142, 207, 255, 0.25);
    background: rgba(4, 8, 18, 0.95);
}

.project-meta {
    font-size: 0.82rem;
    color: var(--muted);
}

.project-highlight {
    font-size: 0.88rem;
    color: var(--text);
}

.project-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.project-stack span {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(3, 8, 22, 0.94);
    border: 1px solid rgba(142, 207, 255, 0.25);
    color: var(--muted);
}

.project-footer-row {

    font-size: 0.8rem;
    color: var(--muted);
}

/* Improved link-inline styling */

.link-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(142, 207, 255, 0.35);
    background: rgba(4, 8, 20, 0.9);
    font-size: 0.78rem;
    color: var(--accent);
    cursor: pointer;
    transition: background 140ms ease-out, border-color 140ms ease-out, color 140ms ease-out, transform 120ms ease-out, box-shadow 120ms ease-out;
}

.link-inline span:first-child {
    text-decoration: underline;
    text-decoration-color: rgba(77, 241, 255, 0.7);
    text-underline-offset: 2px;
}

.link-inline svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 120ms ease-out;
}

.link-inline:hover {
    background: radial-gradient(circle at 0 0, rgba(77, 241, 255, 0.22), rgba(4, 10, 22, 0.98));
    border-color: rgba(77, 241, 255, 0.8);
    color: #020308;
    box-shadow: 0 0 22px rgba(77, 241, 255, 0.85);
    transform: translateY(-1px);
}

.link-inline:hover svg {
    transform: translateX(2px);
}

/* SPLIT LAYOUT / CARDS */

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.card {
    border-radius: var(--radius-xl);
    background: var(--card-bg);
    border: 1px solid rgba(130, 196, 255, 0.23);
    padding: 20px 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(77, 241, 255, 0.15), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(0, 92, 255, 0.12), transparent 60%);
    opacity: 0.9;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.card-inner {
    position: relative;
}

.card h3 {
    font-size: 1.16rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 10px;
}

.about-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 0.76rem;
    margin-top: 4px;
}

.about-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(2, 7, 18, 0.95);
    border: 1px solid rgba(142, 207, 255, 0.25);
    color: var(--muted);
    font-size: 0.78rem;
}

/* FORM */

form {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: var(--muted);
}

input,
textarea,
select {
    width: 100%;
    font-family: inherit;
    font-size: 0.86rem;
    padding: 8px 9px;
    border-radius: 12px;
    border: 1px solid rgba(138, 204, 255, 0.25);
    background: rgba(3, 7, 20, 0.97);
    color: var(--text);
    outline: none;
    transition: border-color 120ms ease-out, box-shadow 120ms ease-out, background 120ms ease-out;
}

input::placeholder,
textarea::placeholder {
    color: rgba(154, 164, 193, 0.7);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 1px rgba(77, 241, 255, 0.5);
    background: rgba(4, 10, 25, 1);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

.form-footnote {
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 3px;
}

.status-message {
    font-size: 0.8rem;
    margin-top: 4px;
}

.status-success {
    color: #5bffce;
}

.status-error {
    color: #ff6b8b;
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(130, 196, 255, 0.23);
    background: rgba(3, 6, 16, 0.98);
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 20px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    font-size: 0.84rem;
    color: var(--muted);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: rgba(154, 164, 193, 0.8);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: rgba(154, 164, 193, 0.9);
}

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

/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: calc(100% - 32px);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(6, 10, 24, 0.97);
    border: 1px solid rgba(142, 207, 255, 0.3);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 999;
}

.cookie-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cookie-text {
    font-size: 0.76rem;
    color: var(--muted);
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.cookie-btn {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 0.75rem;
    cursor: pointer;
    border: 1px solid rgba(142, 207, 255, 0.4);
    background: rgba(4, 7, 18, 0.98);
    color: var(--muted);
    white-space: nowrap;
}

.cookie-btn-primary {
    background: radial-gradient(circle at 0 0, #a9fff7, #4df1ff 50%, #13a3b2 100%);
    border: none;
    color: #020308;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(77, 241, 255, 0.8);
}

/* ACCESSIBILITY */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* MEDIA QUERIES */

@media (max-width: 960px) {
    .section.hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-media {
        order: -1;
    }

    .stats-grid {
        border-radius: 24px;
    }

    .split-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 780px) {
    .nav-inner {
        padding-inline: 16px;
    }

    .nav-links {
        position: absolute;
        inset-inline: 12px;
        top: 56px;
        padding: 10px 12px;
        border-radius: 16px;
        background: rgba(5, 8, 20, 0.98);
        border: 1px solid rgba(142, 207, 255, 0.3);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        transform-origin: top;
        transform: scaleY(0.8);
        opacity: 0;
        pointer-events: none;
        transition: opacity 120ms ease-out, transform 120ms ease-out;
    }

    .nav-inner.nav-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
    }

    .nav-menu-toggle {
        display: inline-flex;
    }

    .nav-cta {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 10px;
    }

    .projects-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .section {
        padding-inline: 16px;
    }

    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
}