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

    :root {
      --white:   #ffffff;
      --off:     #6b7280;
      --accent:  #3b82f6;
      --dark:    #111827;
      --bg:      #0f172a;
      --card:    #1e293b;
    }

    html, body {
      height: 100%;
      background: var(--bg);
      color: var(--white);
      font-family: 'DM Sans', sans-serif;
      overflow-x: hidden;
      scroll-behavior: smooth;
    }

    /* ── HEADER NAV ── */
    .header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: rgba(15, 23, 42, 0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .header__inner {
      max-width: 1200px;
      margin: 0 auto;
      padding: 1.5rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .header__logo {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--white);
      text-decoration: none;
    }

    .header__logo span {
      color: var(--accent);
    }

    .header__nav {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }

    .header__nav a {
      color: var(--off);
      text-decoration: none;
      font-size: 0.95rem;
      font-weight: 400;
      transition: color 0.3s ease;
    }

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

    @media (max-width: 768px) {
      .header__inner {
        padding: 1rem 1.5rem;
      }

      .header__logo {
        font-size: 1.2rem;
      }

      .header__nav {
        gap: 1.5rem;
      }

      .header__nav a {
        font-size: 0.85rem;
      }
    }

    @media (max-width: 480px) {
      .header__nav {
        gap: 1rem;
      }
    }

    /* ── VIDEO BACKGROUND ── */
    .hero {
      position: relative;
      width: 100%;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      padding-top: 80px;
    }

    .hero__video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      filter: brightness(0.3) saturate(0.6);
    }

    /* grain overlay */
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
      background-size: 180px 180px;
      opacity: 0.35;
      z-index: 1;
      pointer-events: none;
    }

    /* bottom gradient fade */
    .hero::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 38%;
      background: linear-gradient(to bottom, transparent, var(--dark));
      z-index: 2;
    }

    /* ── HERO CONTENT ── */
    .hero__content {
      position: relative;
      z-index: 3;
      text-align: left;
      padding: 2rem;
      max-width: 1200px;
      width: 100%;
      animation: fadeUp 1.1s cubic-bezier(0.16,1,0.3,1) both;
    }

    .hero__eyebrow {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(2.3rem, 3.4vw, 3rem);
      font-weight: 400;
      letter-spacing: 0.05em;
      color: #3b82f6;
      margin-bottom: 1rem;
      opacity: 0;
      animation: fadeUp 0.9s 0.15s cubic-bezier(0.16,1,0.3,1) forwards, 
                 shadowMove 2s 0.15s ease-out forwards,
                 colorToWhite 1s 2.15s ease-out forwards;
    }

    .hero__title {
      font-family: 'DM Sans', sans-serif;
      font-size: clamp(3rem, 8vw, 5.5rem);
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: #ffffff;
      font-weight: 700;
      margin-bottom: 1.5rem;
      opacity: 0;
      animation: fadeUp 1s 0.3s cubic-bezier(0.16,1,0.3,1) forwards, 
                 shadowMove 2s 0.3s ease-out forwards;
    }

    .hero__title span {
      display: block;
      color: #6b7280;
      font-weight: 400;
      font-size: clamp(1.2rem, 3vw, 2rem);
      margin-top: 0.5rem;
      animation: colorToWhite 1s 2.3s ease-out forwards;
    }

    .hero__cta {
      display: inline-flex;
      gap: 1rem;
      margin-top: 2rem;
      opacity: 0;
      animation: fadeUp 0.9s 0.55s cubic-bezier(0.16,1,0.3,1) forwards;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-block;
      padding: 0.9rem 2rem;
      font-size: 0.95rem;
      font-weight: 500;
      text-decoration: none;
      border-radius: 6px;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .btn--primary {
      background: var(--accent);
      color: var(--white);
      border: 2px solid var(--accent);
    }

    .btn--primary:hover {
      background: transparent;
      color: var(--accent);
    }

    .btn--secondary {
      background: transparent;
      color: var(--white);
      border: 2px solid rgba(255,255,255,0.3);
    }

    .btn--secondary:hover {
      border-color: var(--white);
      background: rgba(255,255,255,0.1);
    }

    @media (max-width: 768px) {
      .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
      }
    }



    /* ── ABOUT SECTION ── */
    .section {
      max-width: 1200px;
      margin: 0 auto;
      padding: 6rem 2rem;
    }

    @media (max-width: 768px) {
      .section {
        padding: 4rem 1.5rem;
      }
    }

    .section__label {
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
      font-weight: 600;
    }

    .section__title {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      color: var(--white);
      margin-bottom: 3rem;
      line-height: 1.2;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    .about-grid__text {
      max-width: 700px;
    }

    .about-grid p {
      color: var(--off);
      line-height: 1.8;
      font-size: 1.05rem;
      font-weight: 400;
    }

    .about-grid p + p { margin-top: 1.5rem; }

    /* ── SKILLS ── */
    .skills {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
      margin-top: 3rem;
    }

    @media (max-width: 480px) {
      .skills {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      }
    }

    .skill-tag {
      background: var(--card);
      padding: 0.8rem 1.2rem;
      border-radius: 6px;
      text-align: center;
      font-size: 0.9rem;
      color: var(--white);
      border: 1px solid rgba(255,255,255,0.1);
      transition: all 0.3s ease;
    }

    .skill-tag:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    /* ── PROJECTS ── */
    .showcase {
      background: var(--dark);
      padding: 6rem 2rem;
    }

    @media (max-width: 768px) {
      .showcase {
        padding: 4rem 1.5rem;
      }
    }

    .showcase__inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    .showcase__label {
      font-size: 0.85rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
      font-weight: 600;
    }

    .showcase__title {
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 700;
      color: var(--white);
      margin-bottom: 3rem;
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
    }

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

    .card {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.1);
      background: var(--card);
      transition: all 0.3s ease;
    }

    .card:hover {
      transform: translateY(-8px);
      border-color: var(--accent);
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .card img {
      display: block;
      width: 100%;
      height: 240px;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .card:hover img {
      transform: scale(1.05);
    }

    .card__content {
      padding: 1.5rem;
    }

    .card__title {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--white);
      margin-bottom: 0.5rem;
    }

    .card__caption {
      font-size: 0.9rem;
      color: var(--off);
      line-height: 1.6;
      margin-bottom: 1rem;
    }

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

    .card__tag {
      font-size: 0.75rem;
      padding: 0.3rem 0.8rem;
      background: rgba(59, 130, 246, 0.1);
      color: var(--accent);
      border-radius: 4px;
    }

    /* ── FOOTER ── */
    footer {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding: 3rem 2rem;
      text-align: center;
      background: var(--bg);
    }

    footer p {
      font-size: 0.9rem;
      color: var(--off);
    }

    footer strong { 
      color: var(--white); 
      font-weight: 600; 
    }

    /* ── KEYFRAMES ── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes shimmer {
      to {
        background-position: 200% center;
      }
    }

    @keyframes shadowMove {
      0% {
        text-shadow: 
          -20px -20px 0 rgba(59, 130, 246, 0.5),
          -40px -40px 0 rgba(59, 130, 246, 0.4),
          -60px -60px 0 rgba(59, 130, 246, 0.3),
          -80px -80px 20px rgba(0, 0, 0, 0.5);
      }
      50% {
        text-shadow: 
          10px -10px 0 rgba(59, 130, 246, 0.5),
          20px -20px 0 rgba(59, 130, 246, 0.4),
          30px -30px 0 rgba(59, 130, 246, 0.3),
          40px -40px 15px rgba(0, 0, 0, 0.5);
      }
      100% {
        text-shadow: 
          1px 1px 0 rgba(59, 130, 246, 0.5),
          2px 2px 0 rgba(59, 130, 246, 0.4),
          3px 3px 0 rgba(59, 130, 246, 0.3),
          4px 4px 8px rgba(0, 0, 0, 0.5);
      }
    }

    @keyframes fadeToWhite {
      to {
        background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
    }

    @keyframes colorToWhite {
      to {
        color: #ffffff;
      }
    }

    /* ── INTRO ANIMATION ── */
    .intro-scene {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: hideIntro 0.5s 4.5s forwards;
    }

    .building {
      position: absolute;
      bottom: 0;
      right: 30%;
      width: 120px;
      height: 80vh;
      background: linear-gradient(to right, #1e293b, #334155);
      box-shadow: inset -10px 0 20px rgba(0,0,0,0.5);
    }

    .building::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background: repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(0,0,0,0.3) 30px, rgba(0,0,0,0.3) 32px),
                  repeating-linear-gradient(90deg, transparent, transparent 25px, rgba(0,0,0,0.3) 25px, rgba(0,0,0,0.3) 27px);
    }

    .plane {
      position: absolute;
      right: -150px;
      top: 40%;
      width: 150px;
      height: 100px;
      background-image: url('images/avion.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      animation: flyPlane 2.5s linear forwards;
    }

    .explosion {
      position: absolute;
      right: 30%;
      top: 35%;
      font-size: 100px;
      opacity: 0;
      animation: explode 1s 2.5s forwards;
    }

    @keyframes flyPlane {
      to { right: 30%; }
    }

    @keyframes explode {
      0% { opacity: 0; transform: scale(0.5); }
      50% { opacity: 1; transform: scale(1.5); }
      100% { opacity: 0; transform: scale(2); }
    }

    @keyframes hideIntro {
      to { opacity: 0; pointer-events: none; }
    }

    .hero__content {
      animation-delay: 4.8s;
    }

    .hero__eyebrow {
      animation-delay: 4.95s, 4.95s, 6.95s;
    }

    .hero__title {
      animation-delay: 5.1s, 5.1s;
    }

    .hero__cta {
      animation-delay: 5.35s;
    }

    /* ── RESPONSIVE UTILITIES ── */
    @media (max-width: 1024px) {
      .hero__content {
        padding: 2rem 1.5rem;
      }
    }

    @media (max-width: 480px) {
      .hero {
        padding-top: 70px;
      }

      .card img {
        height: 200px;
      }

      footer {
        padding: 2rem 1.5rem;
      }
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 768px) {
      .header__nav { display: none; }
      .hero__content { text-align: center; }
      .hero__cta { flex-direction: column; }
      .projects-grid { grid-template-columns: 1fr; }
    }