:root {
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.25);
  --accent: #7df9ff;
  --accent-warm: #ff6b9d;
  --text-primary: #f0f0f0;
  --text-muted: rgba(255, 255, 255, 0.6);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  margin: 0;
  background: #0a0a1a;
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ─── Animated background ─── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-scene::before {
  content: "";
  position: absolute;
  width: 140vmax;
  height: 140vmax;
  top: -40%;
  left: -20%;
  background: conic-gradient(
    from 180deg,
    #1a0533 0deg,
    #0d1f4c 60deg,
    #0a2a3c 120deg,
    #1a0533 180deg,
    #2d1b4e 240deg,
    #0d1f4c 300deg,
    #1a0533 360deg
  );
  animation: rotateBg 40s linear infinite;
}

@keyframes rotateBg {
  to {
    transform: rotate(360deg);
  }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7df9ff 0%, transparent 70%);
  top: 10%;
  left: 60%;
  animation-duration: 18s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ff6b9d 0%, transparent 70%);
  top: 50%;
  left: 10%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  top: 70%;
  left: 70%;
  animation-duration: 25s;
  animation-delay: -10s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(60px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-40px, 30px) scale(0.95);
  }
  100% {
    transform: translate(30px, -60px) scale(1.05);
  }
}

/* ─── Modern Page Loader CSS ─── */
#loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #0a0a1a; /* Dark background matching your theme */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-content {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer Spinning Ring (Cyan) */
.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent); /* #7df9ff */
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Inner Spinning Ring (Pink) */
.loader-circle-inner {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 3px solid transparent;
    border-bottom-color: var(--accent-warm); /* #ff6b9d */
    border-radius: 50%;
    animation: spin-reverse 1s linear infinite;
}

/* Logo in Middle */
.loader-logo {
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(125, 249, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    margin-top: 25px;
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Page Loaded State */
.loaded #loader-wrapper {
    opacity: 0;
    visibility: hidden;
}

/* ─── GLASS NAVBAR ─── */
.navbar-glass {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(10, 10, 26, 0.6) !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.5rem;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.navbar .nav-link {
  color: var(--text-muted) !important;
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.btn-glass {
  background: rgba(125, 249, 255, 0.15);
  border: 1px solid rgba(125, 249, 255, 0.3);
  color: var(--accent);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0.45rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.btn-glass:hover {
  background: rgba(125, 249, 255, 0.25);
  color: #fff;
  box-shadow: 0 0 20px rgba(125, 249, 255, 0.2);
  transform: translateY(-1px);
}

.navbar-toggler {
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ─── Content ─── */
.content-wrapper {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1rem 4rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 span {
  background: linear-gradient(
    135deg,
    var(--accent),
    #a78bfa,
    var(--accent-warm)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero .btn-glass {
  font-size: 1rem;
  padding: 0.7rem 2rem;
}

/* ─── Glass Cards ─── */
.section {
  padding: 6rem 0;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.25rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-icon.cyan {
  background: rgba(125, 249, 255, 0.15);
  color: var(--accent);
}
.card-icon.pink {
  background: rgba(255, 107, 157, 0.15);
  color: var(--accent-warm);
}
.card-icon.purple {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

.glass-card h5 {
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* ─── Code Preview ─── */
.code-glass {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-muted);
  overflow-x: auto;
}

.code-glass .prop {
  color: var(--accent);
}
.code-glass .val {
  color: var(--accent-warm);
}
.code-glass .sel {
  color: #a78bfa;
}
.code-glass .cmt {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

.dot-row {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}

/* ─── Footer Glass Design ─── */
.footer-glass {
    background: rgba(10, 10, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.text-light-muted {
    color: rgba(204, 244, 247, 0.733);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    color: #0a0a1a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(125, 249, 255, 0.3);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-pink {
    color: var(--accent-warm);
}

@media (max-width: 991px) {
    .footer-glass {
        padding: 50px 0 20px;
    }
}

/* ─── Fade-in ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-up:nth-child(2) {
  animation-delay: 0.15s;
}
.fade-up:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 0.75rem;
    border: 1px solid var(--glass-border);
  }
}