/* ================================================
   TeraWave Automation — Off-White & Teal Green Theme
   css/styles.css
   ================================================ */

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

:root {
  /* Colors */
  --bg-primary: #FAF9F6; /* Off-White */
  --bg-secondary: #F3F4F6; /* Slightly deeper tone for contrast */
  --text-main: #2C3539;
  --text-muted: #5C666A;
  --teal: #007D69; /* Teal Green */
  --teal-dark: #00594C;
  --teal-light: #E0F2EF;
  --border: rgba(0, 0, 0, 0.06);
  
  /* Depth Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.04);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(250, 249, 246, 0.85); /* Off-white transparent */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal);
  padding: 0.5rem 1.4rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 6px;
  box-shadow: 0 4px 0 var(--teal-light);
}
.nav-cta:hover { 
  background: var(--teal); 
  color: #fff; 
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--teal-dark);
}
.nav-cta:active {
  transform: translateY(4px);
  box-shadow: none;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative; overflow: hidden;
  background: var(--bg-primary);
}
canvas#wave {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.8;
  pointer-events: none;
}
.hero-tag {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal-light);
  background: var(--teal-light);
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
  display: inline-block;
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-shadow: 2px 4px 10px rgba(0,0,0,0.05); /* Adds depth to text */
}
.hero h1 .line2 { color: var(--teal); }
.hero p {
  font-size: 1.15rem; font-weight: 500;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS (3D EFFECT) ── */
.btn-primary {
  background: var(--teal); 
  color: #ffffff;
  padding: 0.85rem 2.2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer;
  border-radius: 8px;
  
  /* 3D Styling */
  box-shadow: 0 6px 0 var(--teal-dark), 0 10px 20px rgba(0,125,105,0.2);
  transform: translateY(0);
  transition: all 0.15s ease;
}
.btn-primary:hover { 
  background: #008f78; 
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--teal-dark), 0 6px 15px rgba(0,125,105,0.3);
}
.btn-primary:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--teal-dark), 0 2px 5px rgba(0,125,105,0.4);
}

.btn-outline {
  background: var(--bg-primary); 
  color: var(--text-main);
  padding: 0.85rem 2.2rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid var(--border); cursor: pointer;
  border-radius: 8px;
  
  /* 3D Styling */
  box-shadow: 0 6px 0 var(--border), 0 10px 20px rgba(0,0,0,0.05);
  transform: translateY(0);
  transition: all 0.15s ease;
}
.btn-outline:hover { 
  border-color: var(--text-muted);
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--text-muted), 0 6px 15px rgba(0,0,0,0.08);
}
.btn-outline:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--text-muted), 0 2px 5px rgba(0,0,0,0.1);
}

/* ── HERO STATS ── */
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  position: relative; z-index: 2;
  background: var(--bg-secondary);
  padding: 1.5rem 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2.2rem; font-weight: 700; color: var(--teal);
}
.stat-label {
  font-size: 0.75rem; color: var(--text-muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* ── SECTION COMMON ── */
section { padding: 6rem 4rem; }
.section-tag {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.1;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-muted); font-size: 1.05rem;
  line-height: 1.7; max-width: 520px;
}

/* ── SERVICES (DEPTH CARDS) ── */
.services { background: var(--bg-secondary); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}
.service-card {
  background: var(--bg-primary);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover { 
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--teal);
  filter: drop-shadow(0 4px 6px rgba(0, 125, 105, 0.2)); /* 3D icon effect */
}
.service-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  margin-bottom: 0.75rem; letter-spacing: 0.03em;
}
.service-card p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.65;
}

/* ── WHY US ── */
.whyus {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.why-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.why-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.why-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 0.4rem;
  box-shadow: 0 2px 5px rgba(0, 125, 105, 0.3);
}
.why-item h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem;
}
.why-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Reusable Depth Panel */
.depth-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.why-visual {
  display: flex; flex-direction: column; gap: 1.5rem;
}
.metric-row {
  display: flex; justify-content: space-between; align-items: center;
}
.metric-label { color: var(--text-main); font-size: 0.95rem; font-weight: 600;}
.metric-bar-wrap { 
  flex: 1; margin: 0 1.5rem; height: 8px; 
  background: var(--bg-secondary); 
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-inner);
}
.metric-bar { 
  height: 100%; background: var(--teal); 
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15); /* 3D bar effect */
}
.metric-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem; font-weight: 700; color: var(--teal);
  min-width: 40px; text-align: right;
}

/* ── INDUSTRIES ── */
.industries { background: var(--bg-secondary); text-align: center; }
.ind-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.ind-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-muted); letter-spacing: 0.05em;
  transition: all 0.2s;
  cursor: default;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.ind-item:hover { 
  border-color: var(--teal); color: var(--teal);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 125, 105, 0.1); 
}

/* ── CONTACT ── */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-form input,
.contact-form textarea {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  color: var(--text-main);
  padding: 1.1rem 1.2rem;
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  outline: none; width: 100%;
  transition: all 0.2s;
  border-radius: 8px;
  box-shadow: var(--shadow-inner); /* Inner depth for inputs */
}
.contact-form input:focus,
.contact-form textarea:focus { 
  border-color: var(--teal); 
  background: var(--bg-primary); 
  box-shadow: 0 0 0 4px var(--teal-light);
}
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9BA3A5; font-weight: 500; }

.contact-info { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon { 
  color: var(--teal); flex-shrink: 0; margin-top: 2px; 
  filter: drop-shadow(0 2px 3px rgba(0, 125, 105, 0.2));
}
.info-row p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; font-weight: 500;}
.info-row strong { color: var(--text-main); font-size: 1.05rem; display: block; margin-bottom: 0.2rem; }

/* ── FOOTER ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
footer .logo { font-size: 1.2rem; }
footer p { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  .whyus, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-stats { gap: 1.5rem; flex-direction: column; }
  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}
