/* 
    Raibex Trading 
    Design System & Styles
*/

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

:root {
  /* Premium, Visible Colors */
  --primary-blue: #0A58CA;
  --primary-light: #3E8BFF;
  --accent-blue: #00D2FF;
  --accent-light: #E0F7FA;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-800: #212529;
  --gray-900: #0D1117;

  /* High-Luminosity Gradients */
  --gradient-blue: linear-gradient(135deg, #0A58CA 0%, #3182CE 100%);
  --gradient-premium: linear-gradient(135deg, #004E92 0%, #000428 100%);
  --gradient-text: linear-gradient(135deg, #0A58CA 30%, #3E8BFF 100%);

  /* Typography - Using Google Sans style fallback */
  --font-main: "Product Sans", "Google Sans", "Inter", sans-serif;
  
  /* Spacing */
  --container-width: 1400px; /* Wider for full cinematic feel */
  --section-padding: 140px 0;

  /* Night-Visible Effects */
  --glass-navbar: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-premium: 0 25px 60px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.hero-white {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Typography Utilities */
h1,
h2,
h3,
h4 {
  color: var(--gray-900);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center {
  text-align: center;
}

/* Alignment & Layout Refinement */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 90%; /* Matches navbar width for perfect alignment */
}

.section-padding {
  padding: var(--section-padding);
}

/* Hero Modernization */
.hero-content {
  color: var(--white);
  max-width: var(--container-width); /* Match global container scale */
  position: relative;
  z-index: 2;
  text-align: left;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 30px;
  letter-spacing: -3px;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 50px;
  line-height: 1.7;
  opacity: 1;
  max-width: 750px; /* Allow it to breathe but keep it left-aligned */
  text-align: left;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-blue);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary-blue);
  transform: translateY(-3px);
}

/* Navbar Enhancements */
.navbar {
    position: fixed;
    top: 30px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through outside the inner bar */
}

.navbar .nav-container {
    width: 95%; /* Slightly wider for "very left/right" stretch */
    max-width: var(--container-width);
    background: rgba(255, 255, 255, 0.15); /* Less white, more transparent */
    backdrop-filter: blur(25px); /* Balanced blur for better transparency feel */
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0 25px; /* Minimized padding */
    height: 70px; /* Reduced height */
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar.scrolled {
    top: 0;
}

.navbar.scrolled .nav-container {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 0 60px;
    height: 65px; /* Even smaller when scrolled */
    background: rgba(255, 255, 255, 0.7); /* Professional semi-transparency */
    backdrop-filter: blur(20px);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.nav-center {
  flex: 2;
  display: flex;
  justify-content: center;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0; /* Clear gap to avoid any offset from hidden elements */
  text-align: right;
}

.nav-toggle {
  display: none; /* Hide by default on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar.scrolled .nav-toggle span {
  background-color: var(--gray-900);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav-cta.desktop-cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 24px; /* Reduced vertical padding */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-right: 0;
}

/* Mobile Navigation Side Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Dark semi-transparent backdrop */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  position: absolute;
  top: 0;
  right: -75%; /* Hidden off-screen to the right */
  width: 75%; /* Covers ~70-75% of the page */
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-nav-overlay.active .overlay-content {
  right: 0; /* Slides into view */
}

.overlay-header {
  display: flex;
  justify-content: flex-end; /* Align close button to the right */
  align-items: center;
  margin-bottom: 20px;
}

.overlay-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-900);
  cursor: pointer;
  padding: 10px;
}

.overlay-links {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Tightened gap */
  margin: 20px 0;
}

.overlay-link {
  font-size: 1.3rem; /* Minimized font size */
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
}

.overlay-cta {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
  margin-top: 15px;
  padding: 12px 0;
}

.overlay-footer {
  margin-top: auto; /* Push to bottom */
  border-top: 1px solid var(--gray-100);
  padding-top: 25px;
}

.overlay-footer p {
  font-weight: 700;
  margin-bottom: 15px;
}

.overlay-social {
  display: flex;
  gap: 20px;
}

.overlay-social a {
  font-size: 1.2rem;
  color: var(--gray-600);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 45px; /* Perfect height for the 70px/65px navbar */
  width: auto;
  object-fit: contain;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.logo-dark {
  display: none;
}

.navbar.scrolled .logo-light {
  display: none;
}

.navbar.scrolled .logo-dark {
  display: block;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--white); /* White in initial state */
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.navbar.scrolled .nav-link {
  color: var(--gray-800); /* Dark when scrolled */
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gray-900);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.8) 0%,
    rgba(17, 24, 39, 0.4) 100%
  );
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.8rem;
  opacity: 0.7;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

/* About Section: Layered Insight Redesign */
.about {
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.about-layered-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-backdrop {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 15rem;
  font-weight: 900;
  color: rgba(10, 88, 202, 0.03);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

.about-visuals {
  position: relative;
}

.image-stack {
  position: relative;
  height: 550px;
}

.img-main {
  width: 85%;
  height: 500px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  position: relative;
  z-index: 2;
}

.img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 300px;
  border-radius: 40px;
  overflow: hidden;
  border: 10px solid var(--white);
  box-shadow: var(--shadow-premium);
  z-index: 3;
}

.img-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-card {
  position: absolute;
  top: 40px;
  right: -20px;
  background: var(--white);
  padding: 30px;
  border-radius: 25px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.exp-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.exp-text {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
}

.about-body {
  position: relative;
}

.expertise-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 40px;
}

.expertise-node {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: 25px;
  border: 1px solid var(--gray-100);
  transition: all 0.4s ease;
}

.expertise-node:hover {
  transform: translateX(10px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-soft);
}

.node-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  color: var(--primary-blue);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.node-info h4 {
  font-size: 1.15rem;
  margin-bottom: 5px;
  color: var(--gray-900);
}

.node-info p {
  font-size: 0.95rem;
  margin-bottom: 0;
  opacity: 0.7;
}

/* Services Section */
.services {
  padding-top: 70px; /* Reduced from 140px to tighten gap */
}

.section-header {
  margin-bottom: 60px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-800);
  max-width: 600px;
  margin: 10px auto 0;
}

.category-block {
  margin-top: 100px; /* Enhanced breathing room between blocks */
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 6px solid var(--primary-blue);
  letter-spacing: -0.5px;
}

/* Services & Cards Refinement */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--white);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--gray-100);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-premium);
  border-color: var(--accent-blue);
}

