/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
  --primary: #0f3b5c;   /* Deep water blue */
  --secondary: #00a8cc; /* Bright cyan */
  --accent: #f4ebd0;    /* Sand beige */
  --bg-color: #f8fafc;  /* Light grey-blue bg */
  --text-dark: #1e293b; 
  --text-light: #64748b;
  --white: #ffffff;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(0, 168, 204, 0.15);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

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

img {
  max-width: 100%;
  border-radius: 12px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #007699);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 168, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 168, 204, 0.4);
  color: var(--white);
}

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

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Header / Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
}

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

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

header.scrolled .logo {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  font-weight: 500;
  color: var(--white); /* For transparent landing state */
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}

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

header.page-header .nav-links li a {
  color: var(--text-dark);
}

header.page-header .logo {
  color: var(--primary);
}

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

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

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Page Headers (for non-index pages) */
header.page-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px; /* Offset for nav */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 59, 92, 0.8) 0%, rgba(0, 168, 204, 0.4) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInDown 1s ease-out forwards;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e2e8f0;
}

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

/* Common Page Hero */
.page-hero {
  height: 50vh;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  margin-top: 80px; /* Offset for nav */
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
}

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

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

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

.service-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Split Section (Image Left, Text Right or vice versa) */
.split-section {
  display: flex;
  align-items: center;
  gap: 50px;
}

.split-reverse {
  flex-direction: row-reverse;
}

.split-content {
  flex: 1;
}

.split-content h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.split-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.split-image-container {
  flex: 1;
  position: relative;
}

.split-image-container img {
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
}

.split-image-container::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background-color: var(--accent);
  border-radius: 50%;
  z-index: -1;
}

/* Steps / Workflow Section */
.workflow-section {
  background-color: var(--primary);
  color: var(--white);
  padding: 100px 0;
  border-radius: 50px;
  margin: 50px 0;
}

.workflow-section .section-title h2 {
  color: var(--white);
}

.workflow-section p {
  color: #cbd5e1;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.step-item {
  position: relative;
}

.step-num {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 10px rgba(0, 168, 204, 0.2);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card i.fa-quote-left {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  color: rgba(0, 168, 204, 0.1);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.client-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-card {
  background: var(--primary);
  color: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.contact-info-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info-card p {
  color: #cbd5e1;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item i {
  font-size: 1.5rem;
  color: var(--secondary);
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.1);
}

textarea.form-control {
  resize: vertical;
  height: 150px;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 80px 0 20px;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-col p {
  color: #cbd5e1;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

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

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: #94a3b8;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }
  .split-section {
    flex-direction: column;
  }
  .split-reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    box-shadow: var(--shadow);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    text-align: center;
  }
  
  .nav-links li a {
    color: var(--text-dark) !important;
    display: block;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .header .btn {
    display: none;
  }

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