/* Global Reset and Variables */
:root {
  --bg-primary: #1c1c1e; /* Smooth, light-black tone */
  --bg-secondary: #2c2c2e; /* Slightly lighter black for cards/divs */
  --bg-tertiary: #3a3a3c;
  --text-primary: #ffffff; /* Crisp white for primary visibility */
  --text-secondary: #f2f2f7; /* Very light grey/white for secondary text */
  --accent-gradient: linear-gradient(135deg, #007aff, #00c7be); /* Vibrant modern blue gradient */
  --accent-blue-dark: #007aff; /* Premium royal blue */
  --accent-blue-light: #0a84ff; /* Electric blue accent */
  --border-color: #3a3a3c; /* Subtle, clean border line */
  --radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother animation curve */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body Styling */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  padding: 0; /* REMOVED padding so h1 banner hits the exact screen edges */
}

/* Typography */
h1, h2, h3 {
  color: #ffffff; /* Crisp white headers */
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2, h3 {
  padding: 0 2rem; /* Pushes other headers safely away from screen edges */
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers header text perfectly inside the banner */
  height: 250px; /* Gives the top banner a strong, distinct structural height */
  width: 100vw; /* Forces banner to take up 100% of the visible viewport width */
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 3rem;
  background-image: url('../img/gradient-vector-blank-blue-halftone-background_901408-26569.avif'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7); /* Deep drop shadow so white text cuts through image details */
}

p {
  margin-bottom: 1.5rem;
  font-size: 20px;
  color: #ffffff; /* Solid high-contrast white */
  padding: 0 2rem; /* Keeps paragraphs safely nested away from the screen edge */
}

div {
  background-color: var(--bg-secondary); /* Balanced light-black container background */
  border: 1px solid var(--border-color); /* Swapped thick orange for fine, clean borders */
  padding: 20px;
  border-radius: 15px;
  transition: var(--transition);
  margin: 1rem 2rem; /* Margin left and right stops containers from pressing against screen edge */
}

/* Interactive Elements */
a {
  color: var(--accent-blue-light); /* Clean blue links */
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-blue-dark);
  text-decoration: underline;
}

/* UI Cards */
.card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent-blue-light); /* Subtle blue glow on hover */
  transform: translateY(-2px); /* Premium, modern lift effect */
}

/* Buttons */
.btn {
  background: var(--accent-gradient); /* Rich blue gradient */
  border: none;
  border-radius: var(--radius);
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.btn:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.35); /* Soft blue drop shadow */
}

/* Custom Text Selection */
::selection {
  background-color: var(--accent-blue-dark);
  color: #ffffff;
}

/* Navigation Menu */
nav {
  display: flex;
  justify-content: center; 
  align-items: center; 
  background-color: transparent; /* Cleaned up from "none" */
  min-height: 10vh;
  max-height: 20vh;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 30px;
  padding: 0 2rem;
}
p.home {
  display: flex;
  justify-content: center; 
  align-items: center; 
  background-color: transparent; /* Cleaned up from "none" */
  min-height: 10vh;
  max-height: 20vh;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 30px;
  padding: 0 2rem;
}

nav a {
  color: #ffffff;
  padding: 0 15px;
  transition: var(--transition);
}

nav a:hover {
  color: var(--accent-blue-light) !important; /* Changed yellow hover state to a soft blue glow */
  text-decoration: none;
}

/* Image Frames */
img {
  background-color: #e5e5ea; /* Cleaner, softer light grey background */
  border-radius: 15px;
}

/* Centered Iframe Selector */
iframe {
  display: block;         /* Converts iframe from inline to a block element */
  margin-left: auto;      /* Automatically balances left side spacing */
  margin-right: auto;     /* Automatically balances right side spacing */
  margin-top: 30px;       /* Adds breathing room on top */
  margin-bottom: 30px;    /* Adds breathing room on bottom */
  border: 1px solid var(--border-color); /* Subtle matching dark border */
  border-radius: 15px;    /* Matches your image rounded corners */
  max-width: 95%;         /* Keeps it from breaking layouts on small screens */
}