.card-img {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover .card-img img {
  transform: scale(1.1);
}

.card-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-icon {
  font-size: 2.2rem;
  background: var(--accent-light);
  color: var(--primary-blue);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.service-card:hover .card-icon {
  background: var(--primary-blue);
  color: var(--white);
  transform: rotate(10deg);
}

.card-content h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--gray-900);
}

.placeholder-gradient {
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-gradient i {
  font-size: 3rem;
  color: var(--white);
}

.coffee-grad {
  background: linear-gradient(135deg, #6f4e37 0%, #a67b5b 100%);
}
.soya-grad {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
}
.beans-grad {
  background: linear-gradient(135deg, #f5f5f5 0%, #dcdcdc 100%);
}
.beans-grad i {
  color: #555;
}
.chickpea-grad {
  background: linear-gradient(135deg, #c2b280 0%, #e1c16e 100%);
}

.export-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Cinematic Banner */
.cta-banner {
  padding: 120px 0; /* Substantial padding for more upper/lower breathing room */
  position: relative;
  background: url('assets/about-us.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(10, 88, 202, 0.9) 0%,
    rgba(10, 88, 202, 0.4) 100%
  );
}

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

.banner-content {
  color: var(--white);
  max-width: 800px;
}

.banner-title {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 20px;
}

.banner-text {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.banner-stats {
  display: flex;
  gap: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
}

/* Mission & Strategy: Staggered Layout */
.staggered-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 100px;
  position: relative;
}

.staggered-header {
  position: sticky;
  top: 150px;
  height: fit-content;
}

.header-pretitle {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.vertical-indicator {
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, var(--primary-blue), transparent);
  margin-top: 40px;
  position: relative;
}

.vertical-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  width: 10px;
  height: 10px;
  background: var(--primary-blue);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-blue);
}

.staggered-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.staggered-card {
  background: var(--white);
  padding: 60px;
  border-radius: 40px;
  position: relative;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 40px;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--gray-100);
}

.staggered-card:nth-child(even) {
  margin-left: 60px;
}

.staggered-card:hover {
  transform: translateX(15px) scale(1.02);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-blue);
}

.card-number {
  position: absolute;
  top: -30px;
  right: 40px;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(10, 88, 202, 0.05);
  line-height: 1;
  pointer-events: none;
  transition: all 0.6s ease;
}

.staggered-card:hover .card-number {
  color: rgba(10, 88, 202, 0.1);
  transform: translateY(-10px);
}

