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

:root {
  --bg-color: #050810;
  --bg-gradient: radial-gradient(circle at 10% 20%, rgb(0, 52, 89) 0%, rgb(0, 0, 0) 90%);
  --glass-bg: rgba(10, 15, 30, 0.6);
  --glass-border: rgba(0, 229, 255, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --neon-blue: #00e5ff;
  --deep-blue: #0044ff;
  --accent-glow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-family: 'Inter', 'Noto Sans SC', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-color);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
}

a:hover {
  color: var(--neon-blue);
  text-shadow: var(--accent-glow);
}

ul {
  list-style: none;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  padding: 15px 5%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--neon-blue);
  box-shadow: var(--accent-glow);
  transition: var(--transition);
}

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

.nav-links a.active {
  color: var(--neon-blue);
}

/* Layout */
main {
  flex: 1;
  margin-top: 70px; /* offset for fixed header */
  padding-bottom: 60px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Carousel Banner */
.carousel-container {
  position: relative;
  width: 100%;
  height: 550px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 8, 16, 0.7); /* dark overlay */
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.carousel-content {
  position: relative;
  z-index: 11;
  max-width: 800px;
  padding: 0 5%;
}

.carousel-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease 0.3s;
  text-wrap: balance;
}

.carousel-content p {
  font-size: 1.2rem;
  color: #e2e8f0;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease 0.5s;
}

.carousel-slide.active .carousel-content h1,
.carousel-slide.active .carousel-content p {
  transform: translateY(0);
  opacity: 1;
}

.carousel-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 12;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--neon-blue);
  box-shadow: var(--accent-glow);
}

/* Page Hero (Other Pages) */
.page-hero {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(5, 8, 16, 0.75); /* Dark overlay */
  z-index: 1;
}

.page-hero img.bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 5%;
}

.page-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-content p {
  font-size: 1.15rem;
  color: #f8fafc;
  line-height: 1.8;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Old Hero (Fallback) */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Cards & Glassmorphism */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.1);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Enhanced icon layout */
.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 229, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.glass-card:hover .feature-icon-wrapper {
  background: rgba(0, 229, 255, 0.15);
  transform: rotate(5deg) scale(1.1);
  box-shadow: var(--accent-glow);
}

.feature-icon-wrapper i {
  font-size: 2rem;
  color: var(--neon-blue);
}

.glass-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* In cards without wrappers */
.glass-card > h3 > i {
  color: var(--neon-blue);
  font-size: 1.5rem;
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Specific Section Typography */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -10px;
  left: 25%;
  background: var(--neon-blue);
  box-shadow: var(--accent-glow);
  border-radius: 2px;
}

/* Footer */
footer {
  background: rgba(5, 8, 16, 0.9);
  border-top: 1px solid var(--glass-border);
  padding: 60px 5% 30px;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a, .footer-col span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  margin: 0 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-content h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .nav-links {
    display: none; 
  }
}
