/* ============================
   RESET & GLOBAL SETTINGS
   ============================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  /* ============================
     FONT: Amatic SC
     ============================ */
  @font-face {
    font-family: "Amatic SC";
    src: url("assets/fonts/AmaticSC-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  
  @font-face {
    font-family: "Amatic SC";
    src: url("assets/fonts/AmaticSC-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }
  
  /* ============================
     THEME VARIABLES
     ============================ */
  :root {
    --bg-light: #fafafa;
    --text-light: #111;
    --card-light: #fff;
    --shadow-light: rgba(0, 0, 0, 0.2);
  
    --bg-dark: #111;
    --text-dark: #eee;
    --card-dark: #1a1a1a;
    --shadow-dark: rgba(255, 255, 255, 0.05);
  }
  
  html[data-theme="light"] {
    --bg: var(--bg-light);
    --text: var(--text-light);
    --card-bg: var(--card-light);
    --shadow: var(--shadow-light);
  }
  
  html[data-theme="dark"] {
    --bg: var(--bg-dark);
    --text: var(--text-dark);
    --card-bg: var(--card-dark);
    --shadow: var(--shadow-dark);
  }
  
  /* ============================
     BODY
     ============================ */
  body {
    font-family: "Courier New", monospace;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.4s, color 0.4s;
    padding: 2rem;
    position: relative;
  }
  
  /* ============================
     HEADER
     ============================ */
  header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  header h1 {
    font-family: "Amatic SC", "Courier New", monospace;
    font-weight: 700;
    font-size: 4rem;
    letter-spacing: 0.35rem;
    margin-bottom: 0.5rem;
  }
  
  header .subtitle {
    font-family: "Courier New", monospace;
    font-size: 1rem;
    opacity: 0.8;
  }
  
  /* ============================
     THEME TOGGLE BUTTON
     ============================ */
  #theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--text);
    border-radius: 50%;
    box-shadow: 0 3px 6px var(--shadow);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #theme-toggle:hover {
    transform: translateY(2px);
    box-shadow: 0 1px 3px var(--shadow);
  }
  
  /* ============================
     CONTENT SECTIONS
     ============================ */
  .intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
  }
  
  .services {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
  }
  
  .service-btn {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 2px solid var(--text);
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 2rem;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .service-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 2px 4px var(--shadow);
  }
  
  .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .scroll-hint {
    text-align: center;
    margin-bottom: 5rem;
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.6s ease-out;
    position: relative;
  }
  
  .scroll-hint.fade-out {
    opacity: 0;
  }
  
  .arrow {
    font-size: 2rem;
    margin-top: 0.5rem;
  }
  
  .details,
  .referenser {
    max-width: 700px;
    margin: 0 auto 6rem; /* ✅ more space between sections */
  }
  
  /* ============================
     FADE-IN HEADERS + CONTENT
     ============================ */
  .details h2,
  .details p,
  .referenser h2,
  .referenser ul {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
  }
  
  .details h2.visible,
  .details p.visible,
  .referenser h2.visible,
  .referenser ul.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Adjust section spacing */
  .details h2 {
    margin-top: 5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--text);
  }
  
  .details p {
    margin-bottom: 3rem;
  }
  
  .referenser ul {
    margin-top: 1rem;
    list-style: none;
  }
  
  .referenser li {
    border-bottom: 1px dashed var(--text);
    padding: 0.5rem 0;
  }
  
  /* ============================
     FOOTER
     ============================ */
  footer {
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--text);
    padding-top: 1rem;
    opacity: 0.8;
  }
  