/* ========================================================================= */
/* CODIOTIC EDUTECH SOLUTIONS — DESIGN SYSTEM & TOKENS                        */
/* ========================================================================= */

:root {
  /* Official Codiotic Brand Colors */
  --codiotic-green: #7FB400;
  --codiotic-yellow: #FEB001;
  --codiotic-blue: #00A1E7;
  --codiotic-orange: #F1501C;

  /* Aliases for flexible referencing */
  --brand-green: var(--codiotic-green);
  --brand-yellow: var(--codiotic-yellow);
  --brand-blue: var(--codiotic-blue);
  --brand-orange: var(--codiotic-orange);
  
  --brand-green-rgb: 127, 180, 0;
  --brand-yellow-rgb: 254, 176, 1;
  --brand-blue-rgb: 0, 161, 231;
  --brand-orange-rgb: 241, 80, 28;

  /* White-First Neutral Surface System */
  --color-surface-bg: #FFFFFF;
  --color-surface-subtle: #FAFAFA;
  --color-surface-muted: #F4F4F5;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-subtle: rgba(0, 0, 0, 0.05);
  --color-text-primary: #000000;
  --color-text-secondary: #52525B;
  --color-text-muted: #71717A;

  /* 8px Spacing Logic & Radii */
  --radius-sm: 16px;
  --radius-md: 20px;
  --radius-lg: 24px;
  --radius-xl: 28px;
}

/* ========================================================================= */
/* GOOGLE SANS LOCAL FONT FAMILY DECLARATIONS                                 */
/* ========================================================================= */
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Regular.ttf') format('truetype'),
       url('fonts/GoogleSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Medium.ttf') format('truetype'),
       url('fonts/GoogleSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Medium.ttf') format('truetype'),
       url('fonts/GoogleSans-Medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Bold.ttf') format('truetype'),
       url('fonts/GoogleSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Google Sans';
  src: url('../fonts/GoogleSans-Bold.ttf') format('truetype'),
       url('fonts/GoogleSans-Bold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Base Body Styles */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-surface-bg);
  color: var(--color-text-primary);
  overflow-x: hidden;
  max-width: 100vw;
  text-transform: capitalize;
}

/* Universal Capitalized Case Typography Enforcement */
body, div, p, span, a, button, h1, h2, h3, h4, h5, h6, li, label, strong, b, em, small, th, td, dt, dd, blockquote, figcaption {
  text-transform: capitalize !important;
}

.uppercase {
  text-transform: capitalize !important;
}

.capitalize {
  text-transform: capitalize !important;
}

.lowercase {
  text-transform: lowercase !important;
}

.normal-case {
  text-transform: none !important;
}

/* Form Controls & User Inputs - Strict preservation of typed casing & lowercase emails */
input, textarea, select {
  text-transform: none !important;
}

input[type="email"],
input[type="url"],
.email-input {
  text-transform: lowercase !important;
}

input::placeholder, 
textarea::placeholder {
  text-transform: none !important;
}

/* Fluid Editorial Typography */
.text-hero-clamp {
  font-size: clamp(2.15rem, 6vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.text-section-clamp {
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.text-subhead-clamp {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

/* Solid Architectural Surfaces (100% Borderless) */
.surface-card {
  background: #FFFFFF;
  border: 0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.surface-card-subtle {
  background: #F8FAFC;
  border: 0;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.03);
}

.surface-card-dark {
  background: #000000;
  border: 0;
  color: #FFFFFF;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.25);
}

/* Solid Brand Badges */
.badge-green {
  background-color: #7FB400;
  color: #FFFFFF;
}

.badge-yellow {
  background-color: #FEB001;
  color: #000000;
}

.badge-blue {
  background-color: #00A1E7;
  color: #FFFFFF;
}

.badge-orange {
  background-color: #F1501C;
  color: #FFFFFF;
}

.badge-dark {
  background-color: #000000;
  color: #FFFFFF;
}

/* Solid Brand Cards (100% Borderless) */
.card-border-green {
  border: 0;
}

.card-border-yellow {
  border: 0;
}

.card-border-blue {
  border: 0;
}

.card-border-orange {
  border: 0;
}

/* Custom Refined Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f4f4f5;
}
::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Native-Feeling Swipe Carousel */
.snap-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snap-carousel::-webkit-scrollbar {
  display: none;
}
.snap-carousel-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Tactile Micro-Interactions */
.tactile-button {
  transition: transform 0.15s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.15s ease, background-color 0.15s ease;
}
.tactile-button:hover {
  transform: translateY(-1px);
}
.tactile-button:active {
  transform: scale(0.975);
}

.card-hover-lift {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.card-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
}

/* Brand Accent Ambient Box Shadows (Borderless) */
.shadow-solid-green {
  box-shadow: 0 10px 25px -3px rgba(127, 180, 0, 0.25);
}
.shadow-solid-yellow {
  box-shadow: 0 10px 25px -3px rgba(254, 176, 1, 0.25);
}
.shadow-solid-blue {
  box-shadow: 0 10px 25px -3px rgba(0, 161, 231, 0.25);
}
.shadow-solid-orange {
  box-shadow: 0 10px 25px -3px rgba(241, 80, 28, 0.25);
}
.shadow-solid-dark {
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.25);
}

/* Brand Accent Borders (Borderless fallback) */
.border-brand-green { border: 0; }
.border-brand-yellow { border: 0; }
.border-brand-blue { border: 0; }
.border-brand-orange { border: 0; }

.text-brand-green { color: var(--brand-green); }
.text-brand-yellow { color: var(--brand-yellow); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-orange { color: var(--brand-orange); }

.bg-brand-green { background-color: var(--brand-green); }
.bg-brand-yellow { background-color: var(--brand-yellow); }
.bg-brand-blue { background-color: var(--brand-blue); }
.bg-brand-orange { background-color: var(--brand-orange); }

/* Horizontal rail styling */
.marquee-container {
  display: flex;
  overflow-x: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 1.25rem;
  will-change: transform;
}

/* Continuous Infinite Auto-Slide Ticker */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-infinite-scroll {
  display: flex;
  width: max-content;
  animation: infiniteScroll 32s linear infinite;
  will-change: transform;
}

.animate-infinite-scroll:hover {
  animation-play-state: paused;
}

@keyframes infiniteScrollReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.animate-infinite-scroll-reverse {
  display: flex;
  width: max-content;
  animation: infiniteScrollReverse 32s linear infinite;
  will-change: transform;
}

.animate-infinite-scroll-reverse:hover {
  animation-play-state: paused;
}

/* Full 1920x1080 Hero Slider Smooth Transitions */
.hero-slide {
  transition: opacity 1000ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.hero-slide img {
  transition: transform 7000ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}
.hero-slide.active img {
  transform: scale(1.05);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
