:root {
  --bg: #0b1020;
  --surface: rgba(8, 10, 26, 0.68);
  --surface-2: rgba(255, 255, 255, 0.08);
  --text: #eef2ff;
  --muted: #aab7e3;
  --primary: #7c5cff;
  --primary-2: #00d4ff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --radius: 18px;
}

:root.light-theme {
  --bg: #eef4ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-2: rgba(255, 255, 255, 0.65);
  --text: #0f172a;
  --muted: #475569;
  --primary: #5b5ff7;
  --primary-2: #06b6d4;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(124, 92, 255, 0.12), transparent 18%),
    linear-gradient(135deg, var(--bg), #111a3d 60%, #0c132a);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  position: relative;
}

body::before,
body::after {
  content: '';
  position: fixed;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
  z-index: -1;
  filter: blur(6px);
}

body::before {
  top: 80px;
  left: -80px;
}

body::after {
  bottom: 80px;
  right: -80px;
}

body.light-theme {
  background:
    radial-gradient(circle at top, rgba(91, 95, 247, 0.1), transparent 18%),
    linear-gradient(135deg, #f8fbff, #eef4ff 60%, #e7ecff);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

iframe {
  border: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.video-card {
  padding: 1rem;
}

.video-card iframe {
  width: 100%;
  min-height: 220px;
  border-radius: 12px;
}

.video-card figcaption {
  padding-top: 0.9rem;
}

.video-card a {
  color: var(--primary-2);
  font-weight: 600;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loader {
  position: fixed;
  inset: 0;
  background: #020617;
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.loader-inner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  z-index: 1500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(3, 6, 18, 0.64);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

body.light-theme .site-header {
  background: rgba(255, 255, 255, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
  background: linear-gradient(90deg, var(--text), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width 0.3s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.theme-toggle,
.hamburger,
.slider-btn,
.faq-question,
.back-to-top,
.whatsapp-btn {
  cursor: pointer;
}

.theme-toggle,
.hamburger {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap,
.hero .overlay {
  position: absolute;
  inset: 0;
}

.hero-video-wrap iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero .overlay {
  background: linear-gradient(90deg, rgba(3, 7, 20, 0.78), rgba(3, 7, 20, 0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 90px 0 50px;
}

.eyebrow,
.tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  margin: 0.4rem 0 1rem;
}

.typing-text {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-text {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-card {
  padding: 1rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: auto -20% -50% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
}

.hero-card img {
  border-radius: 14px;
  margin-bottom: 1rem;
  height: 420px;
  object-fit: cover;
}

.stats-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-bottom: 80px;
}

.stat-item,
.service-card,
.project-card,
.testimonial,
.contact-card,
.contact-info,
.newsletter,
.pricing-card,
.calc-panel,
.resume-panel,
.faq-item,
.enquiry-summary {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
  padding: 1.2rem 0.8rem;
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 70px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 70%);
  right: -10px;
  top: -10px;
}

.stat-item h3 {
  font-size: 2rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-top: 0.5rem;
}

.services-grid,
.projects-grid,
.pricing-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.service-card,
.project-card,
.pricing-card {
  padding: 1.5rem;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover,
.project-card:hover,
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.featured-projects,
.faq-section,
.newsletter-section,
.contact-page,
.enquiry-page {
  position: relative;
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card img {
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.project-links a {
  color: var(--primary-2);
  font-weight: 600;
}

.testimonial-wrap,
.faq-wrap,
.iframe-demo,
.gallery-slider-wrap,
.newsletter,
.contact-grid,
.enquiry-layout {
  text-align: center;
}

.testimonial-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.testimonial-track {
  width: min(700px, 100%);
  position: relative;
}

.testimonial {
  padding: 2rem;
  display: none;
}

.testimonial.active {
  display: block;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.9rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: none;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 0 1.2rem 1rem;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.iframe-demo iframe {
  width: 100%;
  min-height: 380px;
  border-radius: 16px;
}

.newsletter {
  padding: 2rem;
  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(0, 212, 255, 0.08));
}

.newsletter-form,
.footer-newsletter,
.cost-calculator,
.resume-actions,
.contact-social {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.site-footer {
  padding: 60px 0 20px;
  background: linear-gradient(180deg, rgba(3, 7, 20, 0.15), rgba(3, 7, 20, 0.7));
}

.site-footer h3 {
  margin-bottom: 1rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li,
.site-footer p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.back-to-top,
.whatsapp-btn {
  position: fixed;
  right: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
  border-radius: 999px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.back-to-top {
  bottom: 90px;
}

.whatsapp-btn {
  bottom: 18px;
}

.back-to-top.visible,
.whatsapp-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-hero {
  padding: 110px 0 70px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(124, 92, 255, 0.12), transparent 20%);
}

.about-grid,
.contact-grid,
.enquiry-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-image,
.map-frame,
.resume-preview {
  width: 100%;
  border-radius: 18px;
}

.bio-highlights {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.bio-highlights div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
}

.skills-list {
  display: grid;
  gap: 1rem;
}

.skill-bar div:first-child,
.skill-bar .bar {
  display: flex;
  justify-content: space-between;
}

.skill-bar .bar {
  margin-top: 0.4rem;
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.resume-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.resume-preview-wrap {
  padding-bottom: 4rem;
}

.resume-preview {
  min-height: 700px;
}

.services-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pricing-card.featured {
  transform: translateY(-10px);
}

.cost-calculator {
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}

.project-filters {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter.active {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.gallery-slider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-slider img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 18px;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
}

.error {
  min-height: 1rem;
  color: #ff7b7b;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.checkbox-group input {
  width: auto;
}

.enquiry-summary {
  margin-top: 1rem;
  padding: 1rem;
  text-align: left;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .hero-content,
  .about-grid,
  .contact-grid,
  .enquiry-layout { grid-template-columns: 1fr; }
  .services-grid,
  .projects-grid,
  .pricing-grid,
  .stats-row,
  .services-all-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    width: 100%;
    background: rgba(3, 6, 18, 0.95);
    flex-direction: column;
    padding: 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-actions .theme-toggle { display: none; }
  .hero-buttons,
  .cost-calculator,
  .newsletter-form,
  .footer-newsletter,
  .resume-actions { flex-direction: column; }
  .services-grid,
  .projects-grid,
  .pricing-grid,
  .services-all-grid,
  .stats-row { grid-template-columns: 1fr; }
  .testimonial-slider,
  .gallery-slider { flex-direction: column; }
  .resume-panel { flex-direction: column; align-items: flex-start; }
  .video-grid { grid-template-columns: 1fr; }
}
