/* ===================================================
   SGN Solutions – Custom CSS Layer
   Supplements Tailwind with custom animations & effects
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #00D4FF;
  --secondary: #7B2FBE;
  --accent: #FF6B35;
  --dark: #ffffff;
  --dark-card: #f8fafc;
  --dark-border: rgba(15, 23, 42, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --text-dim: #64748B;
  --gradient-1: linear-gradient(135deg, #00D4FF, #7B2FBE);
  --gradient-2: linear-gradient(135deg, #7B2FBE, #FF6B35);
}

html {
  scroll-behavior: smooth;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #0F172A;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 3px;
}

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all .35s ease;
  background: transparent;
  padding: 1rem 0;
}

#navbar.scrolled {
  background: rgba(8, 12, 20, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: .6rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}

.nav-logo-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .5px;
}

.nav-link {
  color: #CBD5E1;
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: .4rem;
  transition: color .25s, background .25s;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--gradient-1);
  transition: left .3s, right .3s;
  border-radius: 1px;
}

.nav-link:hover::after {
  left: 10%;
  right: 10%;
}

.nav-link:hover {
  color: #fff;
}

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: rgba(13, 21, 37, .97);
  border: 1px solid var(--dark-border);
  border-radius: .75rem;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  z-index: 999;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: .55rem 1.25rem;
  color: #CBD5E1;
  font-size: .875rem;
  font-weight: 500;
  transition: color .2s, background .2s, padding-left .2s;
}

.dropdown-item:hover {
  color: var(--primary);
  background: rgba(0, 212, 255, .06);
  padding-left: 1.6rem;
}

.caret {
  display: inline-block;
  transition: transform .25s;
  font-size: .7em;
}

.dropdown:hover .caret {
  transform: rotate(180deg);
}

/* Mobile nav */
#mobile-menu {
  display: none;
  background: rgba(8, 12, 20, .97);
  border-top: 1px solid var(--dark-border);
  backdrop-filter: blur(20px);
}

#mobile-menu.open {
  display: block;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-dropdown {
  display: none;
  background: rgba(0, 0, 0, .2);
  border-left: 2px solid var(--dark-border);
  margin-left: 1rem;
  padding-left: .5rem;
}

.mobile-dropdown.open {
  display: block;
}

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-video {
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 10px;
  right: 10px;
  width: auto;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #hero-video {
    left: 10px;
    right: 10px;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, .3) 0%, rgba(8, 12, 20, .7) 60%, var(--dark) 100%);
  z-index: 1;
}

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

.hero-content-wrap {
  padding: 0 120px 3.5rem;
  transform: translateY(-40px);
}

@media (max-width: 1280px) {
  .hero-content-wrap {
    padding: 0 120px 3.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-content-wrap {
    padding: 0 80px 3rem;
    transform: translateY(-20px);
  }
}

@media (max-width: 768px) {
  .hero-content-wrap {
    padding: 0 40px 2.5rem;
    transform: translateY(0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 212, 255, .1);
  border: 1px solid rgba(0, 212, 255, .3);
  border-radius: 2rem;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .5px;
  margin-bottom: 1.5rem;
  animation: fadeInDown .8s ease both;
}

#stats-section {
  transition: all 0.3s ease;
}

@media (max-width: 1280px) {
  #stats-section {
    margin: 0 80px !important;
    width: calc(100% - 160px) !important;
  }
}

@media (max-width: 1024px) {
  #stats-section {
    margin: 0 40px !important;
    width: calc(100% - 80px) !important;
  }
}

@media (max-width: 768px) {
  #stats-section {
    margin: 0 15px !important;
    width: calc(100% - 30px) !important;
  }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeInUp .9s .2s ease both;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s .4s ease both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 700;
  padding: .85rem 2.25rem;
  border-radius: 3rem;
  font-size: 1rem;
  box-shadow: 0 0 40px rgba(0, 212, 255, .25);
  transition: transform .25s, box-shadow .25s;
  animation: fadeInUp 1s .6s ease both;
  text-decoration: none;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 60px rgba(0, 212, 255, .4);
}

.hero-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: 2px solid rgba(0, 212, 255, .5);
  color: var(--primary);
  font-weight: 600;
  padding: .8rem 2rem;
  border-radius: 3rem;
  font-size: 1rem;
  transition: background .25s, border-color .25s, transform .25s;
  text-decoration: none;
  margin-left: 1rem;
}

.hero-cta-outline:hover {
  background: rgba(0, 212, 255, .08);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* floating shapes */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .15;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
  animation-delay: 3s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  animation-delay: 1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-25px) scale(1.05);
  }
}

/* ===================================================
   SECTION COMMON
   =================================================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(123, 47, 190, .15);
  border: 1px solid rgba(123, 47, 190, .4);
  color: #A78BFA;
  border-radius: 2rem;
  padding: .3rem .9rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .75rem;
}

.section-subtitle {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  height: 3px;
  width: 60px;
  background: var(--gradient-1);
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}

/* ===================================================
   CARDS / GLASSMORPHISM
   =================================================== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, .35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 30px rgba(0, 212, 255, .08);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--gradient-1);
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 212, 255, .25);
  transition: transform .3s;
}

.glass-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ===================================================
   STATS COUNTER
   =================================================== */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-dim);
  font-size: .9rem;
  margin-top: .3rem;
}

/* ===================================================
   TESTIMONIALS
   =================================================== */
.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  transition: transform .3s, border-color .3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 47, 190, .4);
}

.quote-icon {
  font-size: 4rem;
  color: var(--primary);
  opacity: .2;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: serif;
  line-height: 1;
}

