/* =================================================================
   Pushpaka Dashaanan - Custom CSS Overrides
   Design System: "The Digital Curator"
   ================================================================= */

/* Root Variables & Theming */
:root {
  --primary: #000a1e;
  --primary-container: #002147;
  --secondary: #006a6a;
  --secondary-container: #90efef;
  --tertiary: #735c00;
  --tertiary-fixed: #ffe088;
  --surface: #f8f9fa;
  --surface-container-low: #f3f4f5;
  --surface-container-highest: #e1e3e4;
  --on-surface: #191c1d;
  --on-surface-variant: #44474e;
  --outline-variant: #c4c6cf;
  
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--on-surface);
  background-color: var(--surface);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* Smooth Glass Effect Navigation */
.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(248, 249, 250, 0.8);
  border-bottom: 1px solid rgba(196, 198, 207, 0.1);
}

/* Premium Gradient Background */
.luxury-gradient {
  background: linear-gradient(135deg, #000a1e 0%, #002147 100%);
}

/* Hero Section Enhancements */
.hero-overlay {
  position: relative;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 10, 30, 0.6), rgba(0, 33, 71, 0.3));
  pointer-events: none;
}

/* Card System - No Borders Rule */
.card-premium {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
  border: none;
}

.card-premium:hover {
  box-shadow: 0 20px 40px rgba(0, 10, 30, 0.08);
  transform: translateY(-4px);
}

/* Tonal Layering for Depth */
.surface-level-1 {
  background-color: #f8f9fa;
}

.surface-level-2 {
  background-color: #f3f4f5;
}

.surface-level-3 {
  background-color: #ffffff;
}

/* "Ghost Border" Fallback - 20% Opacity */
.ghost-border {
  border: 2px solid rgba(196, 198, 207, 0.2);
}

/* Button System */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #000a1e 0%, #002147 100%);
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 8px 20px rgba(0, 10, 30, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 10, 30, 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #000a1e;
  border: 2px solid rgba(196, 198, 207, 0.2);
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: rgba(0, 10, 30, 0.3);
  background-color: rgba(0, 10, 30, 0.02);
}

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #ffe088;
  color: #4f3e00;
  border: none;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-tertiary:hover {
  background-color: #e9c349;
  transform: translateY(-1px);
}

/* Input System - Minimalist Style */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 1rem;
  background-color: #f3f4f5;
  border: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--on-surface);
  transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(0, 106, 106, 0.4);
}

/* Status Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.chip-success {
  background-color: #93f2f2;
  color: #004f4f;
}

.chip-warning {
  background-color: #ffe088;
  color: #574500;
}

.chip-info {
  background-color: #d6e3ff;
  color: #001b3d;
}

/* Hover Effects for Interactive Elements */
a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--secondary);
}

/* Icon Enhancement */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  display: inline-block;
}

.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Sticky Header Behavior */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all var(--transition-base);
}

header.scrolled {
  background-color: rgba(248, 249, 250, 0.95) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Product Grid System */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 0.75rem;
  transition: transform var(--transition-slow);
}

.product-card:hover img {
  transform: scale(1.08);
}

/* Section Spacing */
section {
  padding: 6rem 2rem;
}

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }
}

/* Footer */
footer {
  background-color: #000a1e;
  color: #e8e8e8;
}

footer a {
  color: #b0b0b0;
}

footer a:hover {
  color: #ffe088;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
  outline: 2px dashed #006a6a;
  outline-offset: 4px;
}

/* ================================================================
   STATS SECTION - Enhanced with Animations
   ================================================================ */

.stats-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f5 100%);
  position: relative;
}

/* Stat Card Styles */
.stat-card {
  transition: all var(--transition-base);
}

.stat-card.animate-in {
  animation: statCardEntry 0.6s ease-out forwards;
}

.stat-card:nth-child(1).animate-in {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2).animate-in {
  animation-delay: 0.2s;
}

.stat-card:nth-child(3).animate-in {
  animation-delay: 0.3s;
}

.stat-card:nth-child(4).animate-in {
  animation-delay: 0.4s;
}

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

.stat-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  color: #000a1e;
  box-shadow: 0 4px 15px rgba(0, 10, 30, 0.08);
}

.stat-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000a1e, #006a6a);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stat-card:hover .stat-card-inner::before {
  opacity: 1;
}

.stat-card:hover .stat-card-inner {
  border-color: rgba(0, 106, 106, 0.2);
  box-shadow: 0 12px 32px rgba(0, 10, 30, 0.16);
  transform: translateY(-8px);
}

.stat-card:hover .stat-card-inner {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Icon Styling */
.stat-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 10, 30, 0.08), rgba(0, 106, 106, 0.08));
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: all var(--transition-base);
}

.stat-card:hover .stat-icon-wrapper {
  background: linear-gradient(135deg, rgba(0, 10, 30, 0.12), rgba(0, 106, 106, 0.12));
  transform: scale(1.1) rotate(5deg);
}

.stat-icon {
  font-size: 1.75rem !important;
  color: #000a1e;
  font-variation-settings: 'FILL' 1, 'wght' 400;
  transition: all var(--transition-base);
}

.stat-card:hover .stat-icon {
  color: #006a6a;
  transform: scale(1.15);
}

/* Content Styling */
.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #000a1e;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'Manrope', sans-serif;
  transition: all var(--transition-base);
}

.stat-card:hover .stat-number {
  color: #006a6a;
  transform: scale(1.05);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #44474e;
  transition: all var(--transition-base);
}

.stat-card:hover .stat-label {
  color: #000a1e;
}

/* Accent Line Animation */
.stat-accent-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #006a6a, transparent);
  width: 0;
  transition: width var(--transition-base);
}

.stat-card:hover .stat-accent-line {
  width: 100%;
}

/* Counter Animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.stat-number.count-up {
  animation: countUp 0.6s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .stat-card-inner {
    padding: 1.5rem 1rem;
  }
  
  .stat-icon-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .stat-icon {
    font-size: 1.5rem !important;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }
}
