:root {
  --bg-deep: #050716;
  --bg-elevated: #0f1535;
  --bg-panel: rgba(8, 12, 29, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --primary: #7b5cff;
  --primary-accent: #23d8ff;
  --text-primary: #f4f6ff;
  --text-muted: #a7b3cf;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 25px 60px rgba(4, 8, 34, 0.35);
  --shadow-hard: 0 30px 80px rgba(7, 12, 40, 0.6);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --section-padding: clamp(4rem, 8vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(120, 95, 255, 0.22), transparent 45%),
    radial-gradient(circle at top right, rgba(35, 216, 255, 0.28), transparent 50%),
    radial-gradient(circle at bottom, rgba(60, 45, 170, 0.3), transparent 55%),
    var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
  object-fit: cover;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(22px);
  background: linear-gradient(135deg, rgba(8, 12, 29, 0.85), rgba(8, 12, 29, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 25px rgba(3, 8, 26, 0.4);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 46px;
  width: auto;
  display: block;
}

.navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-accent));
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--text-primary);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero */
.hero-section {
  padding-top: calc(var(--section-padding) + 3rem);
  padding-bottom: calc(var(--section-padding) + 2rem);
}

.hero-copy {
  background: linear-gradient(160deg, rgba(15, 22, 50, 0.95), rgba(12, 18, 44, 0.7));
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(123, 92, 255, 0.22);
}

.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 1.8rem;
}

.hero-title {
  font-size: clamp(2.5rem, 4.2vw, 3.9rem);
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--primary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-glow {
  background: linear-gradient(120deg, var(--primary), var(--primary-accent));
  color: #040714;
  box-shadow: 0 18px 40px rgba(60, 48, 190, 0.45);
  border: none;
}

.btn-glow:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 55px rgba(90, 70, 255, 0.55);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.meta-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.meta-value {
  display: block;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.meta-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}

.visual-orbit {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  animation: orbitRotate 16s linear infinite;
  opacity: 0.6;
}

.visual-card {
  position: absolute;
  max-width: 260px;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 50, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  font-size: 0.7rem;
}

.visual-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.visual-card p {
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.visual-card.primary {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(160deg, rgba(123, 92, 255, 0.95), rgba(50, 37, 120, 0.9));
}

.visual-card.secondary {
  bottom: 10%;
  left: 12%;
}

.visual-card.tertiary {
  bottom: 18%;
  right: 10%;
}

@keyframes orbitRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* About */
.about-section {
  padding-top: calc(var(--section-padding) - 1rem);
  padding-bottom: calc(var(--section-padding) - 1rem);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.about-card {
  background: rgba(15, 22, 50, 0.9);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.5rem;
}

.about-card p {
  color: var(--text-muted);
  margin: 0;
}

.about-stats {
  display: grid;
  gap: 1rem;
}

.about-stats div {
  padding: 1rem 1.4rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
}

.stat-value {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.about-preview {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.preview-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.preview-card span {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  background: rgba(7, 12, 40, 0.78);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.preview-card img {
  height: 220px;
}

/* Portfolio */
.portfolio-section {
  padding-top: calc(var(--section-padding) - 2rem);
  padding-bottom: calc(var(--section-padding) - 1rem);
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  transition: all 0.2s ease;
}

.tab-button.active,
.tab-button:hover {
  background: linear-gradient(120deg, rgba(123, 92, 255, 0.55), rgba(35, 216, 255, 0.45));
  border-color: transparent;
  color: var(--text-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  background: rgba(12, 18, 44, 0.9);
}

.portfolio-item.active {
  display: block;
}

.portfolio-item img {
  height: 210px;
  width: 100%;
}

.portfolio-caption {
  padding: 1.6rem;
}

.portfolio-caption h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.portfolio-caption p {
  margin: 0;
  color: var(--text-muted);
}

/* Gallery */
.gallery-section {
  padding-top: calc(var(--section-padding) - 1.5rem);
  padding-bottom: calc(var(--section-padding) - 1rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 44, 0.9);
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-info {
  padding: 1.9rem 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
}

.gallery-info h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.gallery-info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Services */
.services-section {
  padding-bottom: calc(var(--section-padding) - 1rem);
}

.service-card {
  background: rgba(15, 22, 50, 0.92);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: grid;
  gap: 1rem;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(123, 92, 255, 0.5), rgba(35, 216, 255, 0.45));
  display: grid;
  place-items: center;
  color: #050716;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-card li::before {
  content: "•";
  color: var(--primary);
  margin-right: 0.55rem;
}

/* Testimonials */
.testimonials-section {
  padding-bottom: calc(var(--section-padding) - 2rem);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonial-card .author {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact */
.contact-section {
  padding-bottom: calc(var(--section-padding) + 1rem);
}

.contact-card,
.contact-form-card {
  background: rgba(15, 22, 50, 0.95);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1.2rem;
  font-size: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.contact-list a {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-form-card h3 {
  margin-bottom: 0.65rem;
}

.contact-form-card p {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.contact-form .form-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control,
.contact-form .form-select {
  background: rgba(4, 7, 21, 0.75);
  border: 1px solid rgba(123, 92, 255, 0.2);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: rgba(123, 92, 255, 0.7);
  box-shadow: 0 0 0 0.2rem rgba(123, 92, 255, 0.15);
  background: rgba(4, 7, 21, 0.92);
  color: var(--text-primary);
}

.contact-form textarea {
  resize: vertical;
}

/* Footer */
.site-footer {
  background: rgba(3, 6, 20, 0.92);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 35px rgba(3, 6, 20, 0.65);
}

.footer-title {
  font-size: 1.5rem;
  margin: 0;
}

.footer-divider {
  margin: 2.5rem 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(123, 92, 255, 0.3), rgba(35, 216, 255, 0.3));
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-separator {
  margin: 0 1rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-card.secondary {
    left: 5%;
  }

  .visual-card.tertiary {
    right: 4%;
  }
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }

  .hero-copy {
    padding: 2.2rem;
  }

  .hero-meta {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .visual-card {
    position: static;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .visual-orbit {
    display: none;
  }

  .about-card,
  .contact-card,
  .contact-form-card,
  .service-card {
    padding: 2.2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 576px) {
  section {
    padding: 3.5rem 0;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .portfolio-grid {
    gap: 1.4rem;
  }
}