/* --- CSS RESET & BRAND VARIABLES --- */
:root {
  --primary: #0a192f;
  --primary-light: #172a45;
  --accent: #64ffda;
  --accent-btn: #00b4d8;
  --accent-hover: #0077b6;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* --- TYPOGRAPHY & LAYOUT --- */
h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.page-header {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(23, 42, 69, 0.9));
  color: var(--white);
  padding: 150px 0 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.page-header p {
  color: #8892b0;
  font-size: 1.1rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-btn);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-svg {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #ccd6f6;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.95), rgba(23, 42, 69, 0.9)), 
              url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&q=80') center/cover;
  color: var(--white);
  padding: 180px 0 120px 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 35px auto;
  color: #8892b0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- SERVICES SECTION --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 180, 216, 0.1);
  color: var(--accent-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* --- PORTFOLIO --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.portfolio-item {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.portfolio-info {
  padding: 20px;
}

/* --- PRICING SECTION --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.popular {
  border: 2px solid var(--accent-btn);
  box-shadow: var(--shadow);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-btn);
  color: var(--white);
  padding: 4px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 15px 0;
}

.pricing-features {
  list-style: none;
  margin: 20px 0 30px 0;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--accent-btn);
  font-weight: bold;
}

/* --- CONTACT FORM --- */
.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* --- TERMS & CONDITIONS MODAL --- */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.modal-body {
  overflow-y: auto;
  margin: 15px 0;
  padding-right: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-body h3 {
  color: var(--text-dark);
  margin: 15px 0 5px 0;
  font-size: 1.1rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 15px;
}

/* --- FOOTER --- */
footer {
  background-color: #020c1b;
  color: var(--white);
  padding: 50px 0 20px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #8892b0;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8892b0;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    flex-direction: column;
    padding: 20px;
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
}