/* ===== Reset & Custom Properties ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1f1f1f;
  --color-primary-light: #2d2d3f;
  --color-accent: #7c5cbf;
  --color-accent-hover: #6a4dab;
  --color-accent-glow: rgba(124, 92, 191, 0.25);
  --color-accent-secondary: #0c71c3;
  --color-accent-soft: #c37cc6;
  --color-bg: #ffffff;
  --color-bg-soft: #f8f7fc;
  --color-bg-dark: #f3f0f7;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-text-muted: #a0aec0;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-width: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 30px var(--color-accent-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Utility ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-accent-secondary);
  color: var(--color-white);
  box-shadow: 0 8px 30px rgba(12, 113, 195, 0.25);
}

.btn-primary:hover {
  background: #0a62ab;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(12, 113, 195, 0.35);
  color: var(--color-white);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  text-decoration: none;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

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

.logo,
.footer-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo:hover,
.footer-logo:hover {
  text-decoration: none;
  color: var(--color-primary);
}

.logo-highlight {
  color: var(--color-accent-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-links a:hover {
  color: var(--color-accent);
  background: rgba(124, 92, 191, 0.06);
  text-decoration: none;
}

.nav-cta {
  background: var(--color-accent-secondary) !important;
  color: var(--color-white) !important;
  padding: 0.5rem 1.5rem !important;
}

.nav-cta:hover {
  background: #0a62ab !important;
  color: var(--color-white) !important;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #2d1b4e 0%, #4a2d7a 40%, #3b1f6e 70%, #1a1040 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(195, 124, 198, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(75, 45, 130, 0.4) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-particles canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background: rgba(195, 124, 198, 0.15);
  border: 1px solid rgba(195, 124, 198, 0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-accent-soft);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: linear-gradient(135deg, var(--color-accent-soft), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.hero-sub strong {
  color: var(--color-white);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Reveal Animations ===== */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal {
  transform: translateY(20px);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== Section Styling ===== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section--dark {
  background: var(--color-bg-soft);
}

.section--accent {
  background: linear-gradient(135deg, #2d1b4e 0%, #3b1f6e 50%, #1a1040 100%);
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header--light h2 {
  color: var(--color-white);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  padding: 0.3rem 1rem;
  background: rgba(124, 92, 191, 0.08);
  border-radius: 50px;
}

.section--accent .section-tag {
  background: rgba(195, 124, 198, 0.2);
  color: var(--color-accent-soft);
}

.section h2,
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section--accent .section h2,
.section--accent .section-header h2,
.section-header--light h2 {
  color: var(--color-white);
}

.section-intro {
  max-width: 650px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

/* ===== Why Cards ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.why-icon {
  width: 64px;
  height: 64px;
  background: rgba(124, 92, 191, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  transition: all var(--transition);
}

.why-card:hover .why-icon {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.05);
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.why-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 1rem;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.stat-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.stat-ring-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
}

.stat-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.stat-percent {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image-frame {
  position: relative;
}

.about-image-frame img {
  border-radius: var(--radius);
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius);
  z-index: 0;
  opacity: 0.3;
}

.about-text .section-tag {
  display: inline-block;
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.about-text em {
  color: var(--color-text);
  font-style: italic;
}

.about-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.about-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: all var(--transition);
}

.about-contact-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.about-contact-item:hover {
  color: var(--color-accent);
  text-decoration: none;
  transform: translateX(4px);
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  gap: 2rem;
}

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial blockquote {
  padding: 2.5rem;
  position: relative;
}

.testimonial-quote-icon {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.testimonial blockquote p {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--color-text);
  font-size: 0.95rem;
}

.testimonial blockquote footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial blockquote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}

.testimonial blockquote footer span {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-intro {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 92, 191, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-detail-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.contact-detail-item p {
  color: var(--color-text);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(124, 92, 191, 0.04);
  text-decoration: none;
  transform: translateY(-2px);
}

.social-link svg {
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-bg-soft);
  color: var(--color-text);
  transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-math {
  max-width: 220px;
}

.form-math label {
  font-weight: 600;
}

.form-consent {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  color: var(--color-white);
}

.footer-logo .logo-highlight {
  color: var(--color-accent-soft);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    max-width: 350px;
    margin: 0 auto;
  }

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

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

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 5rem 2rem;
    z-index: 999;
    align-items: center;
    justify-content: center;
  }

  .nav-links.open {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .nav-links li a {
    display: block;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    text-align: center;
  }

  .nav-cta {
    margin-top: 1rem;
  }

  .hero {
    min-height: 90vh;
    padding: 7rem 1.5rem 3rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .stat-ring {
    width: 110px;
    height: 110px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.75rem;
  }

  .social-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .hero-sub {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 3rem 0;
  }

  .about-image-accent {
    display: none;
  }

  .testimonial blockquote {
    padding: 1.5rem;
  }
}

/* ===== Subtle Animations ===== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
  50% { box-shadow: 0 0 0 12px transparent; }
}

.btn-primary:focus-visible {
  animation: pulse-glow 1.5s ease infinite;
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Smooth loading transition */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageLoad 0.5s ease;
}
