/* --- CSS Variables & Resets --- */
:root {
  /* Colors */
  --primary: #0f4c81; /* Deep Corporate Blue */
  --primary-light: #2a6fb3;
  --secondary: #ff6b6b; /* Accent coral/red for contrast */
  --dark: #1e1e2c;
  --light: #f8f9fa;
  --white: #ffffff;
  --text-main: #4a4a5a;
  --text-muted: #888899;
  --border: #e2e8f0;

  /* Typography */
  --font-main: "Inter", sans-serif;

  /* Effects */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

/* --- Section Utilities --- */
.section {
  padding: 6rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
}

.section-title span {
  color: var(--primary);
}

.section-title .underline {
  height: 4px;
  width: 60px;
  background: var(--secondary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.subtitle {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.navbar.scrolled .logo,
.navbar:not(.scrolled) .logo {
  color: var(--primary); /* Maintain blue logo */
}

.logo span {
  color: var(--secondary);
}

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

.nav-links li a {
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding-bottom: 5px;
}

.navbar:not(.scrolled) .nav-links li a {
  color: var(
    --dark
  ); /* Kept dark for contrast if hero bg is light, but hero bg will be gradient */
}

/* Let's make hero text white, so nav links should be white when not scrolled if top banner is dark */
.navbar:not(.scrolled) .nav-links li a,
.navbar:not(.scrolled) .logo {
  color: var(--white);
}
.navbar:not(.scrolled) .logo span {
  color: var(--secondary);
}
.navbar:not(.scrolled) .hamburger i {
  color: var(--white);
}

.navbar.scrolled .nav-links li a {
  color: var(--dark);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  overflow: hidden;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1504384308090-c894fdcc538d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80")
    center/cover;
  opacity: 0.2;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Abstract Shapes */
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(to right, var(--secondary), #ff9999);
  filter: blur(80px);
  z-index: 1;
  opacity: 0.5;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
  background: linear-gradient(to right, var(--primary-light), #4db8ff);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* --- About Section --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-box {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-bottom: 4px solid var(--secondary);
}

.stat-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.stat-box:hover .icon-wrapper {
  background: var(--primary);
  color: var(--white);
}

.stat-box h4 {
  margin-bottom: 0.5rem;
}

.stat-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.service-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover li,
.service-card:hover .service-icon {
  color: var(--white);
}

.service-card:hover .service-list i {
  color: var(--white);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

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

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  transition: var(--transition);
}

.service-list i {
  color: var(--secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}

/* --- Contact Section --- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.info-card {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.info-card h4 {
  color: var(--white);
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.info-card p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.contact-form {
  padding: 4rem 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--light);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  color: var(--text-main);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.1);
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

/* --- Footer --- */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 0 0;
}

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

.footer-logo {
  padding-right: 2rem;
}

.footer-logo a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  color: var(--secondary);
}

.footer-logo p {
  margin-top: 1.5rem;
  opacity: 0.7;
  line-height: 1.8;
}

.footer-links h3,
.footer-social h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}

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

.footer-links ul li a {
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links ul li a i {
  font-size: 0.8rem;
  color: var(--secondary);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  opacity: 1;
  color: var(--secondary);
}

.footer-links ul li a:hover i {
  transform: translateX(5px);
}

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

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-5px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

.legal-info {
  display: flex;
  gap: 2rem;
}

/* --- Animations --- */
.animate-hidden {
  opacity: 0;
  visibility: hidden;
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.fade-up {
  animation: fadeUp 1s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

.zoom-in {
  animation: zoomIn 0.8s ease forwards;
}

.fade-right {
  animation: fadeRight 1s ease forwards;
}

.fade-left {
  animation: fadeLeft 1s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    visibility: visible;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    visibility: visible;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
    visibility: visible;
  }
  to {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
    visibility: visible;
  }
  to {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
    visibility: visible;
  }
  to {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
    visibility: visible;
  }
  to {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
    visibility: visible;
  }
  to {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
  }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
    visibility: hidden;
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    display: block;
    padding: 1rem;
    color: var(--dark) !important;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bottom-flex {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
