@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Dancing+Script:wght@600;700&family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

body {
  font-family: "Inter", sans-serif;
  overflow-x: clip;
  color: hsl(var(--foreground));
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Sora", sans-serif;
}

.font-script {
  font-family: 'Caveat', 'Dancing Script', cursive;
}

@layer utilities {
  .container-narrow { @apply mx-auto w-full max-w-[56rem] px-5; }
  .container-std { @apply mx-auto w-full max-w-[75rem] px-5; }
  .container-wide { @apply mx-auto w-full max-w-[90rem] px-5; }
  .text-balance { text-wrap: balance; }
}

@keyframes iice-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.animate-marquee { animation: iice-marquee 30s linear infinite; }

@keyframes iice-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: iice-fade-up 0.6s ease-out both; }

/* Multi-reveal animations */
@keyframes reveal-slide-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-scale-up {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes reveal-word-slide {
  0% {
    opacity: 0;
    transform: translateY(70%) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtle-zoom-hero {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-hero-zoom {
  animation: subtle-zoom-hero 6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-up {
  animation: reveal-slide-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-reveal-scale {
  animation: reveal-scale-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-word-flip {
  animation: reveal-word-slide 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes split-reveal-left {
  0% {
    opacity: 0;
    transform: translateX(-35px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes split-reveal-right {
  0% {
    opacity: 0;
    transform: translateX(35px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

.animate-split-left {
  animation: split-reveal-left 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-split-right {
  animation: split-reveal-right 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Dynamic Rotating Hero Description Transitions */
@keyframes content-enter-left {
  0% {
    opacity: 0;
    transform: translateX(-28px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes content-enter-right {
  0% {
    opacity: 0;
    transform: translateX(28px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes content-exit {
  0% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(4px);
  }
}

.animate-content-enter-left {
  animation: content-enter-left 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-content-enter-right {
  animation: content-enter-right 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-content-exit {
  animation: content-exit 0.35s cubic-bezier(0.4, 0, 1, 1) both;
}

/* Dynamic Corner Thought Card Transitions */
@keyframes thought-enter-left {
  0% {
    opacity: 0;
    transform: translateX(-20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes thought-enter-right {
  0% {
    opacity: 0;
    transform: translateX(20px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes thought-exit {
  0% {
    opacity: 1;
    transform: translate(0, 0);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translate(12px, -10px);
    filter: blur(4px);
  }
}

.animate-thought-enter-left {
  animation: thought-enter-left 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-thought-enter-right {
  animation: thought-enter-right 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-thought-exit {
  animation: thought-exit 0.35s cubic-bezier(0.4, 0, 1, 1) both;
}

/* Subtle Shimmer Micro-Animation for Accent Line */
@keyframes accent-shimmer {
  0%, 100% {
    transform: translateX(-15%);
    opacity: 0.75;
  }
  50% {
    transform: translateX(15%);
    opacity: 1;
  }
}

/* Dynamic Tagline Character / Word Animations */
@keyframes tagline-char-in-left {
  0% {
    opacity: 0;
    transform: translateX(-24px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes tagline-char-in-right {
  0% {
    opacity: 0;
    transform: translateX(24px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
}

@keyframes tagline-char-out-left {
  0% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(-16px);
    filter: blur(3px);
  }
}

@keyframes tagline-char-out-right {
  0% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(16px);
    filter: blur(3px);
  }
}

@keyframes tagline-divider-in {
  0% {
    opacity: 0;
    transform: scaleY(0.6);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes tagline-dash-pulse {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.9;
  }
  50% {
    transform: scaleX(0.75);
    opacity: 1;
  }
}

.animate-tagline-left-in {
  animation: tagline-char-in-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-tagline-right-in {
  animation: tagline-char-in-right 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-tagline-left-out {
  animation: tagline-char-out-left 0.35s cubic-bezier(0.4, 0, 1, 1) both;
}

.animate-tagline-right-out {
  animation: tagline-char-out-right 0.35s cubic-bezier(0.4, 0, 1, 1) both;
}

.animate-tagline-divider {
  animation: tagline-divider-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-tagline-dash {
  animation: tagline-dash-pulse 3.5s ease-in-out infinite;
}

/* Blue Pulse Shadow Animation for Highlighting Cards */
@keyframes pulse-shadow-blue {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 4px 16px rgba(4, 18, 45, 0.35), 0 0 10px 1px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.8), 0 0 22px 6px rgba(59, 130, 246, 0.65), 0 0 36px 10px rgba(37, 99, 235, 0.35), 0 8px 24px rgba(4, 18, 45, 0.45);
  }
}

.animate-pulse-shadow-blue {
  animation: pulse-shadow-blue 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Reduced Motion Handling */
@media (prefers-reduced-motion: reduce) {
  .animate-tagline-left-in,
  .animate-tagline-right-in,
  .animate-split-left,
  .animate-split-right,
  .animate-content-enter-left,
  .animate-content-enter-right,
  .animate-thought-enter-left,
  .animate-thought-enter-right,
  .animate-reveal-up,
  .animate-reveal-scale,
  .animate-word-flip,
  .animate-hero-zoom {
    animation: simple-fade-in 0.25s ease-out both !important;
    transform: none !important;
    filter: none !important;
  }
  .animate-content-exit,
  .animate-thought-exit {
    animation: simple-fade-out 0.2s ease-out both !important;
    transform: none !important;
    filter: none !important;
  }
  .animate-accent-shimmer {
    animation: none !important;
  }
}

@keyframes simple-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes simple-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes orange-shadow-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.25), 0 8px 25px -8px rgba(0, 0, 0, 0.08);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 107, 0, 0.6), 0 12px 30px -5px rgba(255, 107, 0, 0.25);
  }
}
.animate-orange-pulse {
  animation: orange-shadow-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.hover-orange-pulse:hover {
  animation: orange-shadow-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.group:hover .group-hover-orange-pulse {
  animation: orange-shadow-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes navy-shadow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 29, 66, 0.45), 0 10px 30px -8px rgba(6, 29, 66, 0.5);
  }
  50% {
    box-shadow: 0 0 45px rgba(9, 43, 99, 0.85), 0 16px 36px -5px rgba(6, 29, 66, 0.65);
  }
}
.animate-navy-pulse {
  animation: navy-shadow-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes white-shadow-pulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.9), 0 4px 14px rgba(255, 255, 255, 0.6);
  }
}
.animate-white-pulse {
  animation: white-shadow-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes orange-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4), inset 0 0 15px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.5);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 107, 0, 0.85), inset 0 0 25px rgba(255, 107, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.9);
    opacity: 1;
  }
}
.animate-orange-ring-pulse {
  animation: orange-ring-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes blue-ring-pulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3), inset 0 0 15px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    opacity: 0.75;
  }
  50% {
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.75), inset 0 0 25px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.85);
    opacity: 1;
  }
}
.animate-blue-ring-pulse {
  animation: blue-ring-pulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbit-counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
.animate-orbit {
  animation: orbit-spin 22s linear infinite;
}
.animate-orbit-counter {
  animation: orbit-counter-spin 22s linear infinite;
}
.animate-orbit:hover, .animate-orbit:hover .animate-orbit-counter {
  animation-play-state: paused;
}

@keyframes star-flash {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.65) rotate(0deg);
    filter: drop-shadow(0 0 3px rgba(255, 107, 0, 0.4));
  }
  50% {
    opacity: 1;
    transform: scale(1.35) rotate(45deg);
    filter: drop-shadow(0 0 10px rgba(255, 180, 50, 1)) drop-shadow(0 0 18px rgba(255, 107, 0, 0.9));
  }
}
@keyframes star-flash-alt {
  0%, 100% {
    opacity: 1;
    transform: scale(1.3) rotate(-30deg);
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 1)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.8));
  }
  50% {
    opacity: 0.2;
    transform: scale(0.6) rotate(15deg);
    filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.3));
  }
}
@keyframes star-twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}
.animate-star-flash {
  animation: star-flash 1.8s ease-in-out infinite;
}
.animate-star-flash-alt {
  animation: star-flash-alt 2.2s ease-in-out infinite;
}
.animate-star-twinkle {
  animation: star-twinkle 1.5s ease-in-out infinite;
}

@keyframes float-up-down-1 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3.5px);
  }
}
@keyframes float-up-down-2 {
  0%, 100% {
    transform: translateY(-1.5px);
  }
  50% {
    transform: translateY(2.5px);
  }
}
@keyframes float-up-down-3 {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3.5px);
  }
}

@keyframes crystal-float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
  }
  50% {
    transform: translateY(-12px) rotate(6deg) scale(1.04);
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.75));
  }
}
@keyframes crystal-float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
  }
  50% {
    transform: translateY(10px) rotate(-6deg) scale(0.96);
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.75));
  }
}

.animate-float-1 {
  animation: float-up-down-1 3.5s ease-in-out infinite;
}
.animate-float-2 {
  animation: float-up-down-2 4.2s ease-in-out infinite 0.8s;
}
.animate-float-3 {
  animation: float-up-down-3 3.8s ease-in-out infinite 1.6s;
}
.animate-accent-shimmer {
  animation: accent-shimmer 2.5s ease-in-out infinite;
}

.animate-crystal-1 {
  animation: crystal-float-slow 6.5s ease-in-out infinite;
}
.animate-crystal-2 {
  animation: crystal-float-reverse 8s ease-in-out infinite;
}
.animate-crystal-3 {
  animation: crystal-float-slow 7.2s ease-in-out infinite 1.5s;
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee, .animate-fade-up, .animate-orange-pulse, .animate-navy-pulse, .animate-orange-ring-pulse, .animate-blue-ring-pulse, .animate-orbit, .animate-orbit-counter, .animate-star-flash, .animate-star-flash-alt, .animate-star-twinkle, .animate-float-1, .animate-float-2, .animate-float-3, .animate-crystal-1, .animate-crystal-2, .animate-crystal-3 { animation: none; }
}

/*
  ---break---
*/

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 240 10% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 219 64% 22%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 16% 96%;
    --secondary-foreground: 219 64% 22%;
    --navy: 219 64% 22%;
    --navy-deep: 219 70% 14%;
    --orange: 24 94% 52%;
    --orange-fg: 0 0% 100%;
    --muted: 240 4.8% 95.9%;
    --muted-foreground: 240 3.8% 46.1%;
    --accent: 240 4.8% 95.9%;
    --accent-foreground: 240 5.9% 10%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 5.9% 90%;
    --input: 240 5.9% 90%;
    --ring: 240 5.9% 10%;
    --radius: 0.5rem;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
  .dark {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
}

/* ========================================================
   GLOBAL COMPREHENSIVE RESPONSIVENESS SYSTEM
   Optimized for Mobile, Tablet, Laptop, Desktop & 4K PC
   ======================================================== */

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

/* Responsive Media Handling */
img, svg, video, canvas, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Text Wrapping & Overflow Safety */
p, h1, h2, h3, h4, h5, h6, span, a, label, li, td, th {
  overflow-wrap: break-word;
}

/* Smooth Touch Scrolling on Tables & Scrollable Boxes */
.table-responsive,
.overflow-x-auto,
[class*="overflow-x-auto"] {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Form Elements Adaptive Sizing */
input, select, textarea, button {
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive Container Padding */
@media (max-width: 639px) {
  .container-narrow,
  .container-std,
  .container-wide {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .container-narrow,
  .container-std,
  .container-wide {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* Laptop & Desktop Container Balance */
@media (min-width: 1024px) and (max-width: 1439px) {
  .container-wide {
    max-width: 100%;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

/* Large Desktop / PC (> 1440px) */
@media (min-width: 1440px) {
  .container-wide {
    max-width: 96rem;
  }
}

/* Universal Theme Adaptive Font Colors & Legibility */
html.dark,
body.dark-mode {
  color-scheme: dark;
}

html:not(.dark):not(.dark-mode) {
  color-scheme: light;
}

html.dark input,
html.dark select,
html.dark textarea,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  color: #F8FAFC;
}

html.dark input::placeholder,
html.dark textarea::placeholder,
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #728AA9;
}