.star {
  color: #FBBF24;
  font-size: .9rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ===================================================
   TEAM CARDS
   =================================================== */
.team-card {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  overflow: hidden;
  text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, .4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.team-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.team-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.team-card:hover .team-img-wrap img {
  transform: scale(1.08);
}

.team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 12, 20, .9) 0%, transparent 60%);
}

.team-social {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: .5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}

.team-card:hover .team-social {
  opacity: 1;
  transform: translateY(0);
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, .2);
  border: 1px solid rgba(0, 212, 255, .4);
  color: var(--primary);
  font-size: .8rem;
  transition: background .2s;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary);
  color: #000;
}

/* ===================================================
   PORTFOLIO CARDS
   =================================================== */
.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, .4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.project-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  filter: brightness(.8);
  transition: filter .3s;
}

.project-card:hover .project-img {
  filter: brightness(1);
}

.tech-tag {
  display: inline-block;
  background: rgba(0, 212, 255, .1);
  border: 1px solid rgba(0, 212, 255, .25);
  color: var(--primary);
  border-radius: 2rem;
  padding: .2rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}

/* ===================================================
   TIMELINE
   =================================================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--primary), var(--secondary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 3rem);
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 3rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient-1);
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(0, 212, 255, .5);
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 420px;
  backdrop-filter: blur(10px);
  transition: border-color .3s;
}

.timeline-content:hover {
  border-color: rgba(0, 212, 255, .35);
}

.timeline-year {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .5px;
  margin-bottom: .4rem;
}

@media(max-width:767px) {
  .timeline::before {
    left: 16px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 3rem;
  }

  .timeline-dot {
    left: 16px;
  }
}

/* ===================================================
   FORMS
   =================================================== */
.form-input {
  width: 100%;
  background: rgba(13, 21, 37, .8);
  border: 1px solid var(--dark-border);
  border-radius: .6rem;
  padding: .8rem 1.1rem;
  color: #E2E8F0;
  font-size: .95rem;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}

.form-input:focus {
  border-color: rgba(0, 212, 255, .5);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, .1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #94A3B8;
  margin-bottom: .5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gradient-1);
  color: #fff;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: .6rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, .3);
}

.alert {
  border-radius: .6rem;
  padding: 1rem 1.25rem;
  font-size: .9rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #86EFAC;
}

.alert-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #FCA5A5;
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  border-top: 1px solid var(--dark-border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .5));
}

.footer-link {
  color: var(--text-dim);
  font-size: .875rem;
  transition: color .2s;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
  text-decoration: none;
}

.footer-social:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 255, .08);
  transform: translateY(-3px);
}

/* ===================================================
   LEARN PAGES
   =================================================== */
.course-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, .05);
  border: 1px solid var(--dark-border);
  border-radius: .75rem;
  margin-bottom: .75rem;
  transition: border-color .25s;
}

.course-feature:hover {
  border-color: rgba(0, 212, 255, .3);
}

.check-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 212, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: .9rem;
}

.module-card {
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: .75rem;
  padding: 1.25rem;
  transition: border-color .25s;
}

.module-card:hover {
  border-color: rgba(0, 212, 255, .3);
}

/* ===================================================
   ABOUT PAGE – VALUES
   =================================================== */
.value-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  transition: transform .3s, border-color .3s;
}

.value-card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 47, 190, .4);
}

/* ===================================================
   CONTACT PAGE
   =================================================== */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--dark-border);
  border-radius: 1rem;
  margin-bottom: 1rem;
  transition: border-color .25s;
}

.contact-info-item:hover {
  border-color: rgba(0, 212, 255, .3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: .75rem;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ===================================================
   ANIMATIONS
   =================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, .2);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, .5);
  }
}

/* AOS fallback (if library not loaded) */
[data-aos] {
  opacity: 0;
  transition: opacity .6s, transform .6s;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="zoom-in"] {
  transform: scale(.9);
}

/* ===================================================
   HERO PARTICLE CANVAS
   =================================================== */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===================================================
   GRADIENT BG SECTIONS
   =================================================== */
.bg-grid {
  background-image:
    linear-gradient(rgba(0, 212, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ===================================================
   PROGRESS BARS (skills)
   =================================================== */
.progress-bar-wrap {
  background: rgba(255, 255, 255, .06);
  border-radius: 2rem;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 2rem;
  background: var(--gradient-1);
  transition: width 1.2s ease;
}

/* ===================================================
   MAP EMBED
   =================================================== */
.map-wrap {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--dark-border);
}

.map-wrap iframe {
  display: block;
}

/* ===================================================
   BACK TO TOP
   =================================================== */
#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 20px rgba(0, 212, 255, .3);
}

#back-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#back-top:hover {
  transform: translateY(-3px);
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 212, 255, .08) 0%, rgba(123, 47, 190, .08) 100%);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, .08), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(123, 47, 190, .08), transparent 60%);
}

/* ===================================================
   RESPONSIVE HELPERS
   =================================================== */
@media(max-width:640px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-cta-outline {
    margin-left: 0;
    margin-top: .75rem;
  }

  .timeline-content {
    padding: 1rem;
  }
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0, rgba(0, 212, 255, .12), transparent 60%),
    radial-gradient(ellipse at 70% 0, rgba(123, 47, 190, .12), transparent 60%);
}

/* course enroll banner */
.enroll-banner {
  background: linear-gradient(135deg, rgba(0, 212, 255, .12), rgba(123, 47, 190, .12));
  border: 1px solid rgba(0, 212, 255, .25);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
}