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

:root {
  --bg-main: #ffffff;
  --bg-sec: #f8fafc;
  --blue-primary: #0284c7;
  --blue-hover: #0369a1;
  --blue-light: #e0f2fe;
  --green-primary: #10b981;
  --green-hover: #047857;
  --green-light: #d1fae5;
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--green-primary));
  border-radius: 2px;
  margin: 0.75rem auto 0;
  transition: var(--transition);
}

h2:hover::after {
  width: 120px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

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

a:hover {
  color: var(--blue-hover);
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--blue-primary);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 20px -8px rgba(2, 132, 199, 0.4);
}

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

.btn-secondary:hover {
  background-color: var(--blue-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 20px -8px rgba(2, 132, 199, 0.08);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background-color: var(--green-light);
  color: var(--green-hover);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.badge:hover {
  transform: scale(1.05);
}

.badge-blue {
  background-color: var(--blue-light);
  color: var(--blue-hover);
}

/* Scroll Animation Styles */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.8rem 0;
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo span {
  background: linear-gradient(135deg, var(--blue-primary), var(--green-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav a {
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

nav a:hover, nav a.active {
  color: var(--blue-primary);
  transform: translateY(-1px);
}

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

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

.nav-cta {
  margin-left: 1rem;
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 10px;
  transition: all 0.3s linear;
}

/* Home Section (Hero) */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
  background-color: var(--bg-sec);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 2rem;
}

.stat-item h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 0.2rem;
  transition: var(--transition);
}

.stat-item:hover h3 {
  color: var(--green-primary);
  transform: scale(1.05);
}

.stat-item p {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-image-container {
  position: relative;
}

.hero-image-frame {
  width: 100%;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 8px solid #fff;
  position: relative;
  transition: var(--transition);
}

.hero-image-frame:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 45px -10px rgba(0,0,0,0.08);
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

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

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  background-color: var(--blue-light);
  top: -100px;
  right: -100px;
  opacity: 0.5;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background-color: var(--green-light);
  bottom: -50px;
  left: -50px;
  opacity: 0.4;
}

/* Feature Cards (Why Choose Us) - Fixed stats overlapping */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem; /* Replaced negative margin to prevent overlap */
  position: relative;
  z-index: 10;
  margin-bottom: 6rem;
}

.feature-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.08), 0 10px 10px -5px rgba(2, 132, 199, 0.04);
  border-color: rgba(2, 132, 199, 0.3);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

/* Sections General */
section {
  padding: 8rem 0;
}

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

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.08), 0 10px 10px -5px rgba(2, 132, 199, 0.04);
}

.service-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-info {
  padding: 2.5rem 2.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-info h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.service-card:hover .service-info h3 {
  color: var(--blue-primary);
}

.service-info p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.service-link i {
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(6px);
}

/* About Section */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  width: 100%;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 8px solid #fff;
  transition: var(--transition);
}

.about-image-frame:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 30px 45px -10px rgba(0,0,0,0.08);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.about-image-frame:hover img {
  transform: scale(1.03);
}

.about-experience-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: linear-gradient(135deg, var(--blue-primary), var(--green-primary));
  color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.about-image-frame:hover + .about-experience-badge {
  transform: scale(1.05) rotate(-2deg);
}

.about-experience-badge span {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge p {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.about-content h2 {
  text-align: left;
}

.about-content h2::after {
  margin: 0.75rem 0 0;
}

.about-text {
  margin-bottom: 2rem;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.value-item {
  background-color: var(--bg-sec);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--blue-primary);
  transition: var(--transition);
}

.value-item:nth-child(2) {
  border-left-color: var(--green-primary);
}

.value-item:hover {
  transform: translateY(-4px);
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  border-left-width: 6px;
}

.value-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-item p {
  font-size: 0.85rem;
}

/* Contact Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info h2 {
  text-align: left;
}

.contact-info h2::after {
  margin: 0.75rem 0 0;
}

.contact-intro {
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateX(6px);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-item:nth-child(2) .contact-item-icon {
  background-color: var(--green-light);
  color: var(--green-primary);
}

.contact-item:hover .contact-item-icon {
  background-color: var(--blue-primary);
  color: #ffffff;
  transform: scale(1.08);
}

.contact-item:nth-child(2):hover .contact-item-icon {
  background-color: var(--green-primary);
}

.contact-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.contact-item p {
  font-size: 0.95rem;
}

.map-container {
  width: 100%;
  margin-top: 1.5rem;
}

.map-container iframe {
  transition: var(--transition);
}

.map-container iframe:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.contact-form-container {
  background-color: #fff;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.contact-form-container:hover {
  border-color: rgba(2, 132, 199, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: var(--bg-sec);
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue-primary);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Toast Notification (Fixed layout leaking) */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #fff;
  border-left: 4px solid var(--green-primary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.toast i {
  color: var(--green-primary);
  font-size: 1.25rem;
}

.toast p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Footer Section */
footer {
  background-color: #0f172a;
  color: #fff;
  padding: 4rem 0 2rem;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  position: relative;
  transition: var(--transition);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-links a:hover::after {
  width: calc(100% - 4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-wrapper {
    gap: 2rem;
  }
  
  .features-grid {
    margin-top: 2rem;
    gap: 1.5rem;
  }
  
  .services-grid {
    gap: 1.5rem;
  }
  
  .about-wrapper {
    gap: 3rem;
  }
  
  .contact-wrapper {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }
  
  /* Navigation */
  .hamburger {
    display: flex;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem;
    gap: 1.8rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s ease;
    z-index: 1005;
  }
  
  nav.open {
    right: 0;
  }
  
  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
  
  /* Hamburger toggle animation */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  /* Hero */
  .hero-wrapper {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .hero-image-frame {
    height: 380px;
  }
  
  /* Feature cards */
  .features-grid {
    grid-template-columns: 1fr !important;
    margin-top: 3rem;
    gap: 1.5rem;
  }
  
  /* Services */
  .services-grid {
    grid-template-columns: 1fr !important;
    max-width: 450px;
    margin: 0 auto;
  }
  
  /* About */
  .about-wrapper {
    grid-template-columns: 1fr !important;
    gap: 3rem;
  }

  .about-values {
    grid-template-columns: 1fr !important;
  }
  
  .about-image {
    order: 2;
  }
  
  .about-image-frame {
    height: 400px;
  }
  
  .about-experience-badge {
    left: 20px;
  }
  
  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 4rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr !important;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
