/* =========================================================================
   VARIABLES & THEMING
   ========================================================================= */
:root {
    /* Color Palette - Premium Light Theme */
    --clr-bg: #FFFFFF;
    --clr-bg-alt: #F9FAFB;
    --clr-text-main: #111827;
    --clr-text-muted: #4B5563;

    --clr-primary: #0F172A;
    --clr-primary-light: #334155;
    --clr-accent: #2563EB;
    --clr-accent-hover: #1D4ED8;

    --clr-border: #E5E7EB;

    /* Category colors for activity feed */
    --clr-formazione: #2563EB;
    --clr-persevra: #7C3AED;
    --clr-consulenza: #059669;
    --clr-open-source: #D97706;

    /* Typography */
    --font-sans: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* Spacing & Sizes */
    --container-max: 1100px;
    --section-pad: 5rem 1.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
    --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.bg-light-gray {
    background-color: var(--clr-bg-alt);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.text-center {
    text-align: center;
}

/* =========================================================================
   TYPOGRAPHY SPECIFICS & UTILITIES
   ========================================================================= */
.section-title {
    font-size: 2.85rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--clr-accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.section {
    padding: var(--section-pad);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-sans);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-bg-alt);
    color: var(--clr-accent);
    border-color: var(--clr-accent);
}

/* =========================================================================
   HEADER & NAVIGATION
   ========================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: padding var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    padding: 1.25rem 1.5rem;
}

.header.scrolled {
    padding: 0.75rem 1.5rem;
    border-color: var(--clr-border);
    box-shadow: var(--shadow-sm);
}

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


.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    letter-spacing: -0.02em;
}

.logo .dot {
    color: var(--clr-accent);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-accent);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--clr-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--clr-primary);
}

/* =========================================================================
   HERO SECTION (Includes merged "Chi Sono")
   ========================================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37,99,235,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-sans);
    color: var(--clr-accent);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3.3rem, 5.5vw, 5rem);
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 400;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.hero-description p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

/* =========================================================================
   HERO SOCIAL LINKS (inline pill row, below bio)
   ========================================================================= */
.hero-social-links {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    background: var(--clr-bg);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.social-link-pill:hover {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
    background: var(--clr-bg-alt);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-link-pill svg {
    flex-shrink: 0;
}

/* =========================================================================
   HERO SKILLS PANEL (replaces abstract geometric shapes)
   ========================================================================= */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-skills-panel {
    background: var(--clr-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* Deep shadow to lift it off the page, subtle inner highlight */
    box-shadow:
        0 25px 50px -12px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.06);
    width: 100%;
    max-width: 420px;
    position: relative;
}

/* Window chrome: three dots + filename */
.panel-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Mac-style traffic lights — vivid colors */
.panel-dot:nth-child(1) { background: #FF6B6B; }
.panel-dot:nth-child(2) { background: #FFD93D; }
.panel-dot:nth-child(3) { background: #6BCB77; }

.panel-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-left: auto;
    letter-spacing: 0.02em;
}

.panel-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel-skill-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Comment-style category labels in bright accent blue */
.panel-category-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #4F9FFF;
    letter-spacing: 0.03em;
    opacity: 1;
    font-weight: 500;
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* Each tag slides in from the left, staggered via --i CSS variable */
.panel-tag {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.8rem;
    border-radius: 5px;
    opacity: 0;
    transform: translateX(-8px);
    animation: tagReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i) * 55ms + 750ms);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    cursor: default;
}

.panel-tag:hover {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.5);
    color: #fff;
}

@keyframes tagReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.panel-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.875rem 1.5rem;
}

.panel-stat {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68);
}

.panel-stat em {
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    font-weight: 600;
}

/* =========================================================================
   ACTIVITY FEED SECTION
   ========================================================================= */
.activity {
    background: var(--clr-bg);
}

/* Vertical timeline container — the ::before draws the connecting line */
.feed {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 3rem;
}

.feed::before {
    content: '';
    position: absolute;
    left: 0.6rem; /* horizontal center of the 1.25rem dot */
    top: 0.75rem;
    bottom: 1rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        var(--clr-accent) 0%,
        var(--clr-border) 55%,
        transparent 100%
    );
}

/* JS replaces the static ::before line with colored segments */
.feed--js-line::before {
    display: none;
}

.feed-timeline-segment {
    position: absolute;
    width: 1px;
    pointer-events: none;
    z-index: 0;
}


.feed-item {
    position: relative;
    margin-bottom: 1.75rem;
}

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

