/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  /* Harmonious Dark Ocean Palette */
  --bg-deep: #020617;        /* Mariana trench blue-black */
  --bg-abyss: #070f22;       /* Deep ocean floor */
  --bg-surface: #0f1c3f;     /* Intermediate depths */
  --bg-card: rgba(15, 28, 63, 0.4);
  --border-light: rgba(0, 240, 255, 0.15);
  --border-active: rgba(0, 240, 255, 0.4);
  
  /* Vibrant Cyan & Blue Accents */
  --color-primary: #00f0ff;  /* Bioluminescent Cyan */
  --color-secondary: #00b8d4;/* Coral Teal */
  --color-accent: #38ef7d;   /* River Green (for Swiss rivers) */
  --color-text-main: #f8fafc;/* Ice White */
  --color-text-muted: #94a3b8;/* Silt Gray */
  
  /* Fonts */
  --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-display: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Heights & Animation Spans */
  --header-height-large: 90px;
  --header-height-small: 65px;
  --border-radius: 16px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.25);
  --shadow-neon-hover: 0 0 25px rgba(0, 240, 255, 0.45);
}

/* ==========================================
   BASE & RESET
   ========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  height: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--color-text-main);
  font-family: var(--font-family-sans);
  line-height: 1.6;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex-grow: 1;
  padding-top: var(--header-height-large);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #fff;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  font-weight: 300;
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
  color: var(--color-text-main);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-family-display);
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--bg-deep);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon-hover);
  color: var(--bg-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-2px);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-large);
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, background 0.3s ease;
}

/* Scroll-Driven Animation using CSS (supported in Chrome/Safari) */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  .site-header {
    animation: shrinkHeader auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 100px;
  }
}

@keyframes shrinkHeader {
  to {
    height: var(--header-height-small);
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.header-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-family-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--color-text-main);
  line-height: 1.1;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text-muted);
  font-family: var(--font-family-display);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

/* Header style adjusting for standard page transitions */
.nav-link.btn-primary {
  color: var(--bg-deep) !important;
}

/* ==========================================
   HERO / BANNER SECTION
   ========================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 5%;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.95) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--color-primary);
  border-radius: 20px;
  color: var(--color-primary);
  font-family: var(--font-family-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 2.5rem;
  color: var(--color-text-main);
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

/* ==========================================
   CONTENT LAYOUTS
   ========================================== */
.section {
  padding: 6rem 5%;
}

.section-alt {
  background-color: var(--bg-abyss);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  align-items: center;
}

/* ==========================================
   CARDS & COMPONENTS
   ========================================== */
.card {
  background-color: var(--bg-surface);
  background-image: linear-gradient(135deg, rgba(15, 28, 63, 0.5), rgba(7, 15, 34, 0.5));
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-neon);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card-meta {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
}

.card-link:hover {
  color: #fff;
}

/* Visual Feature Split Frame */
.split-frame {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.split-img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.split-frame:hover .split-img {
  transform: scale(1.03);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-sdi {
  background-color: #0f1c3f;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.badge-tdi {
  background-color: #3f1010;
  color: #ff5252;
  border: 1px solid #ff5252;
}

/* ==========================================
   FORMS
   ========================================== */
.contact-form {
  background-color: var(--bg-surface);
  background-image: linear-gradient(135deg, rgba(15, 28, 63, 0.6), rgba(7, 15, 34, 0.6));
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-family-display);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
}

.form-control {
  background-color: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: #fff;
  font-family: var(--font-family-sans);
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background-color: var(--bg-deep);
  border-top: 1px solid var(--border-light);
  padding: 5rem 5% 2.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-description {
  max-width: 400px;
  margin-bottom: 1.5rem;
}

.footer-badges {
  display: flex;
  gap: 1rem;
}

.footer-section-title {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: var(--header-height-small);
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height-small);
    left: 0;
    right: 0;
    height: 0;
    background: rgba(7, 15, 34, 0.98);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 0px solid var(--border-light);
  }
  
  .nav-menu.open {
    height: calc(100vh - var(--header-height-small));
    border-bottom: 1px solid var(--border-light);
  }
  
  .nav-list {
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }

  .nav-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
}
