/* TechVilla Solutions Custom CSS Stylesheet - Light Theme */

/* Custom Variables */
:root {
  --bg-light: #FAF8FF;
  --bg-card: rgba(255, 255, 255, 0.7);
  --border-card: rgba(15, 23, 42, 0.08);
  --primary-color: #004ac6;
  --primary-glow: rgba(0, 74, 198, 0.08);
  --secondary-color: #4F46E5;
  --accent-cyan: #06B6D4;
  --text-main: #131B2E;
  --text-muted: #434655;
  --font-display: 'Hanken Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Base Styles */
body {
  background-color: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-cyan));
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease;
}

/* Glassmorphism Bento Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.04), 0 0 0 1px var(--primary-glow);
}

/* Spotlight Card Hover Effect (Custom JS tracks clientX/Y) */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    rgba(0, 74, 198, 0.04),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* Frosted Glass Tabs */
.frosted-tab-container {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 6px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reveal Trigger Animation */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom filled material-symbols */
.fill-1 {
  font-variation-settings: 'FILL' 1;
}

/* Active Pill Nav Highlight */
.nav-pill-active {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Connecting Line Pulse */
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; filter: blur(2px); }
  50% { opacity: 0.8; filter: blur(4px); }
}

.timeline-glow {
  animation: glowPulse 3s infinite ease-in-out;
}

/* Primary Button Styles */
.btn-primary {
  background-color: var(--primary-color) !important;
  color: #FFFFFF !important;
  transition: all 0.25s ease-in-out;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px var(--primary-glow);
}

/* Claymorphic Styling - Flat Inflated UI */
.clay-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--border-card);
  border-radius: 32px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.clay-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--primary-color);
}

/* Claymorphic Tabs */
.clay-tab-container {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  padding: 6px;
  border: 1.5px solid var(--border-card);
}

.clay-tab {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.clay-tab-active {
  background: var(--primary-color) !important;
  color: #FFFFFF !important;
}

/* Claymorphic Icon Blobs */
.clay-icon-blob {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease;
}

.clay-card:hover .clay-icon-blob {
  transform: scale(1.08) rotate(5deg);
}

/* Slow spin animation for premium maintenance state */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  display: inline-block;
  animation: spinSlow 12s linear infinite;
}
