/* ========== RESET & FONT ========== */
@font-face {
  font-family: 'SFPRO';
  src: url('SFPRODISPLAYHEAVYITALIC.OTF') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

body, html {
  font-family: 'SFPRO';
  height: 100%;
  background: #ffffff; /* This was white, might want to change to a darker color for text visibility */
  color: #333; /* Default text color changed for readability */
  overflow-x: hidden;
  /* ADDED: Smooth scrolling for when a nav link is clicked */
  scroll-behavior: smooth;
}

/* ========== BASE PANEL STYLES (SHARED) ========== */
.glass, .nav-button {
  transform-style: preserve-3d;
  position: relative; 
  overflow: hidden; 
}

/* ========== GLASS PANEL ========== */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
  padding: 28px; /* Increased padding slightly */
  margin-bottom: 60px; /* ADDED: Space between glass sections */
}
.article-meta {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 2em;
  font-style: italic;
}

.glass h1 {
  font-size: 2.5rem; /* Slightly smaller for article titles than main page H1 */
  margin-bottom: 0.5em;
  color: #333;
}

.glass h3 {
  font-size: 1.5rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #333;
}

.glass p {
  text-align: left; /* Align text left for better readability in articles */
  margin-bottom: 1em;
  color: #444;
}
/* ========== HEADER & NAV ========== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(208, 207, 207, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
footer {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: rgba(208, 207, 207, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
header .logo {
  max-width: 60px;
}
nav {
  display: flex;
  gap: 10px;
}

/* ========== NAV BUTTON STYLING ========== */
.nav-button {
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #555;
  border: 1px solid transparent;
  background-color: transparent;
  transition: transform 0.4s ease-out, color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}
.nav-button.active {
  color: #6d6d6d;
  background-color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-button:hover {
  color: #787878;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.nav-button.active:hover {
  background-color: rgba(255,255,255,1);
}

/* ========== SHINY SPECULAR EDGE EFFECT ========== */
.glass::before, .nav-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(80px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.6), transparent 80%);
  opacity: 0;
  transition: opacity 0.4s ease-out;
  pointer-events: none;
}

main:hover > .glass::before {
  opacity: 1;
}

.nav-button:hover::before {
  opacity: 1;
}

/* ========== MAIN CONTENT STYLES ========== */
main { max-width: 1000px; margin: 60px auto; padding: 0 20px; text-align: center; }
main h1 { font-size: 2.8rem; color: #333; }
main h2 { font-size: 2.2rem; color: #333; margin-bottom: 1rem; }
main p { font-size: 1.15rem; line-height: 1.5; color: #444; }
footer { margin: 60px 0 20px; text-align: center; font-size: 0.85rem; color: #666; }

/* Existing Project Card Styles */
.projects { display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.project-card { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom:10px}
.project-card img { max-width: 250px; padding: 10px; height: auto; border-radius: 16px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.project-info { margin-top: 10px;margin-bottom: 10px; font-weight: bold; }


/* ========== NEW STYLES FROM PREVIOUS STEP ========== */

/* Styles for the Email Signup Form */
.email-signup { display: flex; justify-content: center; margin-top: 2rem; gap: 10px; flex-wrap: wrap; }
.email-signup input { padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; width: 300px; font-size: 1rem; }
.email-signup button { padding: 12px 22px; border: none; background-color: #595959; color: white; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: bold; }
.form-subtext { font-size: 0.8rem; color: #555; margin-top: 0.5rem; }

/* Styles for the Insights Section */
#insights h2 { margin-bottom: 1rem; }
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; text-align: left; }
.insight-card { background: rgba(0, 0, 0, 0.05); padding: 1.5rem; border-radius: 10px; }
.insight-card h3 { margin-top: 0; color: #333; }
.insight-card p { font-size: 1rem; color: #444; }
.insight-card a { color: #007bff; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 1rem; }

/* Style for the final CTA button */
.cta-button { display: inline-block; background-color: #65707d; color: white; padding: 15px 30px; text-decoration: none; border-radius: 8px; margin-top: 1rem; font-weight: bold; transition: transform 0.3s, box-shadow 0.3s; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); }

/* Each content section needs a scroll-margin-top to not be hidden by the sticky header */
section[id] {
  scroll-margin-top: 100px;
}
/* ========== MEDIA  ========== */
/* Small Header Rendered Images */
.Header-Image { max-width: 200px; }