@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-color: #f8fafc;
  --bg-color-light: #ffffff;
  --primary: #0EA5E9;
  --primary-hover: #0284c7;
  --secondary: #06b6d4; /* Cyan accent */
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.9);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
  
  /* Spacing & Layout */
  --section-padding: 100px 0;
  --container-width: 1280px;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.text-center { text-align: center; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity var(--transition-fast);
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(14, 165, 233, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all var(--transition-fast);
}

.glass-card:hover {
  background: var(--glass-hover);
  transform: translateY(-10px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Cursor Glow */
.cursor-glow {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease-out, top 0.1s ease-out;
  display: none;
}

/* Loading Screen */
#loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-fast);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

/* Floating Particles - simple CSS implementation */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-1000px) translateX(100px); opacity: 0; }
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-icon img {
  width: 30px;
  height: 30px;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card a.learn-more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-card a.learn-more:hover {
  gap: 10px;
}

/* Split Section (About / Journey) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.split-image:hover img {
  transform: scale(1.05);
}

.split-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: inset 0 0 50px rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* Features List */
.features-list {
  margin-top: 2rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.features-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  background: rgba(14, 165, 233, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
/* .footer {
  background: var(--bg-color-light);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
} */


.footer {
    /* min-height: 100vh; */
    background: #030B1F;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 5rem 0 2rem;
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  margin-top: 1.5rem;
  color: #AFC4E8;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.active2 {
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Back to Top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 999;
  border: none;
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-hover);
}

/* Responsive */
@media (max-width: 992px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left var(--transition-fast);
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-btns {
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Headers */
.page-header {
  padding: 180px 0 100px;
  background: linear-gradient(to bottom, var(--bg-color-light), var(--bg-color));
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary);
  border: 4px solid var(--bg-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }
.timeline-content {
  padding: 20px;
  position: relative;
  border-radius: 15px;
}
@media screen and (max-width: 600px) {
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item::before { left: 60px; border: medium solid white; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; }
  .left::after, .right::after { left: 21px; }
  .right { left: 0%; }
}

/* Logo Slider */
.logo-slider {
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.logo-slider::before, .logo-slider::after {
  background: linear-gradient(to right, var(--bg-color-light) 0%, rgba(255,255,255,0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 200px;
  z-index: 2;
}
.logo-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.logo-slider::before {
  left: 0;
  top: 0;
}
.logo-slide-track {
  animation: scroll 20s linear infinite;
  display: flex;
  width: calc(250px * 8);
}
.logo-slider .slide {
  height: 100px;
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.logo-slider .slide img {
  max-width: 150px;
  max-height: 80px;
  /* filter: grayscale(100%) opacity(0.5); */
  transition: all var(--transition-fast);
}
.logo-slider .slide img:hover {
  filter: grayscale(0%) opacity(1);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 4)); }
}

/* Custom Case Studies Grid & Cards */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.case-study-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 2.5rem 2rem 2rem 2rem !important; /* Override standard glass-card padding */
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(14, 165, 233, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.case-study-card:hover {
    transform: translateY(-12px) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
    box-shadow: 0 30px 60px rgba(14, 165, 233, 0.08) !important;
}

.card-header-meta {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.industry-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.industry-badge.steel {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.industry-badge.sugar {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.industry-badge.plastic {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.client-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.client-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.03);
}

.steel-color {
    color: #ea580c;
    background: rgba(249, 115, 22, 0.05);
}

.sugar-color {
    color: #16a34a;
    background: rgba(34, 197, 94, 0.05);
}

.plastic-color {
    color: #9333ea;
    background: rgba(168, 85, 247, 0.05);
}

.client-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0;
    line-height: 1.3;
}

.project-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.8rem;
    text-transform: capitalize;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-block h5 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.info-block h5 i {
    font-size: 0.95rem;
}

.challenge-icon {
    color: #ef4444;
}

.solution-icon {
    color: var(--primary);
}

.benefit-icon {
    color: #10b981;
}

.info-block p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.info-block .highlight-text {
    font-weight: 500;
    color: var(--text-main);
}

.card-footer-action {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-case-study {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: color 0.3s ease;
}

.btn-case-study i {
    transition: transform 0.3s ease;
}

.case-study-card:hover .btn-case-study {
    color: var(--primary-hover);
}

.case-study-card:hover .btn-case-study i {
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
