/* =========================================
   CSS Reset & Base Variables
========================================= */
:root {
  /* Developer Dark Mode Palette */
  --color-bg: #060913;          /* Deep midnight blue for global background */
  --color-surface: #0c1226;     /* Card surface */
  --color-surface-hover: #111a36; 
  --color-border: #1f2a4a;
  
  --color-text-main: #f1f5f9;   /* Crisp white for main text */
  --color-text-muted: #94a3b8;  /* Subtle gray for secondary text */
  
  --color-teal-glow: #0cf1d3;   /* Electric Teal */
  --color-teal-dark: #079c88;
  --color-teal-fade: rgba(12, 241, 211, 0.15);
  
  --color-accent: #3b82f6;      /* Nice blue to compliment teal */

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --wrapper-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .logo {
  font-family: var(--font-display);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--wrapper-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================================
   Typography & Utilities
========================================= */
.text-gradient {
  background: linear-gradient(135deg, var(--color-teal-glow) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-text-main);
}

/* =========================================
   Navigation
========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: var(--wrapper-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-teal-glow);
}

/* =========================================
   Section 1: Hero
========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1rem 2rem;
  overflow: hidden;
  background: url('Images/circuit2.jpg') center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(6, 9, 19, 0.75) 0%, rgba(6, 9, 19, 0.95) 100%);
  z-index: 0;
}

.hero-bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-teal-fade) 0%, rgba(6,9,19,0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

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

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-inline: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-teal-glow);
  color: var(--color-bg);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px -10px var(--color-teal-glow);
  position: relative;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px var(--color-teal-glow);
  background: #23ffea;
}

/* =========================================
   Section 2: The Lab (Cards Grid)
========================================= */
.the-lab {
  padding: 8rem 0;
  background: linear-gradient(to bottom, var(--color-bg), #080c1b);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.lab-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.lab-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-teal-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.lab-card:hover {
  transform: translateY(-8px);
  background: var(--color-surface-hover);
  border-color: rgba(12, 241, 211, 0.3);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}

.lab-card:hover::before {
  transform: scaleX(1);
}

.card-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--color-teal-fade);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-teal-glow);
}

.card-icon {
  width: 28px;
  height: 28px;
}

.lab-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  margin-bottom: 1rem;
}

.lab-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* =========================================
   Section 3: Logistics
========================================= */
.logistics {
  padding: 6rem 0;
}

.logistics-box {
  position: relative;
  background: linear-gradient(135deg, rgba(12,241,211,0.05) 0%, rgba(59,130,246,0.05) 100%);
  border: 1px solid rgba(12, 241, 211, 0.2);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.logistics-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(12,241,211,0.1) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.logistics-content {
  position: relative;
  z-index: 1;
}

.box-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-teal-glow);
}

.highlight-text {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(12, 241, 211, 0.2);
}

.muted-text {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.logistics-details {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* =========================================
   Section 4: About
========================================= */
.about {
  padding: 6rem 0 8rem;
}

.about-container {
  max-width: 800px;
}

.about-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 3rem;
  border-radius: 20px;
}

.about-card p {
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.about-card p:last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

/* =========================================
   Footer
========================================= */
.footer {
  background: #04060d;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left .footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-left .footer-logo span {
  color: var(--color-teal-glow);
}

.location-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-right {
  text-align: right;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--color-text-muted);
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--color-teal-glow);
}

.copyright {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

/* =========================================
   Responsive Adjustments
========================================= */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-right {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .location-text {
    justify-content: center;
  }
  
  .about-card {
    padding: 2rem;
  }
}
