/* ==========================================================================
   CSS Variables & Theme Setup (Digital Growth)
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-main: #f3f4f6;
  --bg-alt: #ffffff;
  --bg-dark: #0f172a; /* Dark background for header/footer to contrast white logo */
  --bg-card: #ffffff;
  --white: #ffffff;

  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-light: #f9fafb;

  --grad-start: #10b981;
  --grad-mid: #34d399;
  --grad-end: #06b6d4;
  --highlight: #2563eb;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Typography */
  --font-primary: "Poppins", sans-serif;
  --font-heading: "Chakra Petch", sans-serif;

  /* Spacing & Layout */
  --container-width: 1280px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 8rem;

  /* Borders & Shadows */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.4);

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-main);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--trans-fast);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--grad-start), var(--grad-end));
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section-light {
  background-color: var(--bg-alt);
}
.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}
.section-dark h2,
.section-dark p {
  color: var(--text-main);
}

.text-center {
  text-align: center;
}
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--grad-start),
    var(--grad-mid),
    var(--grad-end)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--highlight);
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--trans-bounce);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--grad-end), var(--grad-start));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--trans-normal);
}

.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
}
.section-dark .btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-main);
  color: var(--bg-main);
}
.section-dark .btn-secondary:hover {
  background: var(--text-light);
  color: var(--bg-dark);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
@keyframes ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   Universal Header (Strictly Consistent)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-dark); /* Dark to contrast logo */
  box-shadow: var(--shadow-md);
  z-index: 1000;
  transition: all var(--trans-normal);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform var(--trans-bounce);
}
.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transition: width var(--trans-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--grad-start);
}

.nav-close,
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Hero Section (Index)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-main) 0%, #e0e7ff 100%);
}

.hero-bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  filter: blur(60px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--grad-start);
  top: -10%;
  left: -10%;
}
.shape-2 {
  width: 500px;
  height: 500px;
  background: var(--grad-end);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--highlight);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  animation: slideDown 0.8s ease-out forwards;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  animation: slideUp 0.8s 0.2s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  animation: slideUp 0.8s 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: slideUp 0.8s 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* ==========================================================================
   Marquee / Client Logos
   ========================================================================== */
.client-marquee {
  background: var(--white);
  padding: 2rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.marquee-content {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}
.marquee-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: 700;
  margin: 0 3rem;
  opacity: 0.5;
  transition: opacity var(--trans-fast);
}
.marquee-item:hover {
  opacity: 1;
  color: var(--highlight);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   About / Stats Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
}
.about-img-box {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  padding: 10px;
  border-radius: var(--radius-lg);
  transform: rotate(-3deg);
  transition: transform var(--trans-normal);
}
.about-img-box:hover {
  transform: rotate(0deg);
}
.about-img-inner {
  background: var(--bg-dark);
  height: 400px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  padding: 2rem;
}
.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.stat-box {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--grad-start);
}
.stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-main);
  display: block;
}
.stat-text {
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Services Section (3D Tilt Cards)
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}
.service-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition:
    transform 0.1s ease,
    box-shadow var(--trans-normal);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans-normal);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  box-shadow: var(--shadow-xl);
  z-index: 2;
}
.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--grad-start);
  font-size: 1.8rem;
  transform: translateZ(30px); /* 3D effect */
}
.service-card h3 {
  transform: translateZ(20px);
}
.service-card p {
  transform: translateZ(10px);
  font-size: 0.95rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--highlight);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 1rem;
  transform: translateZ(20px);
}
.service-link i {
  transition: transform var(--trans-fast);
}
.service-link:hover i {
  transform: translateX(5px);
}

/* ==========================================================================
   Our Tech / Process (Timeline)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--grad-start), var(--grad-end));
  border-radius: var(--radius-full);
}
.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}
.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 90%;
  position: relative;
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2rem;
  text-align: right;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2rem;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  right: -28px;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 4px solid var(--grad-end);
  border-radius: 50%;
  z-index: 2;
}
.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -28px;
}

/* ==========================================================================
   Industry Specific (Tabs)
   ========================================================================== */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--text-main);
  color: var(--white);
  border-color: var(--text-main);
}
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}
.tab-content.active {
  display: block;
}
.industry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Interactive ROI Calculator
   ========================================================================== */
.calc-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 3fr 2fr;
}
.calc-inputs {
  padding: 3rem;
}
.calc-results {
  background: linear-gradient(135deg, var(--bg-dark), #1e293b);
  padding: 3rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.form-group input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: var(--grad-start);
}
.range-val {
  font-weight: 700;
  color: var(--highlight);
  float: right;
}
.result-box {
  margin-bottom: 2rem;
}
.result-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.result-value {
  font-size: 3rem;
  font-family: var(--font-heading);
  color: var(--grad-mid);
  font-weight: 700;
  line-height: 1;
}

/* ==========================================================================
   Sample Campaign Reports
   ========================================================================== */
.report-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.report-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}
.fake-chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 2rem;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--grad-start), var(--grad-end));
  border-radius: 4px 4px 0 0;
  animation: growBar 1.5s ease-out forwards;
  transform-origin: bottom;
}
@keyframes growBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testi-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
.testi-card::after {
  content: '"';
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 4rem;
  font-family: serif;
  color: rgba(16, 185, 129, 0.1);
  line-height: 1;
}
.testi-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--grad-end);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ==========================================================================
   Contact / Lead Form Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.contact-info {
  background: var(--bg-dark);
  color: var(--white);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--grad-start);
  filter: blur(80px);
  opacity: 0.2;
  bottom: -50px;
  right: -50px;
}
.contact-form-area {
  padding: 4rem;
}
.custom-input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: #f9fafb;
  font-family: var(--font-primary);
  transition: all var(--trans-fast);
  outline: none;
}
.custom-input:focus {
  border-color: var(--highlight);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea.custom-input {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Universal Footer (Strictly Consistent)
   ========================================================================== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 5rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Ensure white logo if image is black */
}

.footer-about-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans-fast);
}
.social-link:hover {
  background: var(--grad-start);
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--white);
}
.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--grad-start);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}
.footer-links ul li a {
  color: var(--text-muted);
  transition: color var(--trans-fast);
}
.footer-links ul li a:hover {
  color: var(--grad-start);
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  align-items: flex-start;
}
.footer-contact ul li svg {
  color: var(--grad-start);
  width: 20px;
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Page Headers (Legal & Contact)
   ========================================================================== */
.page-header {
  padding: 150px 0 60px;
  background: var(--bg-dark);
  text-align: center;
  color: var(--white);
  position: relative;
}
.page-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.breadcrumbs {
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--grad-start);
  margin: 0 5px;
}

/* Legal Content Styles */
.legal-content {
  background: var(--white);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.legal-content h2 {
  margin-top: 2rem;
  color: var(--text-main);
  font-size: 1.5rem;
}
.legal-content p {
  color: var(--text-main);
  line-height: 1.8;
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid,
  .industry-grid,
  .calc-wrapper,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 0;
  }
  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin: 0;
    text-align: left;
    width: 100%;
  }
  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-actions {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: right var(--trans-normal);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .stats-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-info,
  .contact-form-area,
  .legal-content,
  .calc-inputs,
  .calc-results {
    padding: 2rem;
  }
}
