/* Google Fonts - DM Sans & Rethink Sans */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,800&family=Rethink+Sans:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  /* Color Palette - Professional Corporate B2B */
  --primary-color: #1A365D; /* Deep corporate blue */
  --secondary-color: #4A5568; /* Slate gray */
  --accent-color: #2196F3; /* Bright tech blue */
  --accent-hover: #1976D2;
  --text-primary: #1A365D;
  --text-secondary: #4A5568;
  --bg-color: #F8FAFC; /* Clean off-white */

  /* Fonts */
  --font-heading: 'DM Sans', sans-serif;
  --font-body: 'Rethink Sans', sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html,
body {
  overflow-x: clip;
  width: 100%;
  position: relative;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  background-color: var(--bg-color);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

p {
  text-align: left;
  font-size: 1.05rem;
  line-height: 2.4;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: #666;
  margin-bottom: 1.5rem;
}

ul {
  list-style: none;
}

/* Premium Corporate Cards */
.premium-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33, 150, 243, 0.5); /* Soft accent border on hover */
  box-shadow: 0 10px 25px rgba(33, 150, 243, 0.15);
}

/* Buttons */
.btn-primary {
  background: var(--accent-color);
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--accent-hover), var(--accent-color));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Typography Utilities */
.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-gradient {
  background: linear-gradient(90deg, var(--text-primary) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.text-accent {
  color: var(--accent-color);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 8px 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  padding: 4px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span:first-of-type {
  color: #fff;
}

.navbar-brand span:last-of-type {
  color: var(--accent-color);
}

.nav-link {
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0;
  padding: 10px 0;
  position: relative;
  display: inline-block;
  width: max-content;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

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

/* Layout Utilities */
.section-padding {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Hero Section Layout */
.hero-section {
  min-height: 100vh;
  /* Safe area insets for modern mobile devices */
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Three.js Canvas Container */
#canvas-container {
  width: 100%;
  min-height: 45vh;
  /* Mobile height */
  position: relative;
}

#hero-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: grab;
}



/* Desktop absolute positioning for full right edge */
@media (min-width: 992px) {
  #canvas-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 55vw;
    z-index: -1;
    min-height: auto;
  }
}

.hero-img {
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--glass-border);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Staggered Entrance Animations */
.hero-anim-1,
.hero-anim-2,
.hero-anim-3,
.hero-anim-4 {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 {
  animation-delay: 0.2s;
}

/* Trolley */
.hero-anim-2 {
  animation-delay: 0.4s;
}

/* Heading */
.hero-anim-3 {
  animation-delay: 0.6s;
}

/* Description */
.hero-anim-4 {
  animation-delay: 0.8s;
}

/* Buttons */

@keyframes fadeUpIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonial Stacked Cards */
.testimonial-stack-container {
  height: 400vh;
  /* Creates scroll space for the animation */
  position: relative;
}

.sticky-stack {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* 3D Card Setup */
.testimo-card {
  transition: transform 0.1s ease-out;
  /* Smooth scrub */
}

/* Floating Animation */
@keyframes continuousFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-anim {
  animation: continuousFloat 4s ease-in-out infinite;
}

/* Footer */
footer {
  background: var(--secondary-color);
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.social-links a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 1px solid var(--glass-border);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

/* Core Values Hover Effect */
.core-value-card {
  cursor: pointer;
}

.core-value-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 107, 0, 0.3) !important;
  box-shadow: 0 15px 40px rgba(255, 107, 0, 0.15) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)) !important;
}

.core-value-card:hover .icon-wrapper {
  background: var(--accent-color) !important;
  transform: rotateY(180deg);
  transition: transform 0.5s ease, background 0.3s ease;
}

.core-value-card:hover .icon-wrapper i {
  color: #fff !important;
}

.offcanvas {
  overscroll-behavior: contain;
}