/*
Theme Name: TechVision LearnRoot Custom Theme
Theme URI: https://techvision.org.in
Author: TechVision Digital
Description: Translucent Glassmorphism theme converted from Next.js for TechVision LearnRoot.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techvision
*/

:root {
  --background: #F4FCFD; /* Super clean light cyan/white background */
  --foreground: #0F224B; /* Deep navy text */
  --primary: #26C5D8; /* Main logo cyan */
  --primary-glow: rgba(38, 197, 216, 0.12);
  --secondary: #0F224B; /* Navy from the logo text */
  --secondary-glow: rgba(15, 34, 75, 0.12);
  --accent: #D9AE2B; /* Golden yellow from the tagline markers */
  --accent-glow: rgba(217, 174, 43, 0.12);
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.75);
  --card-border-hover: rgba(38, 197, 216, 0.35);
  --card-glow: 0 8px 32px 0 rgba(38, 197, 216, 0.08), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--foreground);
  background-color: var(--background);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Background animated mesh radial gradients (Cyan, White & Amber blend) */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(38, 197, 216, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(217, 174, 43, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
}

/* Noise texture overlay for premium depth */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography settings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: #0F224B; /* Deep Navy */
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  color: #3F4E66; /* Slate Navy */
  line-height: 1.6;
  font-size: 1rem;
}

/* Text Gradients (Teal, Cyan, Navy, and Gold) */
.text-gradient {
  background: linear-gradient(135deg, #26C5D8 0%, #15A2B5 50%, #0F224B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #26C5D8 0%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FBBF24 0%, #D9AE2B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Grid/Flex Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Floating Glassmorphism Navbar (White / Translucent Cyan) */
.navbar-float {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: rgba(244, 252, 253, 0.6);
  backdrop-filter: blur(18px);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  z-index: 1000;
  padding: 12px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px 0 rgba(38, 197, 216, 0.06);
  transition: all 0.3s ease;
}

.navbar-float.scrolled {
  top: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(38, 197, 216, 0.2);
  padding: 8px 24px;
}

/* Glassmorphism Card System (Translucent White / Cyan Outline) */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--card-glow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.4), transparent 40%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 40px 0 rgba(38, 197, 216, 0.12), 0 0 20px 0 rgba(38, 197, 216, 0.05);
}

.glass-card.card-blue:hover {
  box-shadow: 0 16px 40px 0 rgba(38, 197, 216, 0.12), 0 0 20px 0 var(--primary-glow);
}

.glass-card.card-purple:hover {
  box-shadow: 0 16px 40px 0 rgba(38, 197, 216, 0.12), 0 0 20px 0 var(--secondary-glow);
}

.glass-card.card-cyan:hover {
  box-shadow: 0 16px 40px 0 rgba(38, 197, 216, 0.12), 0 0 20px 0 var(--accent-glow);
}

/* Modern Gradient Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #26C5D8 0%, #0F224B 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(38, 197, 216, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15A2B5 0%, #0A1931 100%);
  box-shadow: 0 6px 20px rgba(38, 197, 216, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: #0F224B;
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(38, 197, 216, 0.3);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #FBBF24 0%, #D9AE2B 100%);
  color: #0F224B;
  box-shadow: 0 4px 15px rgba(217, 174, 43, 0.25);
  border: 1px solid rgba(217, 174, 43, 0.2);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #C69A20 100%);
  box-shadow: 0 6px 20px rgba(217, 174, 43, 0.4);
  transform: translateY(-2px);
}

/* Animations */
.animate-fade-up {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.animate-float {
  animation: floatObj 8s ease-in-out infinite;
}

@keyframes floatObj {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* Custom Input Fields */
.input-group {
  position: relative;
  margin-bottom: 24px;
  width: 100%;
}

.input-field {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(38, 197, 216, 0.15);
}

.input-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #3F4E66;
  transition: all 0.3s ease;
  pointer-events: none;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
  top: 0;
  font-size: 0.75rem;
  color: var(--primary);
  background: #F4FCFD;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F4FCFD;
}
::-webkit-scrollbar-thumb {
  background: rgba(38, 197, 216, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(38, 197, 216, 0.3);
}

/* Interactive Logo Hover */
.logo-hover {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.logo-hover:hover {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 8px 24px rgba(38, 197, 216, 0.25);
}

/* Extra alignments */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }
.w-10 { width: 40px; }
.h-10 { height: 40px; }
.rounded-xl { border-radius: 12px; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.bg-cyan-500\/10 { background-color: rgba(38, 197, 216, 0.1); }
.border-cyan-500\/20 { border-color: rgba(38, 197, 216, 0.2); }
.text-cyan-600 { color: #15A2B5; }
.text-cyan-700 { color: #0D9488; }
.text-cyan-800 { color: #0F224B; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase { text-transform: uppercase; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.shrink-0 { flex-shrink: 0; }
.fixed { position: fixed; }
.bottom-6 { bottom: 24px; }
.right-6 { right: 24px; }
.z-50 { z-index: 50; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}
