/* ===========================
   AMITAY.AI — Main Stylesheet
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #06060b;
    --bg-surface: #0d0d14;
    --bg-card: #111119;
    --bg-card-hover: #16161f;
    --text: #eeeef3;
    --text-secondary: #8585a0;
    --text-muted: #55556a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --gradient: linear-gradient(135deg, #6366f1, #a855f7, #6366f1);
    --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #818cf8);
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-height: 72px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

.accent {
    color: var(--accent-light);
}

.inline-link {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(129, 140, 248, 0.3);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.inline-link:hover {
    color: #c084fc;
    border-bottom-color: #c084fc;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Neural Network Canvas --- */
.neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

/* --- Typing Cursor --- */
.typing-active::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--accent-light);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.6s step-end infinite;
}

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

/* --- Active Nav Link --- */
.nav__link.active {
    color: var(--text);
}

.nav__link.active::after {
    width: 100%;
}

/* --- Reveal Animation Base --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(6, 6, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(6, 6, 11, 0.95);
}

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

.nav__logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav__link:hover {
    color: var(--text);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn--large {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
    z-index: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero__glow--1 {
    width: 600px;
    height: 600px;
    background: rgba(99, 102, 241, 0.15);
    top: -10%;
    right: -5%;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: rgba(168, 85, 247, 0.1);
    bottom: 10%;
    left: -5%;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__proof {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.hero__proof-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.hero__proof-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero__proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border-light);
}

/* Hero Image */
.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-wrapper {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__image-border {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.hero__image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

/* Hero Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===========================
   SECTIONS — General
   =========================== */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section__desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 16px auto 0;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    background: var(--bg-surface);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about__lead {
    font-size: 1.125rem;
    color: var(--text) !important;
    line-height: 1.7 !important;
}

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

.highlight-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.highlight-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.highlight-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-light);
}

.highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
}

/* ===========================
   EXPERIENCE / TIMELINE SECTION
   =========================== */
.experience {
    background: var(--bg);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark), var(--border));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item__marker {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-item__marker {
    background: var(--accent);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.timeline-item__content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: all 0.3s var(--ease);
}

.timeline-item:hover .timeline-item__content {
    border-color: rgba(99, 102, 241, 0.2);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.timeline-item__header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.timeline-item__header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline-item__company {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
}

.timeline-item__date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.timeline-item__content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline-item__marker {
        left: -30px;
        width: 12px;
        height: 12px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-item__header {
        flex-direction: column;
        gap: 2px;
    }
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

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

.service-card__number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.service-card__icon {
    color: var(--accent-light);
    margin-bottom: 20px;
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-card__tags span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-light);
    border-radius: 100px;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

/* ===========================
   CREDENTIALS SECTION
   =========================== */
.credentials {
    background: var(--bg-surface);
}

.credentials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.credential-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
}

.credential-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-3px);
}

.credential-card__type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.credential-card__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.credential-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.credential-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===========================
   PERSONAL SECTION
   =========================== */
.personal__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.personal__block {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: default;
}

.personal__photo-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.personal__photo-card img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
    filter: brightness(0.85);
}

/* Family photo: landscape ratio */
.personal__block:first-child .personal__photo-card img {
    height: 420px;
}

/* Ironman photo: taller portrait ratio */
.personal__block:last-child .personal__photo-card img {
    height: 420px;
    object-position: center 20%;
}

.personal__block:hover .personal__photo-card img {
    transform: scale(1.04);
    filter: brightness(0.7);
}

/* Overlay gradient always visible at bottom */
.personal__photo-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(6, 6, 11, 0.92) 0%, rgba(6, 6, 11, 0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Caption sits on top of the image */
.personal__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 28px;
    z-index: 2;
    transform: translateY(4px);
    transition: transform 0.5s var(--ease);
}

.personal__block:hover .personal__caption {
    transform: translateY(0);
}

.personal__caption h3 {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.personal__caption p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

@media (max-width: 768px) {
    .personal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .personal__block:first-child .personal__photo-card img,
    .personal__block:last-child .personal__photo-card img {
        height: 340px;
    }
}

.personal__interests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.interest-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.interest-item:hover {
    border-color: rgba(99, 102, 241, 0.15);
    background: var(--bg-card-hover);
}

.interest-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-light);
}

.interest-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.interest-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    background: var(--bg-surface);
    text-align: center;
}

.contact__content {
    max-width: 600px;
    margin: 0 auto;
}

.contact__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 16px 0 20px;
}

.contact__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact__note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer__copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 16px;
}

.footer__links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer__links a:hover {
    color: var(--accent-light);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__proof {
        justify-content: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__image-wrapper {
        width: 280px;
        height: 340px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .section {
        padding: 80px 0;
    }

    .nav__links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 6, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .nav__links.active {
        display: flex;
    }

    .nav__link {
        font-size: 1.25rem;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero__image-wrapper {
        width: 220px;
        height: 270px;
    }

    .hero__proof {
        flex-direction: column;
        gap: 16px;
    }

    .hero__proof-divider {
        width: 40px;
        height: 1px;
    }

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

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

    .footer__content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Hide neural canvas on small screens --- */
@media (max-width: 768px) {
    .neural-canvas {
        display: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
