/* ============================================
   MAA JANAKI ENGINEERING - DESIGN SYSTEM
   Industrial-Chic | Steel Grey | Safety Orange
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Palette — Light theme from logo */
  --charcoal: #f5f5f7;
  --charcoal-deep: #eaeaef;
  --steel-grey: #ffffff;
  --steel-light: #d5d5de;
  --steel-muted: #6b6b80;
  --silver: #4a4a5a;
  --off-white: #f8f8fb;
  --white: #1a1a2e;

  /* Accent — Copper/Bronze from logo */
  --orange: #b5651d;
  --orange-hover: #cd7a2e;
  --orange-glow: rgba(181, 101, 29, 0.2);
  --orange-subtle: rgba(181, 101, 29, 0.08);

  /* Secondary — Steel Blue from logo */
  --blue: #3a6ea5;
  --blue-subtle: rgba(58, 110, 165, 0.08);

  /* Functional */
  --success: #2ecc71;
  --border: rgba(0, 0, 0, 0.07);
  --glass: rgba(255, 255, 255, 0.9);
  --glass-light: rgba(255, 255, 255, 0.7);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-orange: 0 8px 32px rgba(181, 101, 29, 0.2);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-pad: clamp(60px, 10vw, 120px);
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--charcoal-deep);
  color: var(--silver);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--white); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.section-title { margin-bottom: 16px; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--steel-muted);
  max-width: 580px;
  line-height: 1.8;
}

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(181, 101, 29, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--steel-light);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--steel-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--silver);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--charcoal-deep) 0%, rgba(234,234,239,0.7) 50%, var(--charcoal-deep) 100%);
  z-index: 1;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181,101,29,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181,101,29,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
}
.hero-glow-1 { background: var(--orange); top: -200px; right: -100px; }
.hero-glow-2 { background: var(--orange); bottom: -200px; left: -100px; opacity: 0.08; }

.hero .container { position: relative; z-index: 2; }

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text { max-width: 580px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--orange-subtle);
  border: 1px solid rgba(255,107,43,0.15);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--orange); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--steel-muted);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat-value span { color: var(--orange); }
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--steel-muted);
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--charcoal-deep) 0%, transparent 40%);
}

.hero-floating-card {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.hero-floating-card.card-1 { bottom: 60px; left: -40px; }
.hero-floating-card.card-2 { top: 60px; right: -30px; animation-delay: -3s; }

.floating-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-icon.orange { background: var(--orange-subtle); color: var(--orange); }
.floating-icon.green { background: rgba(46,204,113,0.1); color: var(--success); }

.floating-text { font-size: 0.8rem; font-weight: 600; color: var(--white); }
.floating-text span { display: block; font-size: 0.7rem; font-weight: 400; color: var(--steel-muted); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ SERVICES ============ */
.services {
  padding: var(--section-pad) 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--steel-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,107,43,0.2);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--orange);
  transition: all 0.3s;
}
.service-card:hover .service-icon {
  background: var(--orange);
  color: #fff;
}

.service-card h3 { margin-bottom: 14px; }

.service-card p {
  font-size: 0.92rem;
  color: var(--steel-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--silver);
}
.service-features li svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ============ ADVANTAGE / ABOUT ============ */
.advantage {
  padding: var(--section-pad) 0;
  position: relative;
  background: linear-gradient(180deg, var(--charcoal-deep) 0%, var(--charcoal) 100%);
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.advantage-content { max-width: 520px; }

.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;
}

.advantage-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.advantage-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.advantage-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.advantage-item p { font-size: 0.9rem; color: var(--steel-muted); line-height: 1.7; }

.advantage-visual {
  position: relative;
}

.advantage-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
}
.advantage-image img { width: 100%; height: 100%; object-fit: cover; }

.advantage-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--orange);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-orange);
}
.advantage-badge .badge-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.advantage-badge .badge-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.9;
}

.corporate-note {
  margin-top: 48px;
  padding: 24px;
  background: var(--glass-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}
.corporate-note svg { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; }
.corporate-note p { font-size: 0.88rem; color: var(--silver); }
.corporate-note strong { color: var(--white); }

/* ============ CONTACT ============ */
.contact {
  padding: var(--section-pad) 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--steel-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.contact-card:hover {
  border-color: rgba(255,107,43,0.2);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.contact-card-text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.contact-card-text p {
  font-size: 0.88rem;
  color: var(--steel-muted);
}
.contact-card-text a {
  color: var(--silver);
  transition: color 0.3s;
}
.contact-card-text a:hover { color: var(--orange); }

.contact-form-wrapper {
  background: var(--steel-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  font-size: 0.9rem;
  color: var(--steel-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--silver);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: var(--off-white); color: var(--white); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .btn { width: 100%; justify-content: center; padding: 16px; }

/* ============ FOOTER ============ */
.footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: #1a1a2e;
  color: #b8b8cc;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer .nav-logo-text { color: #f5f5fa; }
.footer .nav-logo-text span { color: #8888a0; }
.footer-brand p {
  font-size: 0.88rem;
  color: #8888a0;
  max-width: 320px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f5f5fa;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.88rem;
  color: #8888a0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: #6b6b80;
}

.footer-seo {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-seo span { opacity: 0.6; }

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: all 0.3s;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MOBILE NAV OVERLAY ============ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--orange); }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { max-width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-stats { width: 100%; justify-content: center; }
  .hero-visual { width: 100%; max-width: 500px; margin: 0 auto; }
  .hero-floating-card.card-1 { left: -10px; bottom: 20px; }
  .hero-floating-card.card-2 { right: -10px; top: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .advantage-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 0 60px; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: space-around; gap: 24px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-floating-card { padding: 10px 14px; gap: 8px; }
  .floating-icon { width: 32px; height: 32px; border-radius: 8px; }
  .floating-icon svg { width: 16px; height: 16px; }
  .floating-text { font-size: 0.75rem; }
  .floating-text span { font-size: 0.65rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .advantage-badge { position: relative; bottom: auto; left: auto; margin-top: 16px; display: inline-block; }
}
