/* ==========================================================================
   Portfolio — Benjamin Del Hierro
   Palette : Dark tech, accents bleu électrique / cyan
   ========================================================================== */

:root {
    /* Background layers */
    --bg-base: #0a0e14;
    --bg-elevated: #11161f;
    --bg-card: #161c28;
    --bg-card-hover: #1c2433;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);

    /* Text */
    --text-primary: #e8eaf0;
    --text-secondary: #a3a8b3;
    --text-muted: #6b7280;

    /* Accents */
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.35);
    --accent-cyan: #22d3ee;
    --accent-soft: rgba(59, 130, 246, 0.1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Layout */
    --container-max: 1200px;
    --section-padding: 120px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;

    /* Transitions */
    --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --t: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

/* ==========================================================================
   Background layers
   ========================================================================== */

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(34, 211, 238, 0.08), transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(99, 102, 241, 0.08), transparent 50%);
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-alt {
    background:
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012) 30%, rgba(255, 255, 255, 0.012) 70%, transparent);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--t);
    background-color: rgba(10, 14, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 14, 20, 0.85);
    border-bottom-color: var(--border-subtle);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    transition: color var(--t-fast);
}

.nav-brand:hover {
    color: var(--accent-hover);
}

.brand-text::before {
    content: '◆ ';
    color: var(--accent);
    margin-right: 4px;
    font-size: 10px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: var(--accent-soft);
}

.nav-link.active {
    color: var(--accent-hover);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all var(--t-fast);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-family: var(--font-mono);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.terminal-prompt {
    color: var(--accent-cyan);
    margin-right: 4px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--t);
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-primary svg {
    transition: transform var(--t-fast);
}

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

.btn-ghost:hover {
    background-color: var(--bg-card);
    border-color: var(--border-strong);
}

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

/* ==========================================================================
   Hero visual / photo placeholder
   ========================================================================== */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    overflow: hidden;
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255, 255, 255, 0.015) 12px, rgba(255, 255, 255, 0.015) 24px);
    font-size: 14px;
    font-family: var(--font-mono);
}

.photo-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
    filter: blur(20px);
}

.floating-card {
    position: absolute;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-default);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-1 {
    top: 20%;
    left: -10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 15%;
    right: -10%;
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.card-label {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.card-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ==========================================================================
   Scroll indicator
   ========================================================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ==========================================================================
   À propos
   ========================================================================== */

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

.about-text .lead {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 500;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

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

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-hover);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Skills panel */

.skills-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.skills-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.skill-category {
    margin-bottom: 24px;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    transition: all var(--t-fast);
}

.tag:hover {
    background-color: var(--accent-soft);
    color: var(--accent-hover);
    border-color: var(--accent);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

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

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg,
        var(--accent) 0%,
        var(--border-default) 20%,
        var(--border-default) 80%,
        transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 56px;
}

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

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 8px;
}

.dot {
    display: block;
    width: 14px;
    height: 14px;
    background-color: var(--bg-base);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    transition: all var(--t);
}

.timeline-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    transition: all var(--t);
}

.timeline-content:hover {
    border-color: var(--border-strong);
    background-color: var(--bg-card-hover);
}

.timeline-date {
    display: inline-block;
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.timeline-role {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.timeline-company {
    font-size: 15px;
    color: var(--accent-hover);
    font-weight: 500;
    margin-bottom: 24px;
}

.timeline-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.timeline-block:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.block-label {
    display: block;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-block p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-block ul li {
    position: relative;
    padding-left: 22px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.timeline-block ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-block ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.tag-sm {
    padding: 3px 10px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 5px;
    font-size: 11.5px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Education / certifications */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--border-subtle);
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all var(--t);
}

.edu-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.edu-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-soft);
    color: var(--accent-hover);
    border-radius: var(--radius-sm);
}

.edu-meta {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.edu-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.section-contact {
    padding-bottom: 80px;
}

.contact-card {
    max-width: 820px;
    margin: 0 auto;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.04));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow), transparent 50%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    margin: 16px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.contact-lead {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 40px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all var(--t);
}

.contact-method:not(.static):hover {
    background-color: var(--accent-soft);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-soft);
    color: var(--accent-hover);
    border-radius: var(--radius-sm);
}

.contact-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
    font-weight: 600;
}

.contact-value {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 0;
    margin-top: 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-meta a {
    color: var(--text-secondary);
    transition: color var(--t-fast);
}

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

.footer-sep {
    opacity: 0.5;
}

/* ==========================================================================
   Legal page
   ========================================================================== */

.legal-body {
    background-color: var(--bg-base);
}

.legal-main {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 820px;
}

.legal-header {
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}

.back-link {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    transition: all var(--t-fast);
    font-family: var(--font-mono);
}

.back-link:hover {
    color: var(--accent-hover);
    transform: translateX(-3px);
}

.legal-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 16px 0 12px;
}

.legal-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.legal-content section {
    margin-bottom: 48px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
    letter-spacing: -0.01em;
}

.legal-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

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

.legal-content a {
    color: var(--accent-hover);
    border-bottom: 1px solid rgba(96, 165, 250, 0.3);
    transition: all var(--t-fast);
}

.legal-content a:hover {
    border-bottom-color: var(--accent-hover);
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-content ul li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.legal-info {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 16px 0;
    font-size: 14.5px;
}

.legal-info dt {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 2px;
}

.legal-info dd {
    color: var(--text-primary);
    margin: 0;
}

@media (max-width: 600px) {
    .legal-main {
        padding: 110px 0 60px;
    }
    .legal-info {
        grid-template-columns: 1fr;
        gap: 4px 0;
    }
    .legal-info dt {
        margin-top: 8px;
    }
    .legal-info dt:first-child {
        margin-top: 0;
    }
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .status-dot,
    .dot.current,
    .floating-card,
    .scroll-mouse::before {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }

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

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px 20px 24px;
        background-color: rgba(10, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all var(--t);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background-color: var(--accent-soft);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-marker {
        left: -24px;
    }

    .timeline-content {
        padding: 24px 22px;
    }

    .timeline-role {
        font-size: 19px;
    }

    .skills-panel {
        padding: 24px;
    }

    .contact-card {
        padding: 48px 24px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }
}
