/* --- CSS Reset & Variables --- */
:root {
  --primary: #0A2540;
  --secondary: #1E40AF;
  --accent: #06B6D4;
  --bg: #FFFFFF;
  --bg-section: #F8FAFC;
  --text: #0F172A;
  --muted: #64748B;
  --font-inter: 'Inter', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .logo {
  font-family: var(--font-poppins);
}

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

ul {
  list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-5 { margin-top: 40px; }
.mb-4 { margin-bottom: 24px; }
.relative { position: relative; }
.z-10 { z-index: 10; }
.w-full { width: 100%; }
.bg-section { background-color: var(--bg-section); }
.bg-primary { background-color: var(--primary); color: #fff; }
.text-accent { color: var(--accent); }
.muted-text { color: var(--muted); }

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

/* --- Typography --- */
h1 { font-size: 3.5rem; line-height: 1.2; font-weight: 700; color: #fff; }
h2 { font-size: 2.5rem; line-height: 1.3; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; }

.section-badge {
  display: inline-block;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.gradient-text {
  background: linear-gradient(to right, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-inter);
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.btn-primary:hover {
  background-color: #22d3ee;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
  background-color: #fff;
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.btn-white:hover {
  background-color: #f8fafc;
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-weight: 600;
}
.link-btn:hover { color: var(--accent); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: var(--transition);
}
.header.scrolled {
  padding: 16px 0;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s;
}
.header.scrolled .logo { color: var(--primary); }
.logo span { color: var(--accent); }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.desktop-nav a:not(.btn-nav) {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.9rem;
}
.desktop-nav a:not(.btn-nav):hover { color: var(--accent); }
.header.scrolled .desktop-nav a:not(.btn-nav) { color: var(--text); }
.header.scrolled .desktop-nav a:not(.btn-nav):hover { color: var(--accent); }

.btn-nav {
  padding: 10px 24px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
}
.header.scrolled .btn-nav {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.header.scrolled .btn-nav:hover { background-color: var(--secondary); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.header.scrolled .mobile-menu-btn { color: var(--text); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 100px 24px 24px;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-link {
  font-family: var(--font-poppins);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,37,64,0.8), rgba(10,37,64,0.5), rgba(10,37,64,1));
  z-index: 2;
  mix-blend-multiply: multiply;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.shape-1 {
  top: 25%; left: 25%;
  width: 300px; height: 300px;
  background-color: rgba(6, 182, 212, 0.2);
  animation: float 6s ease-in-out infinite;
}
.shape-2 {
  bottom: 25%; right: 25%;
  width: 400px; height: 400px;
  background-color: rgba(30, 64, 175, 0.3);
  animation: float 8s ease-in-out infinite 1s;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 80px;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 24px auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}
.image-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(to right, rgba(30,64,175,0.2), rgba(6,182,212,0.2));
  border-radius: 30px;
  filter: blur(20px);
  z-index: 0;
}
.about-img {
  position: relative;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  z-index: 1;
}

.experience-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  border: 1px solid #f1f5f9;
}
.icon-wrapper {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-years {
  font-family: var(--font-poppins);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.exp-text {
  font-size: 0.875rem;
  color: var(--muted);
}

.features-list {
  margin: 32px 0;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 500;
}
.features-list i { color: var(--accent); }

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(10,37,64,0.05), rgba(6,182,212,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 64px;
  height: 64px;
  background-color: var(--bg-section);
  color: var(--secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
  position: relative;
}
.service-card:hover .service-icon {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}

.service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  position: relative;
}
.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stats Section --- */
.stats-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  mix-blend-mode: overlay;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-item {
  color: #fff;
}
.stat-number {
  display: inline-block;
  font-family: var(--font-poppins);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-plus {
  font-family: var(--font-poppins);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  color: var(--accent);
  font-weight: 500;
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.portfolio-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.portfolio-item:hover img {
  transform: scale(1.1);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,37,64,0.9), rgba(10,37,64,0.4), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-content {
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-content { transform: translateY(0); }
.portfolio-category {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.portfolio-overlay h3 { color: #fff; margin-bottom: 0; }

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
}
.step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-poppins);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 24px;
}

/* --- CTA Section --- */
.cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--primary), var(--secondary));
}
.cta-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.3;
}
.cta-shape {
  position: absolute;
  top: -50%;
  right: -25%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 60px 40px;
  border-radius: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, 0.8); font-size: 1.125rem; margin-bottom: 32px; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-methods {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-method {
  display: flex;
  gap: 16px;
}
.method-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-section);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method h4 { margin-bottom: 4px; }

.contact-form-wrapper {
  background-color: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
  border: 1px solid #f1f5f9;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-section);
  border: none;
  border-radius: 8px;
  font-family: var(--font-inter);
  outline: none;
  transition: box-shadow 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  box-shadow: 0 0 0 2px var(--accent);
}
.form-group textarea {
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background-color: #051324;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  margin: 24px 0;
  max-width: 300px;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.social-links a:hover {
  background-color: var(--accent);
  color: #fff;
}
.footer-links h4, .footer-newsletter h4 {
  color: #fff;
  margin-bottom: 24px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a:hover { color: var(--accent); }
.newsletter-form {
  display: flex;
  margin-top: 16px;
}
.newsletter-form input {
  padding: 10px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 0 0 8px;
  color: #fff;
  outline: none;
  width: 100%;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  padding: 10px 20px;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: 500;
  cursor: pointer;
}
.newsletter-form button:hover { background-color: #22d3ee; }

.footer-bottom {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a:hover { color: #fff; }

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease-out;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease-out;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.bounce {
  animation: bounce 4s ease-in-out infinite;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-buttons { flex-direction: column; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .experience-card { display: none; } /* Hide on mobile to prevent overflow */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .cta-box { padding: 40px 20px; }
}
