@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary: #1C8ACB;
  --secondary: #32B8C9;
  --accent: #A4D32C;
  --accent-yellow: #DFDD02; /* Added from logo */
  --neutral-dark: #2B2B2B;
  
  /* Backgrounds & Text */
  --bg-white: #FFFFFF;
  --bg-light: #F4F7F9;
  --text-dark: #2B2B2B;
  --text-muted: #636A71;
  --text-light: #FFFFFF;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(135deg, #1A1D24 0%, var(--neutral-dark) 100%);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Utils */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--neutral-dark);
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.125rem;}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--text-light);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--text-light);
}

.section-dark p {
  color: #A0AAB2;
}

.section-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 4px 14px 0 rgba(28, 138, 203, 0.39);
}

.btn-primary:hover {
  background-color: #1772A8;
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 138, 203, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: rgba(28, 138, 203, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--neutral-dark);
  box-shadow: 0 4px 14px 0 rgba(164, 211, 44, 0.39);
}

.btn-accent:hover {
  background-color: #8EBA21;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164, 211, 44, 0.4);
}

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

.navbar.scrolled {
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--neutral-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

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

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: var(--transition);
  background-color: var(--neutral-dark);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  mask-image: linear-gradient(to right, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-white) 40%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Cards */
.card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
}

.p-lg {
  padding: 4rem;
}

@media (max-width: 768px) {
  .p-lg {
    padding: 2rem !important;
  }
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 138, 203, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(28, 138, 203, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.card-dark:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* Page Header */
.page-header {
  padding: 10rem 0 5rem 0;
  background: var(--gradient-dark);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.page-header p {
  color: #A0AAB2;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .navbar-brand {
  color: var(--primary);
}

.footer-text {
  color: var(--text-muted);
  font-size: 1rem;
}

.footer-title {
  color: var(--neutral-dark);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Animations (Animate on scroll) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive Utility Orders */
.order-2 { order: 2; }
.order-1 { order: 1; }

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section { padding: 4rem 0; }
  .hamburger { display: block; z-index: 1001; position: relative; }
  
  /* Modern Fullscreen Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 1000;
  }
  .nav-menu.active { 
    opacity: 1; 
    visibility: visible; 
  }
  .nav-link { font-size: 1.5rem; font-weight: 600; }
  
  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(2) { opacity: 0; }
  .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--primary); }
  .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--primary); }
  
  /* Grid & Spacing Fixes */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-2 > div { width: 100%; }
  
  /* Fix Alternating Content/Image Order on Mobile */
  .grid-2 { display: flex; flex-direction: column; }
  .order-2, .order-1 { order: 0 !important; }
  
  .hero { 
      text-align: center; 
      padding-top: 10rem !important; 
      min-height: auto; 
      padding-bottom: 4rem; 
      display: block; /* Remove flex to force padding */
  }
  .hero-bg { 
      opacity: 0.3; 
      width: 100%; 
      mask-image: none; 
      -webkit-mask-image: none; 
      object-fit: cover;
  }
  .hero-overlay { background: rgba(0, 0, 0, 0.65); } /* Darker overlay for text legibility */
  .hero-actions { justify-content: center; flex-direction: column; width: 100%; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  
  .hero-title { color: var(--text-light) !important; font-size: 2.5rem !important; margin-bottom: 1.5rem !important; }
  .hero-subtitle { color: rgba(255,255,255,0.9) !important; font-size: 1.125rem !important; margin-bottom: 2.5rem !important; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-brand .navbar-brand { justify-content: center; width: 100%; }
  .footer-brand img { margin: 0 auto; }
  .footer-text { text-align: center !important; margin: 1rem auto 0 auto !important; width: 100%; } /* Center aligned slogan */
  .footer-bottom { flex-direction: column; gap: 1rem; }
  .social-links { justify-content: center; }
  .footer-link:hover { padding-left: 0; }
  
  /* Typography Scale */
  h1, .hero-title { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
  h3 { font-size: 1.5rem; }
  p { font-size: 1rem; }
}
