:root {
  --bg: #111218;       /* dark background */
  --text: #ffffff;     /* main text white */
  --muted: #aaa;       /* muted text for sub/tiles */
  --accent: #0b5fff;   /* Blue accent color */
  --offset-left: 100px; /* Default large left offset for desktop */
  --offset-left-mobile: 20px; /* New, smaller offset for mobile */
  --container: 1100px;
  --radius-default: 16px; /* Increased rounding */
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  display: block;
}

/* --- GLOBAL LINK STYLING --- */
a {
  text-decoration: none; 
  color: inherit;
  transition: color 0.2s;
}

/* --- WRAP (Container for left alignment) --- */
.wrap {
  margin: 40px 20px 0 var(--offset-left); 
  padding: 0;
}

/* --- HEADER/NAVIGATION --- */
header.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 24px var(--offset-left); 
  background: var(--bg);
  position: sticky; /* Keep the header visible when scrolling */
  top: 0;
  z-index: 100; /* Ensure it stays above other content */
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand img {
  height: 40px; 
  display: block;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a {
  color: var(--text);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--muted); 
}

/* --- HAMBURGER BUTTON (Hidden by default) --- */
.hamburger {
    display: none; 
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text);
    padding: 0;
}
.hamburger svg {
    width: 28px;
    height: 28px;
    display: block;
}

/* --- MAIN CONTENT LAYOUT --- */
main {
  padding-top: 40px;
}

/* --- HERO SECTION (Desktop/Default) --- */
.hero {
  text-align: left;
  max-width: 820px; 
  margin-bottom: 48px;
}

.eyebrow {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.headline {
  font-size: 54px; 
  line-height: 1.1;
  font-weight: 800;
  color: var(--text);
}

.sub {
  font-size: 20px;
  color: var(--muted);
}


/* --- TILES/HIGHLIGHTS SECTION --- */
.tiles {
  display: flex;
  flex-direction: row; 
  gap: 40px;            
  overflow-x: auto; 
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

/* Styling the new anchor tag wrapper for the tiles */
.tile-link {
  display: block; 
  flex-shrink: 0;
  width: 650px; 
  perspective: 1000px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  scroll-snap-align: start; 
}

.tile {
  display: flex;
  flex-direction: column; 
  gap: 12px;
}

/* Hover Effect for the entire Tile */
.tile-link:hover {
  transform: scale(1.01); 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tile-link:hover .tile img {
  box-shadow: 0 0 15px rgba(11, 95, 255, 0.7); 
  border-color: var(--accent);
}

.tile img {
  width: 100%;           
  height: auto;          
  display: block;
  max-width: 650px;
  border-radius: var(--radius-default);
  transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out; 
  border: 1px solid transparent; 
}

.tile h4 {
  margin: 0;
  font-size: 1.50rem; 
  font-weight: 600;   
}

.tile p {
  color: var(--muted); 
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  margin: 0;
}

/* --- FOOTER --- */
footer {
  padding: 150px 0 40px 0; 
  text-align: left;
  font-size: 14px;
  color: var(--muted);
}


/* ======================================= */
/* ====== RESPONSIVE STYLES (MOBILE) ====== */
/* ======================================= */
@media (max-width: 1000px) {
  
  /* 1. Show the hamburger and hide the main nav */
  .hamburger {
      display: block;
      z-index: 101; /* Ensure button is on top of the menu */
  }
  
  .nav-links {
    /* Hide the desktop nav entirely and prepare for full-screen overlay */
    display: none; 
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg); /* Use the main background color */
    padding: 100px var(--offset-left-mobile) 40px;
    z-index: 99;
    
    /* Animation for smooth appearance */
    transition: transform 0.3s ease-out;
    transform: translateX(100%); /* Start off-screen to the right */
  }
  
  .nav-links.nav-open {
      display: flex; /* Override 'display: none' when menu is open */
      transform: translateX(0); /* Slide into view */
  }
  
  .nav-links a {
      font-size: 1.5rem; /* Larger links for tapping */
      font-weight: 700;
      color: var(--text);
  }

  /* 2. Reduce the Left Offset for all main containers */
  .wrap {
    margin: 40px var(--offset-left-mobile) 0 var(--offset-left-mobile); 
  }

  header.nav {
    padding: 24px var(--offset-left-mobile);
  }

  /* 3. Tiles on mobile must revert to stacking */
  .tiles {
    flex-direction: column; 
    gap: 60px; 
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: 0; 
    scroll-snap-type: none;
  }

  .tile-link {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0; 
    scroll-snap-align: none;
  }

  .tile img {
    max-width: 100%;
  }

  /* 4. Adjust Hero Font Size for Readability */
  .headline {
    font-size: 36px;
  }
  
  .sub {
    font-size: 18px;
  }
}
