/* Custom Properties */
:root {
  --primary: #1E3A8A;
  /* Deep Blue */
  --primary-hover: #1e40af;
  --secondary: #1F2937;
  /* Dark Gray */
  --bg-color: #FFFFFF;
  --bg-light: #F3F4F6;
  /* Subtle light gray */
  --text-main: #111827;
  --text-muted: #4B5563;
  --accent: #E5E7EB;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* For sticky header */
}

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

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.section-divider {
  height: 4px;
  width: 60px;
  background-color: var(--primary);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.section-divider.center {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

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

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
  height: 80px;
  display: flex;
  align-items: center;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

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

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

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

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

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

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('images/hero.jpeg') center center / cover no-repeat;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.75) 45%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
}

.hero-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

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

.about-image {
  position: relative;
  height: 450px;
  border-radius: 20px;
  background: linear-gradient(45deg, var(--bg-light), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.abstract-shape {
  width: 200px;
  height: 200px;
  background-color: var(--primary);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: morph 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
  position: relative;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-highlights {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.about-highlights li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
}

.about-highlights i {
  color: var(--primary);
  background-color: rgba(30, 58, 138, 0.1);
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 0.875rem;
}

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

.service-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--accent);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: var(--primary);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

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

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  transition: var(--transition);
}

a.contact-method:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.contact-method .icon {
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-method .details h4 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.contact-method .details span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
}

/* Footer Section */
.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding-top: 5rem;
}

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

.footer-logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: #9CA3AF;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer a {
  color: #9CA3AF;
  font-size: 0.95rem;
}

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

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

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

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  padding-left: 0;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* Base Animation Classes */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.service-card[style] {
  transition-delay: var(--delay);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-bg-overlay {
    background: rgba(255, 255, 255, 0.85);
    mask-image: none;
    -webkit-mask-image: none;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .about-image {
    order: -1;
  }

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: left 0.4s ease;
  }

  .header.scrolled .nav {
    top: 70px;
    height: calc(100vh - 70px);
  }

  .nav.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .nav .btn {
    width: calc(100% - 2rem);
    margin: 0 1rem;
  }

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

  .section-title {
    font-size: 1.75rem;
  }
}