/* =========================
   ROOT VARIABLES (FINAL DESIGN SYSTEM)
========================= */

:root {
  /* 🌿 BRAND COLORS */
  --primary-green: #0f3d2e;
  --primary-green-light: #145c43;

  --accent-blue: #1e3a8a;
  --accent-blue-light: #2563eb;

  /* 🎨 BACKGROUND COLORS */
  --bg-white: #ffffff;
  --bg-light: #f5f7f6;

  /* ✍️ TEXT COLORS */
  --text-primary: #1a1a1a;
  --text-secondary: #5f6b6b;

  /* 🧱 UI COLORS */
  --border-color: #e5e7eb;

  /* 🌑 OPTIONAL DARK (for footer / overlay) */
  --dark: #0b1f1a;

  /* 🔤 TYPOGRAPHY */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;

  /* 📏 FONT SIZES */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-xxl: 2.5rem;
  --fs-hero: 3rem;

  /* 🔠 FONT WEIGHTS */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* 📦 SPACING */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 20px;
  --space-lg: 40px;
  --space-xl: 80px;

  /* 🔲 BORDER RADIUS */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* 🌫 SHADOWS (NEW - PREMIUM LOOK) */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);

  /* ⚡ TRANSITIONS */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.35s ease;
  --transition-slow: 0.6s ease;

  /* 📐 CONTAINER */
  --container-width: 1200px;
}
/* =========================
   BASE TYPOGRAPHY
========================= */

body {
  font-family: var(--font-secondary);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  padding-top: 0px;
}

/* Headings */
h1, h2, h3, h4, h5 {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  line-height: 1.2;
}

/* Sizes */
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-xxl); }
h3 { font-size: var(--fs-xl); }

/* Paragraph */
p {
  font-size: var(--fs-md);
  color: var(--text-secondary);
}
/* =========================
   RESET
========================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth UI feel */
html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}


/* =========================
   FOOTER
========================= */

.footer {
  background: var(--primary-green);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-secondary);
}

/* TOP SECTION */
.footer-top {
  max-width: var(--container-width);
  margin: auto;
  padding: 80px 20px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* COLUMN */
.footer-col h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: var(--fs-lg);
}

.footer-col h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* TEXT */
.footer-col p {
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer-col .label {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
  margin-top: 10px;
}

.footer-col .phone {
  color: #fff;
  margin-top: 5px;
}

/* LINKS */
.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-sm);
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-blue-light);
}

/* BADGE */
.badge {
  background: var(--accent-blue);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
}

/* NEWSLETTER */
.newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
}

.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--accent-blue-light);
  padding: 0 15px;
  cursor: pointer;
}

/* BOTTOM */
.footer-bottom {
  max-width: var(--container-width);
  margin: auto;
  padding: 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SOCIAL */
.socials {
  display: flex;
  gap: 15px;
}

.socials i {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-fast);
}

.socials i:hover {
  background: var(--accent-blue);
}

/* LINKS */
.footer-bottom .links {
  display: flex;
  gap: 10px;
  font-size: var(--fs-sm);
}

/* GO TOP */
.go-top {
  position: fixed;
  right: 20px;
  bottom: 100px;
  background: var(--primary-green);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 10px;
  border-radius: 30px;
  writing-mode: vertical-rl;
  cursor: pointer;
}

#preloader {
  transition: all 0.7s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CUSTOM HERO SHAPE
========================= */

.hero-mask {
  border-radius: 30px;
  position: relative;
}

/* TOP CURVE + BOTTOM LEFT CUT */
.hero-mask::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; /* inherits parent (good - no change needed) */
  border-radius: 30px;
  clip-path: path("M0,40 Q50,0 100,40 V100 H0 Z");
}

/* =========================
   ROTATION SPEED
========================= */

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spinSlow 10s linear infinite;
}

/* =========================
   PRELOADER SPLIT
========================= */

#topHalf,
#bottomHalf {
  transition: transform var(--transition-slow); /* updated */
  will-change: transform;
}



/* =========================== services================================= */
/* PERSPECTIVE */
.perspective {
  perspective: 1200px;
}

/* CARD BASE */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* INNER CARD */
.card-inner {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* LIGHT GLOW EFFECT */
.card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover .card-inner::before {
  opacity: 1;
}

/* HOVER DEPTH */
.service-card:hover .tilt-card {
  box-shadow: var(--shadow-lg);
}

/* ICON */
.icon-box {
  width: 55px;
  height: 55px;
  background: rgba(15, 61, 46, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background: var(--primary-green);
  color: white;
  transform: translateZ(30px) scale(1.1);
}

/* TEXT DEPTH */
.card-inner h3,
.card-inner p {
  transform: translateZ(20px);
}

/* TEXT */
.card-inner h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.card-inner p {
  color: var(--text-secondary);
  line-height: 1.6;
}
/* ==========================industry========================== */
/* CARD WRAPPER */
.industry-card {
  perspective: 1000px;
}

/* MAIN CARD */
.card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* GRADIENT GLOW */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(120deg, transparent, var(--primary-green), transparent);
  opacity: 0;
  transition: 0.4s;
}

/* ICON */
.icon {
  font-size: 34px;
  margin-bottom: 15px;
  color: var(--primary-green);
  transition: 0.3s;
}

/* TEXT */
.card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: 0.3s;
}

/* HOVER EFFECT */
.industry-card:hover .card {
  transform: translateY(-12px) scale(1.05);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ACTIVATE GLOW */
.industry-card:hover .card::before {
  opacity: 1;
}

/* TEXT + ICON CHANGE */
.industry-card:hover .icon,
.industry-card:hover h3 {
  color: white;
  position: relative;
  z-index: 2;
}

/* DARK OVERLAY ON HOVER */
.industry-card:hover .card {
  background: var(--primary-green);
}
.industry-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* BUTTON PULSE */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.quote-btn:hover {
  animation: pulse 1.5s infinite;
}
/* INPUT STYLE */
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  transition: all 0.25s ease;
}



/* FOCUS */
.input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

/* PLACEHOLDER */
.input::placeholder {
  color: var(--text-secondary);
}