.card-icon-box {
  width: 80px;
  height: 80px;
  background: var(--accent-light);
  color: var(--primary-blue);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.card-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.card-text p {
  font-size: 1.1rem;
  color: var(--gray-800);
  line-height: 1.7;
  max-width: 600px;
}

/* Core Values: Central Hub Layout */
.values-hub-container {
  margin-top: 180px;
}

.hub-wrapper {
  position: relative;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
}

.hub-center {
  width: 280px; /* Doubled from 140px */
  height: 280px; /* Doubled from 140px */
  position: relative;
  z-index: 5;
}

.hub-logo {
  width: 100%;
  height: 100%;
  padding: 10px; /* Internal padding for the symbol */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Removed blue circular styling as per user request */
}

.hub-symbol {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hub-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed var(--primary-blue);
  border-radius: 50%;
  opacity: 0.2;
}

.ring-1 { width: 450px; height: 450px; animation: rotate 20s linear infinite; }
.ring-2 { width: 650px; height: 650px; animation: rotate 30s linear reverse infinite; }

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.value-orbit {
  position: absolute;
  width: 320px;
}

.value-node {
  background: var(--white);
  padding: 35px;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-100);
  transition: all 0.4s ease;
  text-align: left;
}

.value-node:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary-blue);
}

.value-node i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.value-node h4 { margin-bottom: 10px; font-size: 1.25rem; }
.value-node p { font-size: 0.95rem; margin-bottom: 0; opacity: 0.8; }

/* Positioning Nodes around Hub */
.orbit-1 { top: 10%; left: 5%; }
.orbit-2 { top: 10%; right: 5%; }
.orbit-3 { bottom: 10%; left: 5%; }
.orbit-4 { bottom: 10%; right: 5%; }

/* Modern Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-200);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(10, 88, 202, 0.1), transparent);
  pointer-events: none;
}

.footer-top {
  padding: 100px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  align-items: start;
}

.footer-info, .footer-links, .footer-contact {
  text-align: left; /* All content left aligned as per user request */
}

.footer-links h4::after, .footer-contact h4::after {
  left: 0;
  right: auto;
  transform: none;
}

.contact-details li {
  justify-content: flex-start;
}

.footer-info .logo-img {
  height: 55px; /* Slightly larger for footer prominence */
  margin-bottom: 30px;
}

.footer h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 30px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  width: 30px;
  height: 2px;
  background: var(--primary-blue);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--gray-200);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
}

.footer-links a:hover {
  color: var(--white);
  opacity: 0.8;
}

.footer-email, .contact-link {
  color: var(--white) !important;
  text-decoration: none !important;
}

.contact-details li {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-details i, 
.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(48%) sepia(97%) show(215%) saturate(2469%) hue-rotate(201deg) brightness(96%) contrast(98%); /* Approximation of primary blue/light if needed, or just let them be */
  /* Remove filter if SVG is already the right color. Let's use simpler styling first */
}

.contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
  background: var(--primary-blue);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Turns dark SVG to white */
  transition: all 0.3s ease;
}

.footer-bottom {
  padding: 40px 0;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.6;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.2s;
}
.reveal:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transition: all 1s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

