:root {
  --primary: #0066cc;
  --secondary: #001f3f;
  --accent: #ffd700;
  --text: #333;
  --light: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

p {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-img {
  width: auto;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover .logo-img {
  transform: scale(1.05) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links li a:hover {
  color: var(--primary);
  background: rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover::after {
  width: 80%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: color 0.3s ease;
}

.nav-toggle:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-button {
  background: var(--accent);
  color: var(--secondary);
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  color: var(--secondary);
  background: #ffe066;
}

/* Sections */
section {
  padding: 6rem 2rem;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* Services Section */
.services {
  background: #f9fafb;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--light);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text);
  line-height: 1.6;
}

/* About Section */
.about {
  background: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.feature {
  text-align: center;
  padding: 2.5rem 2rem;
  background: #f9fafb;
  border-radius: 16px;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  background: var(--light);
}

.feature i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature:hover i {
  transform: scale(1.1);
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature p {
  color: var(--text);
  line-height: 1.6;
}

/* Tech Stack Section */
.tech-stack {
  background: #f9fafb;
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.tech-icons i {
  font-size: 4rem;
  color: var(--primary);
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.tech-icons i:hover {
  transform: scale(1.2) rotate(5deg);
  filter: grayscale(0%);
  color: var(--primary);
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, rgba(0,102,204,0.9) 0%, rgba(0,31,63,0.9) 100%), url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600') center/cover;
  color: var(--light);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.testimonial i {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.testimonial p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.client-info {
  margin-top: 1.5rem;
}

.client-info strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--light);
}

.client-info span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.8);
}

/* Contact Section */
.contact {
  background: var(--light);
}

.contact h2 {
  margin-bottom: 2rem;
}

form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  background: #f9fafb;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  border: 1px solid #e5e7eb;
}

input, textarea {
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--light);
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  transform: translateY(-2px);
}

input.error, textarea.error {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

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

.form-group {
  position: relative;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--light);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h3 {
  color: var(--light);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Audit Page Styles */
.audit-hero {
  min-height: 100vh;
  background: url('https://images.unsplash.com/photo-1504384764586-bb4cdc1707b0?w=1600') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.audit-content {
  max-width: 700px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.audit-content h1 {
  color: var(--light);
  margin-bottom: 1.5rem;
}

.audit-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.audit-form {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.audit-form input,
.audit-form textarea {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.audit-form input:focus,
.audit-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-top: 1px solid #e5e7eb;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0.5rem 0;
  }

  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    border-radius: 8px;
  }

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

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

  .tech-icons {
    gap: 2rem;
  }

  .tech-icons i {
    font-size: 3rem;
  }

  .service-grid,
  .features-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  form {
    padding: 2rem;
  }

  section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

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

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .service-card,
  .feature {
    padding: 2rem 1.5rem;
  }

  .testimonial {
    padding: 2rem 1.5rem;
  }

  .audit-content {
    padding: 2rem 1.5rem;
  }
}

/* Scroll animations */
.service-card,
.feature,
.testimonial {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.service-card.animate,
.feature.animate,
.testimonial.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  nav,
  .cta-button,
  .nav-toggle {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }
}