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

:root {
  /* Common variables */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --max-width: 1200px;
  
  /* Original Brand Colors (Blue & White theme) */
  --brand-primary: #1c8adb;
  --brand-primary-hover: #1566a3;
  --brand-secondary: #4cd3e3;
  --brand-secondary-hover: #32bccd;

  /* Default Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-color: rgba(28, 138, 219, 0.08);
  --border-hover: rgba(28, 138, 219, 0.16);
  --primary-gradient: linear-gradient(135deg, var(--brand-primary) 0%, #00d4ff 100%);
  --secondary-gradient: linear-gradient(135deg, #0f469d 0%, var(--brand-primary) 100%);
  --primary-glow: rgba(28, 138, 219, 0.1);
  --header-bg: rgba(248, 250, 252, 0.75);
  --hero-glow-1: rgba(28, 138, 219, 0.05);
  --hero-glow-2: rgba(76, 211, 227, 0.05);
  --about-border: rgba(28, 138, 219, 0.3);
}

[data-theme="dark"] {
  /* Dark Theme Overrides */
  --bg-primary: #020617;
  --bg-secondary: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --primary-glow: rgba(28, 138, 219, 0.25);
  --header-bg: rgba(2, 6, 23, 0.4);
  --hero-glow-1: rgba(28, 138, 219, 0.08);
  --hero-glow-2: rgba(76, 211, 227, 0.08);
  --about-border: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-gap {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-gap {
    padding: 70px 0;
  }
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition), background-color 0.4s ease;
}

header.header-scrolled {
  background: var(--bg-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
}

[data-theme="dark"] header.header-scrolled {
  background: rgba(2, 6, 23, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

header.header-scrolled .nav-container {
  height: 64px;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-menu .active .nav-link {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(120, 120, 120, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
}

.theme-toggle-btn:hover {
  background: rgba(120, 120, 120, 0.2);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  stroke: currentColor;
}

[data-theme="light"] .theme-toggle-btn .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-toggle-btn .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

/* Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  /* Hamburger Animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background: radial-gradient(circle at 10% 20%, var(--hero-glow-1) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, var(--hero-glow-2) 0%, transparent 40%),
              var(--bg-primary);
  overflow: hidden;
  transition: background-color 0.4s ease;
}

.hero-section::before, .hero-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--primary-gradient);
  filter: blur(150px);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
}
.hero-section::before {
  top: 15%;
  left: 5%;
}
.hero-section::after {
  bottom: 15%;
  right: 5%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 38px;
  }
}

.hero-content p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--primary-glow);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--secondary-gradient);
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(120, 120, 120, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(120, 120, 120, 0.15);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* --- Section Headings --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

.section-header .cta-wrapper {
  margin-top: 24px;
}

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px 30px;
  transition: var(--transition), background-color 0.4s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

[data-theme="light"] .service-card::before {
  background: linear-gradient(135deg, rgba(28, 138, 219, 0.05) 0%, rgba(28, 138, 219, 0) 100%);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(28, 138, 219, 0.3);
  box-shadow: 0 20px 40px -15px var(--primary-glow);
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(28, 138, 219, 0.4) 0%, rgba(76, 211, 227, 0.4) 100%);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background: rgba(28, 138, 219, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--brand-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- About Us Section --- */
.about-section {
  background-color: var(--bg-secondary);
  position: relative;
  transition: background-color 0.4s ease;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.about-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(28, 138, 219, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.about-card h3 {
  font-size: 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-card blockquote {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 4px solid var(--brand-primary);
  padding-left: 24px;
}

.about-card blockquote a {
  color: var(--brand-primary);
  font-weight: 500;
}

.about-card blockquote a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .about-card {
    padding: 30px 20px;
  }
  .about-card blockquote {
    font-size: 16px;
    padding-left: 15px;
  }
}

/* --- Contact Us Section --- */
.contact-section {
  position: relative;
}

.contact-wrapper {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 576px) {
  .contact-wrapper {
    padding: 30px 20px;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  background: rgba(120, 120, 120, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(28, 138, 219, 0.15);
  background: var(--bg-card-hover);
}

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

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--brand-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.checkbox-wrapper p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-wrapper p a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.contact-form button[type="submit"] {
  align-self: flex-start;
  min-width: 180px;
}

@media (max-width: 576px) {
  .contact-form button[type="submit"] {
    width: 100%;
  }
}

/* --- Footer Area --- */
footer {
  background-color: #030712;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  color: #94a3b8;
}

[data-theme="light"] footer {
  background-color: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 2.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-widget h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 24px;
  font-weight: 600;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

.newsletter-form input {
  flex-grow: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-gradient);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- General Content / Privacy Template --- */
.subpage-hero {
  padding: 160px 0 60px;
  background: linear-gradient(180deg, rgba(28, 138, 219, 0.05) 0%, transparent 100%), var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.4s ease;
}

.subpage-hero h1 {
  font-size: 42px;
}

.content-area {
  padding: 80px 0;
  max-width: 850px;
  margin: 0 auto;
}

.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.4s ease;
}

@media (max-width: 576px) {
  .content-box {
    padding: 30px 20px;
  }
}

.content-box h2, .content-box h3 {
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-box h2:first-child {
  margin-top: 0;
}

.content-box p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 15px;
}

.content-box ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.content-box li {
  color: var(--text-secondary);
  margin-bottom: 10px;
  list-style-type: disc;
  font-size: 15px;
}

.content-box a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.content-box a:hover {
  color: var(--text-primary);
}

/* --- Thank You Page Design --- */
.success-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-container h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.success-container p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}
