/* ============================================================
   Section-Specific Styles — Dark Premium Theme
   ============================================================ */

/* ==================== Header / Navigation ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-header);
  transition:
    background-color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out),
    backdrop-filter 300ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

/* Glassmorphic state after scrolling */
.header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-height);
}

/* Logo */
.nav-logo a {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wider);
  color: var(--text-primary);
  position: relative;
  transition: color var(--transition-base);
}

.nav-logo a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-logo a:hover::after {
  width: 100%;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

/* Nav Links */
.nav-link {
  font-weight: var(--fw-medium);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width 250ms var(--ease-out);
  box-shadow: 0 0 8px rgba(124, 92, 252, 0.4);
}

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

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

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  width: 28px;
  height: 22px;
  cursor: pointer;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-base);
  position: absolute;
  border-radius: var(--radius-full);
}

.hamburger::before,
.hamburger::after {
  content: '';
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  bottom: -7px;
}

.nav-toggle.active .hamburger {
  background-color: transparent;
}

.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ==================== Mobile Navigation ==================== */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-primary);
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-lg);
    transition: right var(--transition-slow);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
  }

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

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border-primary);
  }

  .nav-link {
    display: block;
    padding: var(--spacing-md) 0;
    font-size: var(--fs-body);
  }

  .nav-link::after {
    bottom: -1px;
  }
}


/* ==================== Hero Section ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  background-image: url('../assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Dark overlay for text readability over hero image */
.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.4) 40%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

/* Floating purple orb — top right (above overlay) */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 700px;
  height: 700px;
  z-index: 2;
  background: radial-gradient(
    circle,
    rgba(124, 92, 252, 0.15) 0%,
    rgba(124, 92, 252, 0.05) 30%,
    transparent 65%
  );
  border-radius: 50%;
  animation: heroOrbPurple 8s ease-in-out infinite;
  pointer-events: none;
}

/* Floating cyan orb — bottom left (above overlay) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -15%;
  width: 600px;
  height: 600px;
  z-index: 2;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.1) 0%,
    rgba(6, 182, 212, 0.03) 30%,
    transparent 65%
  );
  border-radius: 50%;
  animation: heroOrbCyan 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroOrbPurple {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  33% {
    transform: translate(-30px, 20px) scale(1.08);
    opacity: 0.8;
  }
  66% {
    transform: translate(15px, -15px) scale(0.95);
    opacity: 0.5;
  }
}

@keyframes heroOrbCyan {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  40% {
    transform: translate(25px, -20px) scale(1.05);
    opacity: 0.7;
  }
  70% {
    transform: translate(-10px, 10px) scale(0.98);
    opacity: 0.4;
  }
}

.hero .container {
  position: relative;
  z-index: var(--z-base);
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

/* Gradient heading text */
.hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
  line-height: 1.08;
  margin-bottom: var(--spacing-lg);
  background: linear-gradient(
    180deg,
    #FFFFFF 0%,
    #FFFFFF 40%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn-secondary {
  border-color: var(--border-secondary);
  color: var(--text-primary);
}

.hero-buttons .btn-secondary:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple-light);
  background-color: rgba(124, 92, 252, 0.06);
}

@media (max-width: 767px) {
  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

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

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero::before {
    width: 400px;
    height: 400px;
    top: 5%;
    right: -30%;
  }

  .hero::after {
    width: 350px;
    height: 350px;
    bottom: 5%;
    left: -30%;
  }
}


/* ==================== Services Section ==================== */
.services {
  background-color: var(--bg-secondary);
  background-image: url('../assets/images/services-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for services — keeps cards readable */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.75) 50%,
    rgba(10, 10, 10, 0.92) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.services > .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
  }
}

@media (max-width: 767px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}


/* ==================== About Section ==================== */
.about {
  background-color: var(--bg-primary);
  background-image: url('../assets/images/about-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for about — heavy to keep text readable */
.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.about > .container {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
    gap: var(--spacing-3xl);
  }
}

.about-content {
  max-width: 700px;
}

.about-content .section-title {
  text-align: left;
}

.about-content .section-title::after {
  left: 0;
  transform: none;
}

.about-text {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.about-subtitle {
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.about-features {
  list-style: none;
}

.about-features li {
  padding-left: 1.75rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-weight: var(--fw-bold);
  transition: transform 250ms var(--ease-out);
}

.about-features li:hover::before {
  transform: translateX(4px);
  color: var(--accent-purple-light);
}

/* About Stats Grid */
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 767px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}


/* ==================== Contact Section ==================== */
.contact {
  background-color: var(--bg-secondary);
  background-image: url('../assets/images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Dark overlay for contact — keeps form readable */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.78) 50%,
    rgba(10, 10, 10, 0.92) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-base);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 2fr;
  }
}

/* Contact Info Sidebar */
.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
}

.contact-info h3 {
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
  font-size: var(--fs-h3);
  letter-spacing: var(--ls-heading);
}

.contact-item {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  align-items: flex-start;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-purple);
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 300ms var(--ease-out), color 300ms var(--ease-out);
}

.contact-item:hover svg {
  transform: scale(1.15);
  color: var(--accent-purple-light);
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.contact-item span {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}

.contact-item a {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  transition: color var(--transition-base);
}

.contact-item a:hover {
  color: var(--accent-purple-light);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
}

@media (max-width: 767px) {
  .contact-form {
    padding: var(--spacing-xl);
  }
}


/* ==================== Footer ==================== */
.footer {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

/* Gradient top border */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-footer-border);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

/* Footer Brand */
.footer-brand h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
  letter-spacing: var(--ls-wider);
}

.footer-brand p {
  color: var(--text-tertiary);
  line-height: 1.7;
  font-size: var(--fs-small);
}

/* Footer Links */
.footer-links h4,
.footer-contact h4 {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a,
.footer-contact a {
  color: var(--text-tertiary);
  font-size: var(--fs-small);
  transition: color var(--transition-base), transform var(--transition-base);
  display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent-purple-light);
  transform: translateX(3px);
}

/* Footer Contact */
.footer-contact p {
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-xs);
  font-size: var(--fs-small);
}

/* Footer Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border-primary);
  padding-top: var(--spacing-lg);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: var(--fs-xs);
  margin: 0;
  letter-spacing: var(--ls-wide);
}

@media (max-width: 767px) {
  .footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}
