:root {
      --bg: #0b1020;
      --bg-soft: #111831;
      --card: rgba(255,255,255,0.08);
      --card-border: rgba(255,255,255,0.14);
      --text: #eef2ff;
      --muted: #aab3d1;
      --accent: #7c9cff;
      --accent-2: #67e8f9;
      --shadow: 0 20px 50px rgba(0,0,0,0.35);
      --radius: 22px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background:
        radial-gradient(circle at top left, rgba(124,156,255,0.20), transparent 28%),
        radial-gradient(circle at top right, rgba(103,232,249,0.18), transparent 24%),
        linear-gradient(180deg, #0b1020 0%, #0e1428 50%, #0a1020 100%);
      color: var(--text);
      line-height: 1.6;
      overflow-x: hidden;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      width: 36rem;
      height: 36rem;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
      filter: blur(80px);
      opacity: 0.22;
      animation: floatGlow 12s ease-in-out infinite;
    }

    body::before {
      top: -10rem;
      left: -8rem;
      background: rgba(124,156,255,0.28);
    }

    body::after {
      right: -10rem;
      bottom: -12rem;
      background: rgba(103,232,249,0.22);
      animation-delay: -6s;
    }

    a { color: inherit; text-decoration: none; }

    .container {
      width: min(var(--max), calc(100% - 2rem));
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .glass {
      background: var(--card);
      border: 1px solid var(--card-border);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      box-shadow: var(--shadow);
      transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }

    .glass:hover {
      border-color: rgba(124,156,255,0.3);
      box-shadow: 0 24px 60px rgba(0,0,0,0.42);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(8,12,24,0.68);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(255,255,255,0.08);
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .site-header.scrolled {
      background: rgba(8,12,24,0.9);
      border-bottom-color: rgba(124,156,255,0.12);
      box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      min-height: 76px;
    }

    .brand {
      font-size: 1.1rem;
      font-weight: 800;
      letter-spacing: 0.04em;
    }

    .brand span {
      color: var(--accent-2);
      text-shadow: 0 0 18px rgba(103,232,249,0.35);
    }

    .nav-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      align-items: center;
    }

    .nav-links a {
      color: var(--muted);
      font-weight: 600;
      position: relative;
      transition: 0.25s ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -0.35rem;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.25s ease;
    }

    .nav-links a:hover {
      color: var(--text);
    }

    .nav-links a:hover::after {
      transform: scaleX(1);
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 0.9rem 1.2rem;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.12);
      font-weight: 700;
      transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .btn::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.22) 50%, transparent 80%);
      transform: translateX(-140%);
      transition: transform 0.7s ease;
    }

    .btn:hover {
      transform: translateY(-3px) scale(1.01);
      box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    }

    .btn:hover::before {
      transform: translateX(140%);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #08111f;
      border: none;
    }

    .btn-secondary {
      background: rgba(255,255,255,0.06);
      color: var(--text);
    }

    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 3px;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      z-index: 2000;
      box-shadow: 0 0 10px rgba(124,156,255,0.6);
    }

    .hero {
      padding: 5rem 0 3rem;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.15fr 0.95fr;
      gap: 2rem;
      align-items: center;
    }

    .hero-copy h1 {
      font-size: clamp(2.4rem, 5vw, 5.2rem);
      line-height: 0.95;
      margin: 0 0 1rem;
      letter-spacing: -0.04em;
      text-wrap: balance;
    }

    .hero-copy h1 span {
      display: inline-block;
      background: linear-gradient(90deg, #fff, var(--accent-2), #fff);
      background-size: 200% auto;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: textShine 6s linear infinite;
    }

    .hero-copy p {
      font-size: 1.1rem;
      color: var(--muted);
      max-width: 62ch;
      margin-bottom: 1.5rem;
    }

    .hero-eyebrow {
      display: inline-flex;
      padding: 0.45rem 0.9rem;
      border-radius: 999px;
      background: rgba(124,156,255,0.12);
      border: 1px solid rgba(124,156,255,0.22);
      color: #d9e3ff;
      font-weight: 700;
      margin-bottom: 1rem;
      box-shadow: 0 0 30px rgba(124,156,255,0.12);
    }

    .hero-actions {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }

    .stat {
      border-radius: 18px;
      padding: 1rem;
    }

    .stat:hover {
      transform: translateY(-6px) scale(1.01);
    }

    .stat strong {
      display: block;
      font-size: 1rem;
      margin-bottom: 0.25rem;
    }

    .stat span,
    .muted {
      color: var(--muted);
    }

    .hero-link {
      display: block;
      border-radius: 30px;
    }

    .hero-card {
      position: relative;
      border-radius: 30px;
      overflow: hidden;
      min-height: 720px;
      background:
        linear-gradient(180deg, rgba(124,156,255,0.15), rgba(12,18,36,0.78)),
        url('images/ai-placeholder.png') center/cover no-repeat;
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: var(--shadow);
      display: flex;
      align-items: flex-end;
      transform: translateY(var(--parallax-offset, 0px));
      will-change: transform;
      background-size: 100%;
  		background-position: center;
    }

    .hero-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(7,10,20,0.08), rgba(7,10,20,0.82));
    }

    .hero-card::after {
      content: "";
      position: absolute;
      inset: -10%;
      background: radial-gradient(circle at top, rgba(255,255,255,0.12), transparent 42%);
      mix-blend-mode: screen;
      animation: heroShimmer 8s linear infinite;
    }

    .hero-card:hover {
      transform: translateY(var(--parallax-offset, 0px)) scale(1.01);
    }

    .hero-card-content {
      position: relative;
      z-index: 1;
      padding: 1.5rem;
      width: 100%;
    }

    .hero-badge {
      display: inline-block;
      padding: 0.5rem 0.8rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.15);
      font-size: 0.9rem;
      color: #dbe6ff;
      margin-bottom: 0.9rem;
    }

    section {
      padding: 1.8rem 0 1.6rem;
      position: relative;
      z-index: 1;
    }

    .section-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .section-head h2 {
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      margin: 0;
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .section-head p {
      margin: 0;
      color: var(--muted);
      max-width: 62ch;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
    }

    .panel {
      border-radius: var(--radius);
      padding: 1.4rem;
    }

    .panel:hover {
      transform: translateY(-6px);
    }

    .panel p:last-child { margin-bottom: 0; }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .chip {
      padding: 0.65rem 0.9rem;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: #dbe5ff;
      font-weight: 600;
      font-size: 0.95rem;
      transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    }

    .chip:hover {
      transform: translateY(-3px);
      border-color: rgba(103,232,249,0.35);
      background: rgba(255,255,255,0.1);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.25rem;
      align-items: stretch;
    }

    .project-card-link {
      display: block;
      width: 100%;
      height: 100%;
      min-width: 0;
      color: inherit;
      text-decoration: none;
      border-radius: 24px;
    }

    .project-card {
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      border-radius: 24px;
      overflow: hidden;
      position: relative;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent, rgba(124,156,255,0.08));
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      z-index: 0;
    }

    .project-card:hover {
      transform: translateY(-10px) rotateX(2deg);
      border-color: rgba(124,156,255,0.35);
      box-shadow: 0 26px 60px rgba(0,0,0,0.36);
    }

    .project-card:hover::before {
      opacity: 1;
    }

    .project-image {
      width: 100%;
      aspect-ratio: 16 / 10;
      background-size: cover;
      background-position: center;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      transition: transform 0.5s ease;
      flex-shrink: 0;
    }

    .project-card:hover .project-image {
      transform: scale(1.06);
    }

    .project-image-one {
      background-image:
        linear-gradient(135deg, rgba(124,156,255,0.18), rgba(103,232,249,0.12)),
        url('images/cs2-teammanager.png');
    }

    .project-image-two {
      background-image:
        linear-gradient(135deg, rgba(124,156,255,0.18), rgba(103,232,249,0.12)),
        url('images/project-learning.png');
    }

    .project-image-three {
      background-image:
        linear-gradient(135deg, rgba(124,156,255,0.18), rgba(103,232,249,0.12)),
        url('images/portfoliekort.png');
    }
