/* ============================================================
   CogniStack — style.css  (Global Shared Styles)
   Dark Glassmorphism + 3D Theme
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');
/* ──────────────────────────────────────────
   CSS Variables
──────────────────────────────────────────── */
:root {
  /* ==================================================
     ULTRA PREMIUM BLACK + GOLD THEME
  ================================================== */

  /* Backgrounds */
  --clr-bg:         #050505;
  --clr-bg2:        #0f0f0f;
  --clr-bg3:        #1a1a1a;

  /* Luxury Accent Colors */
  --clr-cyan:       #ffd369;
  --clr-teal:       #ffb703;
  --clr-blue:       #ffe8a3;
  --clr-glow:       #ffcc00;
  --clr-amber:      #ff9f1c;

  /* Glassmorphism */
  --glass-bg:       rgba(255,255,255,0.06);
  --glass-border:   rgba(255,211,105,0.22);
  --glass-shadow:   
      0 10px 40px rgba(0,0,0,0.65),
      0 0 30px rgba(255,204,0,0.08);

  --glass-blur:     blur(20px);

  /* Typography */
  --clr-text:       #f8f1df;
  --clr-muted:      #c8b98f;
  --clr-heading:    #ffffff;

  /* Hero Gradient */
  --grad-hero:      
      linear-gradient(
        135deg,
        #000000 0%,
        #111111 45%,
        #1c1c1c 100%
      );

  /* Gold Glow Gradient */
  --grad-accent:    
      linear-gradient(
        90deg,
        #ffd369 0%,
        #ffb703 50%,
        #ffcc00 100%
      );

  /* Card Gradient */
  --grad-card:
      linear-gradient(
        145deg,
        rgba(255,211,105,0.14),
        rgba(255,183,3,0.05)
      );

  /* Fonts */
  --font-display: 'Sora', sans-serif;
--font-body: 'Manrope', sans-serif;
--font-text: 'Manrope', sans-serif;

  /* Radius */
  --radius-sm:      10px;
  --radius-md:      18px;
  --radius-lg:      28px;
  --radius-xl:      40px;

  /* Animations */
  --trans-fast:     0.2s ease;
  --trans-med:      0.4s cubic-bezier(0.23,1,0.32,1);
  --trans-slow:     0.7s cubic-bezier(0.23,1,0.32,1);
}


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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: 74px;
  position: relative;
  z-index: 1;
}
body{
    background: var(--grad-hero);
    color: var(--clr-text);
}

.card{
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(18px);
    box-shadow: var(--glass-shadow);
    color: white;
}
h1,h2,h3,h4,h5{
   font-family: var(--font-display);
   font-weight:600;
   letter-spacing:-0.5px;
}

/* Animated starfield background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1px 1px at 10% 20%, rgba(0,229,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(0,200,180,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(77,159,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 85%, rgba(0,255,204,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 90%, rgba(0,229,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grid mesh overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body{
  background: var(--grad-hero);
  color: var(--clr-text);
}

/* Premium Gold Text */
.section-title,
.hero h1{
  background: var(--grad-accent);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Luxury Glass Cards */
.glass,
.card{
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}

/* Hover Glow */
.card:hover{
  border-color: rgba(255,204,0,0.5);
  box-shadow:
    0 15px 45px rgba(0,0,0,0.7),
    0 0 35px rgba(255,204,0,0.18);
}

/* Golden Buttons */
.btn-glow-solid{
  background: var(--grad-accent);
  color:#111;
  font-weight:700;
  box-shadow: 0 0 25px rgba(255,204,0,0.25);
}

.btn-glow-solid:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 40px rgba(255,204,0,0.45);
}