.scroll-reveal.left {
  transform: translateX(-50px);
}
.scroll-reveal.right {
  transform: translateX(50px);
}
.scroll-reveal.top {
  transform: translateY(-50px);
}
.scroll-reveal.bottom {
  transform: translateY(50px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .navbar .nav-container { 
    width: 95%; 
    max-width: 100%;
    position: relative;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .hero-title { font-size: 4rem; }
  .staggered-layout { gap: 60px; }
  
  /* Prevent horizontal scroll on iPad Pro */
  html, body { overflow-x: hidden; position: relative; width: 100%; }
  .container {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    overflow: visible;
  }
}

/* Tablet / Small Desktop (992px - 1024px) */
@media (max-width: 1024px) {
    .container { padding: 0 40px; width: 100% !important; max-width: 100% !important; }
    .about-layered-wrapper { gap: 50px; width: 100%; margin: 0; }
    .about-backdrop { font-size: 10rem; }
    .image-stack { height: 450px; }
    .staggered-layout { grid-template-columns: 280px 1fr; width: 100%; }
    .hub-wrapper { height: 600px; width: 100%; overflow: hidden; }
    .hub-center { width: 200px; height: 200px; }
    .value-orbit { width: 280px; }
    
    /* Hero CTA Width Fix */
    .hero-cta, .hero-secondary {
      min-width: 200px;
      max-width: 250px;
      justify-content: center;
    }
}

@media (max-width: 992px) {
  .nav-center { display: none; }
  .desktop-cta { display: none; }
  .nav-toggle { display: flex; }
  
  .about-layered-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    .about-visuals { 
      order: 2; 
      margin-top: 60px; 
      width: 100%; 
      display: flex; 
      justify-content: center; 
      position: relative;
      transform: none !important;
    }
    .about-body { 
      order: 1; 
      width: 100%; 
      display: flex; 
      flex-direction: column; 
      align-items: center; 
      text-align: center;
      transform: none !important;
    }
    .expertise-grid { text-align: left; width: 100%; max-width: 500px; margin: 0 auto; }

    .staggered-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
    }
    .staggered-header {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none !important;
    }
    .staggered-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .staggered-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-info { grid-column: span 2; margin-bottom: 20px; }
}

/* Mobile & Small Tablet (768px) */
@media (max-width: 768px) {
    .section-padding { padding: 80px 0; }
    
    .navbar .nav-container {
        width: 92%;
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-toggle { display: flex; }
    .desktop-links { display: none !important; }

    .hero { min-height: 90vh; overflow: hidden; }
    .hero-title { font-size: 3rem; word-break: break-word; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; align-items: flex-start; }
    .hero-cta, .hero-secondary { width: 100%; max-width: 100%; text-align: center; justify-content: center; }

    .about-layered-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .about-backdrop { font-size: 6rem; top: -30px; transform: none; width: 100%; text-align: center; left: 0; right: 0; }
    
    .about-visuals { 
      order: 2; 
      margin-top: 60px; 
      width: 100%; 
      display: flex; 
      justify-content: center; 
      position: relative;
      transform: none !important; 
    }
    .image-stack { height: 320px; width: 280px; margin: 0 auto; position: relative; }
    .img-main { width: 240px; height: 300px; margin: 0 auto; }
    .img-accent { width: 140px; height: 160px; bottom: -20px; right: -5px; }
    .experience-card { top: -30px; right: -5px; padding: 12px; }

    .about-body { 
      order: 1; 
      padding: 0 20px; 
      width: 100%; 
      display: flex; 
      flex-direction: column; 
      align-items: center; 
      text-align: center; 
      transform: none !important;
    }
    .expertise-grid { text-align: left; width: 100%; max-width: 400px; margin: 0 auto; }

    .cta-banner { padding: 80px 0; text-align: center; }
    .banner-content { margin: 0 auto; width: 100%; }
    .banner-stats { justify-content: center; gap: 30px; display: flex; flex-wrap: wrap; }
    .stat-number { font-size: 2rem; }
    .stat-item { align-items: center; }

    .staggered-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        width: 100%;
        padding: 0 20px;
    }

    .staggered-header {
        position: relative;
        top: 0;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none !important;
    }

    .vertical-indicator { display: none; }

    .staggered-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .staggered-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 20px;
        width: 100%;
        transform: none !important;
    }

    .staggered-card:nth-child(even) { margin-left: 0; }
    .card-number { font-size: 5rem; top: -20px; right: 20px; opacity: 0.1; }
    .card-text p { max-width: 100%; margin: 15px auto 0; }
    .card-icon-box { margin-bottom: 20px; }

    .hub-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 40px;
        width: 100%;
        padding: 0 20px;
        overflow: visible;
    }

    .hub-center { 
      width: 180px; 
      height: 180px; 
      margin: 0 auto 40px;
      display: flex;
    }
    
    .hub-logo { padding: 5px; }
    .hub-ring { display: none; }

    .value-orbit { 
      position: relative; 
      width: 100%; 
      top: auto !important; 
      bottom: auto !important; 
      left: auto !important; 
      right: auto !important; 
      transform: none !important;
    }
    
    .value-node { text-align: center; padding: 25px; width: 100%; }
    .value-node i { margin-bottom: 10px; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-info { text-align: left; grid-row: 1; }
    .footer-info .logo { justify-content: flex-start; }
    .social-links { justify-content: flex-start; }
    .footer-links { text-align: left; grid-row: 2; }
    .footer-contact { text-align: left; grid-row: 3; width: 100%; }
    .footer-links h4::after, .footer-contact h4::after { left: 0; transform: none; }
    .contact-details li { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .about-backdrop { font-size: 4rem; }
  .staggered-card { padding: 30px 15px; }
  .card-icon-box { width: 60px; height: 60px; font-size: 1.5rem; }
  
  /* Deep fix for A71 and smaller */
  .container { padding: 0 15px; }
  .navbar .nav-container { width: 92%; }
  
  .banner-stats { flex-direction: column; gap: 20px; }
}
