/* ==========================================================================
   V2 MASTER CSS - NEO-MINIMALIST GLASS THEME
   ========================================================================== */

/* 1. CSS VARIABLES & ROOT */
:root {
  /* Core Colors */
  --bg-deep: #030305;
  --bg-surface: #0a0a0f;
  --bg-surface-elevated: #11111a;
  
  --primary: #7928ca;
  --primary-glow: rgba(121, 40, 202, 0.4);
  --secondary: #0070f3;
  --secondary-glow: rgba(0, 112, 243, 0.4);
  --accent: #10b981;
  
  /* Typography */
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  
  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(10, 10, 15, 0.6);
  --glass-blur: blur(20px);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* 2. GLOBAL STYLES */
body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: #cbd5e1; /* Sleek, readable blue-gray for dark mode */
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-muted {
  color: #a1a1aa !important; /* Force lighter gray for dark mode readability */
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* 3. TYPOGRAPHY UTILITIES */
.cinematic-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.subtitle-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 600px;
}

/* 4. NAVBAR (FLOATING DOCK) */
.navbar-floating {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  margin-top: 20px;
  padding: 10px 20px !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar-floating .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px !important;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.navbar-floating .nav-link:hover, 
.navbar-floating .nav-link.active {
  color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.05);
}

.navbar-floating .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

/* 5. BUTTONS */
.btn-magnetic {
  background: var(--text-main);
  color: var(--bg-deep);
  border: none;
  border-radius: 100px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
  background: #ffffff;
}

.btn-outline-glass {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 14px 32px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

/* 6. BENTO BOX GRIDS */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255,255,255,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.bento-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bento-item:hover::before {
  opacity: 1;
}

/* Bento sizing classes */
.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }
.bento-col-4 { grid-column: span 4; }

@media (max-width: 991px) {
  .bento-col-8, .bento-col-6, .bento-col-4 {
    grid-column: span 12;
  }
}

/* 7. HERO SECTION ANIMATED MESH */
.hero-mesh {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mesh-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(at 80% 0%, rgba(121, 40, 202, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(0, 112, 243, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
  filter: blur(60px);
  animation: meshFlow 15s ease-in-out infinite alternate;
}

@keyframes meshFlow {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-mesh .container {
  z-index: 2;
  position: relative;
}

/* 8. UI BADGES & ICONS */
.glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.icon-box {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  margin-bottom: 24px;
}

/* 9. HOVER CARDS (3D TILT EFFECT STYLE) */
.hover-card-3d {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hover-card-3d:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  background: var(--bg-surface-elevated);
}

.hover-card-3d .hover-glow {
  position: absolute;
  width: 150px; height: 150px;
  background: var(--primary);
  filter: blur(80px);
  opacity: 0;
  top: -50px; right: -50px;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hover-card-3d:hover .hover-glow {
  opacity: 0.2;
}

/* 10. SECTION PADDING */
.section-v2 {
  padding: 120px 0;
  position: relative;
}

.section-title-v2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

/* 11. CUSTOM INPUTS */
.form-control-glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.3s ease;
}
.form-control-glass:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  color: var(--text-main);
  box-shadow: 0 0 0 4px rgba(121, 40, 202, 0.1);
}
.form-control-glass::placeholder {
  color: #52525b;
}

/* Stats */
.stat-huge {
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-heading);
  line-height: 1;
  background: linear-gradient(to right, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 12. FOOTER V2 */
.footer-v2 {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer-v2::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-glow), transparent);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.footer-v2 .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all 0.3s ease;
  margin-right: 10px;
}

.footer-v2 .social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.footer-bottom-v2 {
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
  padding-top: 30px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