/* Colored dot on the timeline line */
.feed-timeline-dot {
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 3px solid var(--clr-bg);
    box-shadow: 0 0 0 1px var(--clr-border);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-timeline-dot[data-category="formazione"]  { background: var(--clr-formazione); }
.feed-timeline-dot[data-category="persevra"]    { background: var(--clr-persevra); }
.feed-timeline-dot[data-category="consulenza"]  { background: var(--clr-consulenza); }
.feed-timeline-dot[data-category="open-source"] { background: var(--clr-open-source); }
.feed-timeline-dot[data-category="swift"]       { background: #F05138; }
.feed-timeline-dot[data-category="web"]         { background: #111111; }

.feed-item:hover .feed-timeline-dot {
    transform: translateY(-50%) scale(1.25);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Card: left border accent colour matches the category dot */
.feed-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-left-width: 3px;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feed-card[data-category="formazione"]  { border-left-color: var(--clr-formazione); }
.feed-card[data-category="persevra"]    { border-left-color: var(--clr-persevra); }
.feed-card[data-category="consulenza"]  { border-left-color: var(--clr-consulenza); }
.feed-card[data-category="open-source"] { border-left-color: var(--clr-open-source); }
.feed-card[data-category="swift"]       { border-left-color: #F05138; }
.feed-card[data-category="web"]         { border-left-color: #111111; }

.feed-item:hover .feed-card {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.feed-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.625rem;
    flex-wrap: wrap;
}

/* Category badge pill */
.feed-category {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    border: 1px solid;
    white-space: nowrap;
}

/* Badge colours per category */
.feed-card[data-category="formazione"] .feed-category {
    color: var(--clr-formazione);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.06);
}
.feed-card[data-category="persevra"] .feed-category {
    color: var(--clr-persevra);
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.06);
}
.feed-card[data-category="consulenza"] .feed-category {
    color: var(--clr-consulenza);
    border-color: rgba(5, 150, 105, 0.3);
    background: rgba(5, 150, 105, 0.06);
}
.feed-card[data-category="open-source"] .feed-category {
    color: var(--clr-open-source);
    border-color: rgba(217, 119, 6, 0.3);
    background: rgba(217, 119, 6, 0.06);
}
.feed-card[data-category="swift"] .feed-category {
    color: #F05138;
    border-color: rgba(240, 81, 56, 0.3);
    background: rgba(240, 81, 56, 0.06);
}
.feed-card[data-category="web"] .feed-category {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.3);
    background: rgba(17, 17, 17, 0.06);
}

.feed-date {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--clr-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.feed-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

/* Prevent the global card-title::after underline from applying here */
.feed-title::after {
    display: none;
}

.feed-body {
    font-size: 1rem;
    color: var(--clr-text-muted);
    line-height: 1.65;
    margin-bottom: 0.875rem;
}

.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.feed-tag {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--clr-text-muted);
    background: var(--clr-bg-alt);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--clr-border);
}

/* =========================================================================
   EXPERIENCE & SKILLS SECTION (Two Columns)
   ========================================================================= */
.split-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.column-left {
    display: flex;
    flex-direction: column;
}

.experience-item {
    padding: 3rem 0;
    border-bottom: 1px dashed var(--clr-border);
    transition: transform 0.3s ease;
}

.experience-item:first-child {
    padding-top: 0;
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-item:hover {
    transform: translateX(8px);
}

.column-right {
    background: var(--clr-bg-alt);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--clr-accent);
    border-radius: 2px;
}

.card-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.experience-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 0;
}

/* Skills Layout Categories & Design */
.skill-category {
    margin-top: 2rem;
}

.skill-category:first-of-type {
    margin-top: 1.5rem;
}

.category-title {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: 0.75rem;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background-color: var(--clr-bg);
    color: var(--clr-primary-light);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid var(--clr-border);
    transition: all var(--transition-fast);
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.skill-tag:hover {
    background-color: var(--clr-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--clr-primary);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    background-color: var(--clr-primary);
    color: rgba(255,255,255,0.7);
    padding: 2rem 1.5rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-links a {
    color: white;
    font-weight: 500;
}

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

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-social-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================================
   SERVICES SECTION
   ========================================================================= */

/* Alternate bg per separare visivamente dalla sezione activity */
.services {
    background-color: var(--clr-bg-alt);
}

/* CSS Grid: 3 colonne su desktop, 1 su mobile */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Card base */
.service-card {
    position: relative;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* Accent bar superiore — si colora sull'hover per dare feedback visivo */
.service-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--clr-accent);
    transform: scaleX(0.35);
    transform-origin: left;
    transition: transform var(--transition-normal);
    border-radius: 0 2px 0 0;
}

.service-card:hover .service-card-accent {
    transform: scaleX(1);
}

/* Icona in cerchio morbido */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--clr-accent) 10%, transparent);
    color: var(--clr-accent);
    flex-shrink: 0;
}

.service-title {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--clr-primary);
    line-height: 1.3;
}

.service-description {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    line-height: 1.7;
    flex: 1; /* spinge la lista in fondo */
}

/* Lista bullet feature */
.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-border);
}

.service-features li {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    padding-left: 1rem;
    position: relative;
}

/* Pallino accent come bullet */
.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--clr-accent);
}

/* Responsive: 1 colonna su mobile */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =========================================================================
   MEDIA QUERIES
   ========================================================================= */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Skills panel sits below bio on mobile — no need to reorder */
    .hero-skills-panel {
        max-width: 100%;
    }

    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .column-right {
        position: static;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero {
        padding-top: 7rem;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
    }


    .nav-list {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: var(--shadow-lg);
    }

    .nav-list.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Tighten feed on small screens */
    .feed {
        padding-left: 2.25rem;
    }

    .feed::before {
        left: 0.5rem;
    }

    .feed-timeline-dot {
        left: -2.25rem;
        width: 1rem;
        height: 1rem;
        top: 1.625rem;
    }

    .feed-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .feed-date {
        margin-left: 0;
    }
}
