:root {
  --navy-primary: #1e3a5f;
  --navy-dark: #0f172a;
  --navy-light: #334e68;
  --accent-blue: #2563eb;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #111827;
  overflow-x: hidden;
}

a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
  transition: width 0.3s ease;
}

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

/* Hamburger Menu Animation */
#menu-toggle {
  position: relative;
}

#menu-toggle span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

#menu-toggle:hover span {
  background: var(--accent-blue);
}

#menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-bg {
  background-image: url('https://freerangestock.com/sample/103139/aerial-view-of-a-city-with-tall-buildings.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 95, 0.75) 50%, rgba(37, 99, 235, 0.65) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: white;
  color: var(--navy-dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.4);
  background: #f8fafc;
}

.btn-secondary {
  position: relative;
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 500;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  position: relative;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30, 58, 95, 0.2), transparent);
  margin: 0;
}

/* Approach Section */
.approach-section {
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

#approach {
  scroll-margin-top: 70px;
}

@media (min-width: 768px) {
  #approach {
    scroll-margin-top: 90px;
  }
}

.approach-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.section-label {
  letter-spacing: 0.15em;
  color: var(--navy-light);
  font-weight: 600;
}

.section-title {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.25em;
  line-height: 1.1;
}

/* Project Cards */
.project-card {
  position: relative;
  background: white;
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card-title {
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-tag {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(30, 58, 95, 0.05) 100%);
  border: 1px solid rgba(30, 58, 95, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--navy-light);
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Products Section */
.products-section {
  background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

#products {
  scroll-margin-top: 120px;
}

@media (min-width: 768px) {
  #products {
    scroll-margin-top: 140px;
  }
}

.products-title {
  position: relative;
  display: block;
  padding-bottom: 12px;
  margin: 0 auto;
}

.products-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #3b82f6);
  border-radius: 2px;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
  color: white;
}

.footer-link {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu - override Tailwind hidden to use opacity/transform instead of display:none */
#mobile-menu {
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 12px 12px;
  align-items: center;
  display: flex !important;
  flex-direction: column;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0.3s, max-height 0.3s ease-out;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  visibility: hidden;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0s, max-height 0.3s ease-out;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  max-height: 500px;
}

#mobile-menu a {
  text-align: center;
  display: block;
  width: 100%;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Decorative Elements */
.decorative-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -250px;
  right: -250px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--navy-primary);
  bottom: -200px;
  left: -200px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
  .project-card {
    padding: 1.5rem;
  }
}

