:root {
  --bg-dark: #0c1022;
  --bg-light: #121833;
  --text-primary: #f4f5fb;
  --text-muted: #c9d2ff;
  --accent: #7b5cff;
  --accent-soft: rgba(123, 92, 255, 0.2);
  --glass: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(12, 16, 34, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #1c2350, #0c1022 60%);
  color: var(--text-primary);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

main {
  position: relative;
}

/* Dot pattern on navy area (About Me and below), not on hero */
main::after {
  content: "";
  position: absolute;
  top: 90vh;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.12) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  z-index: -1;
}

/* Stack content above the dot pattern layer */
main > * {
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 40px;
}

.services .section-title,
.education-experience .section-title,
.testimonials .section-title,
.payments .section-title,
.questions .section-title {
  text-align: center;
}

.services .section-title .section-lead,
.education-experience .section-title .section-lead,
.testimonials .section-title .section-lead,
.payments .section-title .section-lead,
.questions .section-title .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.pricing-hint {
  margin-top: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #ffffff;
}

.pricing-card {
  text-align: center;
  display: grid;
  gap: 12px;
}

.pricing-inner {
  position: relative;
  min-height: 300px;
  border-radius: 24px;
}

.pricing-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pricing-face strong {
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

.pricing-front {
  opacity: 1;
  visibility: visible;
}

.pricing-card:hover .pricing-front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pricing-back {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pricing-card:hover .pricing-back {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pricing-back-inner {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  box-sizing: border-box;
  text-align: left;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pricing-back-inner ul {
  font-size: 0.9rem;
  line-height: 1.4;
}

.pricing-face ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  padding: 0;
  margin: 0;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
}

.pricing-card.featured .pricing-inner {
  border: 1px solid rgba(123, 92, 255, 0.6);
  box-shadow: 0 25px 60px rgba(123, 92, 255, 0.25);
}

.pricing-note {
  margin-top: 24px;
  text-align: center;
}

.delivery-note,
.how-it-works {
  margin-top: 24px;
  text-align: center;
}

.how-it-works {
  display: grid;
  gap: 12px;
}

.link-highlight {
  font-weight: 600;
  color: #8ddcff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

h2:has(.section-title-emoji),
h3:has(.section-title-emoji) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.section-title-emoji {
  font-style: normal;
  line-height: 1;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.glass-card {
  background: rgba(12, 16, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 16, 34, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 8px 16px rgba(12, 16, 34, 0.4));
}

.logo-text {
  font-weight: 600;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(120deg, #7b5cff, #42d6ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover {
  color: var(--text-muted);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: url("https://images.unsplash.com/photo-1487014679447-9f8336841d58?auto=format&fit=crop&w=1400&q=80")
      center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 16, 34, 0.8), rgba(88, 68, 196, 0.6));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  animation: fadeUp 1s ease both;
}

.eyebrow {
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #7b5cff, #42d6ff);
  color: #0c1022;
  box-shadow: 0 15px 30px rgba(66, 214, 255, 0.25);
}

.btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(66, 214, 255, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn.ghost:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.hero-stats h3 {
  font-size: 2rem;
}

.hero-stats p {
  color: var(--text-muted);
}

.stat-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.about-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  max-width: 360px;
  margin-left: auto;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.portrait-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 20px;
}

.portrait-trigger img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portrait-trigger:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portrait-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 34, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 30;
}

.portrait-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.portrait-lightbox img {
  max-width: min(90vw, 700px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.portrait-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.portrait-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.about-projects {
  margin-top: 60px;
}

.about-projects .section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.about-projects .section-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.projects-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  color: inherit;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(12, 16, 34, 0.4);
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-body {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.tech {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(123, 92, 255, 0.18);
  border-color: rgba(123, 92, 255, 0.4);
}

.service-card .icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.edu-exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 28px;
}

.edu-exp-card {
  display: grid;
  gap: 14px;
}

.edu-exp-card h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.edu-exp-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.edu-exp-card p {
  margin: 0;
  line-height: 1.6;
}

.edu-exp-card ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.6;
}

.edu-exp-card li {
  margin-bottom: 6px;
}

.testimonials .carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 24px;
  transition: transform 0.6s ease;
}

.testimonial-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card span {
  color: var(--text-muted);
}

.stars {
  color: #ffd66b;
  letter-spacing: 2px;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.carousel-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.2);
}

.testimonial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.testimonial-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 16, 34, 0.9);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 1;
}

.testimonial-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.testimonial-tab.active {
  background: rgba(123, 92, 255, 0.25);
  border-color: rgba(123, 92, 255, 0.5);
}

.testimonial-panel {
  display: none;
}

.testimonial-panel.active {
  display: block;
}

.real-reviews-list {
  display: grid;
  gap: 20px;
}

.real-reviews-list:not(:empty) + .real-reviews-empty {
  display: none;
}

.real-reviews-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 32px 16px;
}

.real-review-card {
  padding: 24px;
  display: grid;
  gap: 10px;
  background: rgba(12, 16, 34, 0.85);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.real-review-card .stars {
  color: #ffd66b;
  letter-spacing: 2px;
}

.real-review-card .review-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.review-form {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.star-rating {
  display: flex;
  gap: 8px;
}

.star-rating .star {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.filled {
  color: #ffd66b;
}

.star-rating .star:hover {
  transform: scale(1.15);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.questions-form {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.message-sent-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 16, 34, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 40;
}

.message-sent-modal.active {
  opacity: 1;
  visibility: visible;
}

.cooldown-modal .cooldown-text {
  margin: 0;
  line-height: 1.5;
}

.cooldown-modal #cooldown-time {
  font-variant-numeric: tabular-nums;
}

.message-sent-content {
  padding: 32px;
  text-align: center;
  display: grid;
  gap: 20px;
  max-width: 360px;
}

.message-sent-text {
  font-size: 1.15rem;
  margin: 0;
}

.message-sent-close {
  justify-self: center;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 40px;
  background: rgba(12, 16, 34, 0.7);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
}

.back-to-top {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.field-heading h3 {
  font-size: 1.1rem;
}

.field-heading p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.field {
  display: grid;
  gap: 8px;
}

input,
textarea,
select {
  background: rgba(12, 16, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  position: relative;
  z-index: 1;
}

select {
  cursor: pointer;
  appearance: auto;
}

select option {
  color: #000;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(66, 214, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(66, 214, 255, 0.15);
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    right: 5%;
    top: 68px;
    background: rgba(12, 16, 34, 0.95);
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 80vh;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 80px 0;
  }

  .hero-content {
    padding: 100px 0;
  }

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