.project-image-four {
      background-image:
        linear-gradient(135deg, rgba(124,156,255,0.18), rgba(103,232,249,0.12)),
        url('images/dummy.png');
    }

    .project-body {
      padding: 1.2rem;
      position: relative;
      z-index: 1;
      flex: 1;
    }

    .project-tag {
      display: inline-block;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--accent-2);
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .project-body h3 {
      margin: 0 0 0.65rem;
      font-size: 1.25rem;
    }

    .project-body p {
      margin: 0 0 1rem;
      color: var(--muted);
    }

    .project-links {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .mini-link {
      font-weight: 700;
      color: #dfe8ff;
      transition: color 0.25s ease, transform 0.25s ease;
      display: inline-block;
    }

    .mini-link:hover {
      color: var(--accent-2);
      transform: translateX(4px);
    }

    .timeline {
      display: grid;
      gap: 1rem;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 150px 1fr;
      gap: 1rem;
      padding: 1.15rem;
      border-radius: 22px;
    }

    .timeline-item:hover {
      transform: translateX(6px);
    }

    .timeline-item strong {
      font-size: 0.95rem;
      color: var(--accent-2);
    }

    .contact-box {
      text-align: center;
      padding: 2rem;
      border-radius: 28px;
      margin: 2rem 0 4rem;
      position: relative;
      overflow: hidden;
    }

    .contact-box::before {
      content: "";
      position: absolute;
      inset: auto -10% -60% -10%;
      height: 200px;
      background: radial-gradient(circle, rgba(124,156,255,0.22), transparent 60%);
      pointer-events: none;
    }

    .contact-box h2 {
      margin-top: 0;
      font-size: clamp(2rem, 4vw, 3rem);
      line-height: 1;
      position: relative;
      z-index: 1;
    }

    .contact-box p {
      color: var(--muted);
      max-width: 58ch;
      margin: 0 auto 1.4rem;
      position: relative;
      z-index: 1;
    }

    .footer {
      padding: 0 0 2.5rem;
      color: var(--muted);
      text-align: center;
      font-size: 0.95rem;
      position: relative;
      z-index: 1;
    }

    .reveal {
      opacity: 0;
      transform: translateY(40px) scale(0.98);
      transition: opacity 0.9s cubic-bezier(.2,.65,.2,1), transform 0.9s cubic-bezier(.2,.65,.2,1);
      will-change: opacity, transform;
    }

    .reveal-left {
      opacity: 0;
      transform: translateX(-50px) scale(0.98);
      transition: opacity 0.9s cubic-bezier(.2,.65,.2,1), transform 0.9s cubic-bezier(.2,.65,.2,1);
      will-change: opacity, transform;
    }

    .reveal-right {
      opacity: 0;
      transform: translateX(50px) scale(0.98);
      transition: opacity 0.9s cubic-bezier(.2,.65,.2,1), transform 0.9s cubic-bezier(.2,.65,.2,1);
      will-change: opacity, transform;
    }

    .reveal.visible,
    .reveal-left.visible,
    .reveal-right.visible {
      opacity: 1;
      transform: translate(0, 0) scale(1);
    }

    @keyframes floatGlow {
      0%, 100% { transform: translateY(0) translateX(0) scale(1); }
      50% { transform: translateY(20px) translateX(10px) scale(1.06); }
    }

    @keyframes heroShimmer {
      0% { transform: translateX(-8%) translateY(-2%) rotate(0deg); }
      50% { transform: translateX(8%) translateY(2%) rotate(6deg); }
      100% { transform: translateX(-8%) translateY(-2%) rotate(0deg); }
    }

    @keyframes textShine {
      to { background-position: 200% center; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
      }

      .hero-card {
        transform: none !important;
      }
    }

    @media (max-width: 980px) {
      .hero-grid,
      .about-grid,
      .projects-grid {
        grid-template-columns: 1fr;
      }

      .hero-card { min-height: 420px; }
      .hero-stats { grid-template-columns: 1fr; }
      .timeline-item { grid-template-columns: 1fr; }
    }

    @media (max-width: 680px) {
      .nav { padding: 0.75rem 0; }
      .nav-links { display: none; }
      .hero { padding-top: 2.5rem; }
      .hero-copy h1 { line-height: 1.02; }
      .section-head { align-items: flex-start; flex-direction: column; }
      body::before,
      body::after { width: 20rem; height: 20rem; }
    }