/* ──────────────────────────────────────────
   Typography
──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: #fff !important;
  line-height: 1.2;
}

p { font-family: var(--font-text); color: #dbeafe !important; font-size: 1rem; }
span { color: #dbeafe !important; }
li { color: #dbeafe !important; }

a { color: var(--clr-cyan); text-decoration: none; transition: var(--trans-fast); }
a:hover { color: var(--clr-glow); }

/* ──────────────────────────────────────────
   Section Layout
──────────────────────────────────────────── */
section,
.section {
  padding: 90px 0;
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1160px;
  margin: auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero,
header,
nav,
main,
footer {
  position: relative;
  z-index: 2;
}

/* ──────────────────────────────────────────
   Section Titles
──────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.section-sub {
  text-align: center;
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  font-family: var(--font-text);
}

/* ──────────────────────────────────────────
   Glass Card Base
──────────────────────────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
}

/* ──────────────────────────────────────────
   3D Card Effect
──────────────────────────────────────────── */
.card-3d {
  transform-style: preserve-3d;
  perspective: 800px;
  transition: var(--trans-med);
}

.card-3d:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-4deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,229,255,0.15), 0 0 40px rgba(0,229,255,0.08);
}

/* ──────────────────────────────────────────
   Glow Line (decorative accent)
──────────────────────────────────────────── */
.glow-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-accent);
  border-radius: 2px;
  margin: 0 auto 30px;
  box-shadow: 0 0 12px var(--clr-cyan);
}

.glow-line.left { margin: 0 0 20px; }

/* ──────────────────────────────────────────
   Hero Section (shared)
──────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  padding: 90px 0 80px;
  background: var(--grad-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,200,180,0.07) 0%, transparent 70%);
  animation: heroGlow 8s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes heroGlow {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.15) translate(3%,-3%); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  text-align: left;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(208,232,255,0.85);
  margin-top: 16px;
  text-align: left;
}

img {
  animation: imgPulse 10s ease-in-out infinite alternate;
  transform-origin: center;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

img:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 0 28px rgba(0,229,255,0.22));
}

@keyframes imgPulse {
  0% { filter: brightness(1); transform: translateY(0) scale(1); }
  100% { filter: brightness(1.06); transform: translateY(-2px) scale(1.003); }
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.25));
  transition: var(--trans-med);
  animation: floatImg 5s ease-in-out infinite;
}

.hero-img:hover {
  filter: drop-shadow(0 0 50px rgba(0,229,255,0.45));
  transform: scale(1.04);
}

@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ──────────────────────────────────────────
   Buttons
──────────────────────────────────────────── */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  border: 1.5px solid var(--clr-cyan);
  color: var(--clr-cyan);
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-accent);
  opacity: 0;
  transition: var(--trans-med);
}

.btn-glow:hover {
  color: #fff;
  box-shadow: 0 0 25px rgba(0,229,255,0.5), 0 0 50px rgba(0,229,255,0.2);
  transform: translateY(-2px);
}

.btn-glow:hover::before { opacity: 1; }
.btn-glow span { position: relative; z-index: 1; }

.btn-glow-solid {
  background: var(--grad-accent);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--trans-med);
  box-shadow: 0 0 20px rgba(0,229,255,0.3);
}

.btn-glow-solid:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 35px rgba(0,229,255,0.6);
  color: #fff;
}

/* ──────────────────────────────────────────
   Scroll Animations (JS trigger classes)
──────────────────────────────────────────── */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 1 !important;
  transform: none !important;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.23,1,0.32,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay helper classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ──────────────────────────────────────────
   Neon Badge
──────────────────────────────────────────── */
.badge-neon {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: var(--clr-cyan);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ──────────────────────────────────────────
   Divider
──────────────────────────────────────────── */
.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-cyan), transparent);
  margin: 0;
  opacity: 0.3;
}

/* ──────────────────────────────────────────
   Custom Scrollbar
──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--clr-cyan), var(--clr-teal));
  border-radius: 3px;
}

/* ──────────────────────────────────────────
   Selection
──────────────────────────────────────────── */
::selection {
  background: rgba(0,229,255,0.25);
  color: #fff;
}

/* ──────────────────────────────────────────
   Responsive Helpers
──────────────────────────────────────────── */
@media (max-width: 992px) {
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 60px; }
}

@media (max-width: 768px) {
  .section { padding: 55px 0; }
  .hero { padding: 55px 0 50px; text-align: center; }
  .hero h1, .hero p { text-align: center; }
  .hero .col-lg-6:last-child { margin-top: 30px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
}