/**
 * Raidho Coaching - Main CSS Design System
 * 
 * This file contains:
 * 1. CSS Custom Properties (Design Tokens)
 * 2. CSS Reset & Base Styles
 * 3. Typography System
 * 4. Layout Utilities
 * 5. Component Base Styles
 * 6. Accessibility Defaults
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Color Palette */
  --primary: #2B8A8F;
  --secondary: #E8DCC8;
  --accent: #A8532F;
  --text-primary: #1F2121;
  --text-secondary: #626C6E;
  --text-light: #FFFDF9;
  --bg-primary: #FFFDF9;
  --bg-secondary: #F5F1E8;
  --bg-accent-light: rgba(43, 138, 143, 0.08);
  --border-color: rgba(43, 138, 143, 0.15);
  --border-light: rgba(43, 138, 143, 0.08);
  --success: #22C55E;
  --warning: #EAB308;
  --error: #EF4444;

  /* Typography - Font Families */
  --font-serif: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* Typography - Font Sizes */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
  --font-size-6xl: 60px;

  /* Typography - Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Typography - Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing System */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Border Radius - More rounded for modern look */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Shadows - Softer, more elegant */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(43, 138, 143, 0.08);
  --shadow-md: 0 4px 16px rgba(43, 138, 143, 0.1);
  --shadow-lg: 0 8px 30px rgba(43, 138, 143, 0.12);
  --shadow-xl: 0 16px 50px rgba(43, 138, 143, 0.15);
  --shadow-glow: 0 0 40px rgba(43, 138, 143, 0.2);

  /* Responsive Breakpoints */
  --mobile: 480px;
  --tablet: 768px;
  --desktop: 1024px;
  --wide: 1280px;
  --ultra: 1536px;

  /* Transitions - Slow & Magical */
  --duration-fast: 600ms;
  --duration-normal: 900ms;
  --duration-slow: 1500ms;
  --duration-magical: 2000ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-silk: cubic-bezier(0.19, 1, 0.22, 1);
  
  /* Focus ring */
  --focus-ring: 0 0 0 3px rgba(43, 138, 143, 0.25);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --header-height: 80px;
}

/* ============================================
   2. CSS RESET & BASE STYLES
   ============================================ */

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default button styles */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

/* Remove default anchor styles */
a {
  color: inherit;
  text-decoration: none;
}

/* Make images responsive by default */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove default form element styling */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Remove default table styling */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Default strong and em styling */
strong,
b {
  font-weight: var(--font-weight-bold);
}

em,
i {
  font-style: italic;
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

/* Lead paragraph */
.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

/* Small text */
.small,
small {
  font-size: var(--font-size-sm);
}

/* Extra small text */
.text-xs {
  font-size: var(--font-size-xs);
}

/* Links - Slow smooth transitions */
a {
  color: var(--primary);
  transition: color 0.8s cubic-bezier(0.19, 1, 0.22, 1), 
              text-decoration-color 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Link with underline */
.link-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-underline:hover {
  text-decoration-color: var(--accent);
}

/* Code and pre */
code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  background-color: var(--text-primary);
  color: var(--text-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  background: none;
  padding: 0;
}

/* Blockquote */
blockquote {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-style: italic;
  color: var(--text-primary);
  border-left: 4px solid var(--primary);
  padding-left: var(--space-lg);
  margin: var(--space-lg) 0;
}

/* Text colors */
.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-light {
  color: var(--text-light);
}

.text-accent {
  color: var(--accent);
}

.text-brand {
  color: var(--primary);
}

/* Text alignment */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Text transform */
.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.capitalize {
  text-transform: capitalize;
}

/* Font weights */
.font-light {
  font-weight: var(--font-weight-light);
}

.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Font families */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* ============================================
   4. LAYOUT UTILITIES
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* Flex Utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.items-stretch {
  align-items: stretch;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

/* Gap utilities */
.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

/* Spacing Utilities - Margin */
.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.ml-0 { margin-left: 0; }
.ml-xs { margin-left: var(--space-xs); }
.ml-sm { margin-left: var(--space-sm); }
.ml-md { margin-left: var(--space-md); }
.ml-lg { margin-left: var(--space-lg); }
.ml-xl { margin-left: var(--space-xl); }

.mr-0 { margin-right: 0; }
.mr-xs { margin-right: var(--space-xs); }
.mr-sm { margin-right: var(--space-sm); }
.mr-md { margin-right: var(--space-md); }
.mr-lg { margin-right: var(--space-lg); }
.mr-xl { margin-right: var(--space-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Spacing Utilities - Padding */
.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.pt-0 { padding-top: 0; }
.pt-xs { padding-top: var(--space-xs); }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-xs { padding-bottom: var(--space-xs); }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

.pl-0 { padding-left: 0; }
.pl-xs { padding-left: var(--space-xs); }
.pl-sm { padding-left: var(--space-sm); }
.pl-md { padding-left: var(--space-md); }
.pl-lg { padding-left: var(--space-lg); }
.pl-xl { padding-left: var(--space-xl); }

.pr-0 { padding-right: 0; }
.pr-xs { padding-right: var(--space-xs); }
.pr-sm { padding-right: var(--space-sm); }
.pr-md { padding-right: var(--space-md); }
.pr-lg { padding-right: var(--space-lg); }
.pr-xl { padding-right: var(--space-xl); }

.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* Height utilities */
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Z-index utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.hidden { display: none; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Background utilities */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-accent-light { background-color: var(--bg-accent-light); }
.bg-brand { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }

/* Border utilities */
.border { border: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-l { border-left: 1px solid var(--border-color); }
.border-r { border-right: 1px solid var(--border-color); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadow utilities */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ============================================
   5. COMPONENT BASE STYLES
   ============================================ */

/* ============================================
   BUTTON BASE - Magical Golden Wipe Effect
   ============================================ */

/* Golden color tokens */
:root {
  --gold-shine: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 223, 150, 0) 15%,
    rgba(255, 240, 180, 0.95) 35%,
    rgba(255, 255, 245, 1) 50%,
    rgba(255, 240, 180, 0.95) 65%,
    rgba(255, 223, 150, 0) 85%,
    transparent 100%);
  --gold-base: #E8D48A;
  --gold-light: #F0DFA0;
  --gold-dark: #D4B85A;
  --gold-glow: rgba(232, 212, 138, 0.35);
}

/* High specificity to ensure transitions aren't overridden */
html body .btn,
html body a.btn,
html body button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  z-index: 1;
  
  /* Slow & Magical ease for color transitions */
  -webkit-transition: background-color 1s cubic-bezier(0.19, 1, 0.22, 1),
                      border-color 1s cubic-bezier(0.19, 1, 0.22, 1),
                      color 0.8s cubic-bezier(0.19, 1, 0.22, 1),
                      box-shadow 1s cubic-bezier(0.19, 1, 0.22, 1);
  transition: background-color 1s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 1s cubic-bezier(0.19, 1, 0.22, 1),
              color 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 1s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: background-color, box-shadow;
}

/* Golden wipe overlay - the initial sweep */
html body .btn::before,
html body a.btn::before,
html body button.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-shine);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Continuous shimmer waves while hovering */
html body .btn::after,
html body a.btn::after,
html body button.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(255, 248, 220, 0.3) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 248, 220, 0.3) 70%,
    transparent 100%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
}

/* Magical golden wipe hover effect */
html body .btn:hover,
html body a.btn:hover,
html body button.btn:hover {
  background-color: var(--gold-base) !important;
  background-image: none !important;
  border-color: var(--gold-light) !important;
  color: #2a2518 !important;
  box-shadow: 
    0 0 25px var(--gold-glow),
    0 10px 30px rgba(232, 212, 138, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* Initial golden wipe animation on hover */
html body .btn:hover::before,
html body a.btn:hover::before,
html body button.btn:hover::before {
  opacity: 1;
  animation: goldenWipeIn 1.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Continuous shimmer while hovering */
html body .btn:hover::after,
html body a.btn:hover::after,
html body button.btn:hover::after {
  opacity: 1;
  animation: shimmerWave 3.5s cubic-bezier(0.19, 1, 0.22, 1) 1.2s infinite;
}

/* Initial sweep animation - slower */
@keyframes goldenWipeIn {
  0% {
    left: -100%;
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Continuous shimmer waves - slower */
@keyframes shimmerWave {
  0% {
    left: -60%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

html body .btn:active,
html body a.btn:active,
html body button.btn:active {
  background-color: var(--gold-dark) !important;
  background-image: none !important;
  box-shadow: 
    0 0 15px var(--gold-glow),
    0 4px 15px rgba(212, 184, 90, 0.25),
    inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:disabled:hover {
  background-color: inherit !important;
  border-color: inherit !important;
  color: inherit !important;
}

.btn:disabled::before,
.btn:disabled::after {
  display: none;
}

/* Form Input Base - Slow Smooth Focus */
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px var(--space-md);
  min-height: 52px;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    0 0 0 4px rgba(43, 138, 143, 0.1),
    0 4px 12px rgba(43, 138, 143, 0.06);
  background-color: white;
  transform: translate3d(0, -1px, 0);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Card Base - Spectacular Hover Effects */
.card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  
  /* Slow & Magical cubic-bezier for spectacular hover */
  -webkit-transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                      box-shadow 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                      border-color 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform, box-shadow;
}

/* Card Hover Effect - Spectacular lift */
.card-hover:hover,
.card:hover {
  -webkit-transform: translateY(-8px) scale(1.02);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(43, 138, 143, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.06);
  border-color: rgba(43, 138, 143, 0.25);
}

/* Cards after scroll animation completes - enable smooth hover transitions */
.card.animation-complete {
  -webkit-transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                      box-shadow 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                      border-color 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.card.animation-complete:hover {
  -webkit-transform: translateY(-8px) scale(1.02) !important;
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 
    0 25px 50px rgba(43, 138, 143, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(43, 138, 143, 0.25) !important;
}

/* Testimonial Cards after scroll animation completes - enable smooth hover transitions */
.testimonial-card.animation-complete {
  -webkit-transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                      box-shadow 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                      border-color 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 1.2s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 1.2s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.testimonial-card.animation-complete:hover {
  -webkit-transform: translateY(-8px) scale(1.02) !important;
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 
    0 25px 50px rgba(43, 138, 143, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.06) !important;
  border-color: rgba(43, 138, 143, 0.25) !important;
}

/* Badge Base */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
}

/* ============================================
   6. ACCESSIBILITY DEFAULTS
   ============================================ */

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: var(--text-light);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--duration-normal) var(--ease-smooth);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Focus visible - enhanced focus states */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure high contrast for interactive elements */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion preference - Disabled for debugging */
/*
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
*/

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: var(--text-primary);
  }
  
  .btn {
    border-width: 2px;
  }
}

/* ============================================
   7. PRINT STYLES
   ============================================ */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  .header,
  .footer,
  .nav,
  .btn {
    display: none !important;
  }
}

/* ============================================
   8. MODERN SMOOTH ANIMATIONS
   Slow, magical, elegant effects
   ============================================ */

/* Custom Easing Variables */
:root {
  --ease-magical: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-elegant: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-dreamy: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-silk: cubic-bezier(0.19, 1, 0.22, 1);
}

/* -------------------------
   Selection Styling
   ------------------------- */
::selection {
  background-color: rgba(43, 138, 143, 0.2);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(43, 138, 143, 0.2);
  color: var(--text-primary);
}

/* -------------------------
   Custom Scrollbar (Webkit)
   ------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), rgba(43, 138, 143, 0.6));
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-secondary);
  transition: background 0.6s var(--ease-magical);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

/* -------------------------
   Headings - Magical Effects
   ------------------------- */
h1, h2, h3, h4, h5, h6 {
  transition: color 0.6s var(--ease-magical),
              text-shadow 0.8s var(--ease-magical),
              letter-spacing 0.6s var(--ease-magical);
}

/* Heading hover glow effect */
h1:hover, h2:hover, h3:hover {
  text-shadow: 0 0 40px rgba(43, 138, 143, 0.15);
}

/* Hero heading special effect */
.hero-heading,
h1.hero-title {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--primary) 50%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s var(--ease-elegant) infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Hero highlight - Diagonal animated color wave for "le redini" */
.hero-highlight {
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    #C4633A 20%,
    var(--primary) 40%,
    #1E6A6E 60%,
    var(--accent) 80%,
    #C4633A 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroWave 6s ease-in-out infinite;
}

@keyframes heroWave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 50%; }
}

/* -------------------------
   Paragraphs - Subtle Elegance
   ------------------------- */
p {
  transition: color 0.5s var(--ease-magical),
              opacity 0.5s var(--ease-magical);
}

.lead {
  transition: color 0.6s var(--ease-magical),
              transform 0.6s var(--ease-magical);
}

/* -------------------------
   Blockquote - Dreamy Effect
   ------------------------- */
blockquote {
  position: relative;
  transition: border-color 0.8s var(--ease-magical),
              padding-left 0.8s var(--ease-magical),
              background 0.8s var(--ease-magical),
              transform 0.8s var(--ease-magical);
}

blockquote::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 10px;
  font-size: 80px;
  font-family: var(--font-serif);
  color: var(--primary);
  opacity: 0.1;
  transition: opacity 0.8s var(--ease-magical),
              transform 1s var(--ease-magical);
}

blockquote:hover {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(43, 138, 143, 0.03), transparent);
}

blockquote:hover::before {
  opacity: 0.2;
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* -------------------------
   Code Elements - Tech Feel
   ------------------------- */
code {
  transition: background-color 0.5s var(--ease-magical),
              color 0.5s var(--ease-magical),
              box-shadow 0.5s var(--ease-magical),
              transform 0.5s var(--ease-magical);
}

code:hover {
  background-color: rgba(43, 138, 143, 0.12);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(43, 138, 143, 0.1);
}

pre {
  transition: transform 0.8s var(--ease-magical),
              box-shadow 0.8s var(--ease-magical);
}

pre:hover {
  -webkit-transform: scale(1.01);
  transform: scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* -------------------------
   Images - Elegant Reveal
   ------------------------- */
img, picture, video {
  transition: transform 1s var(--ease-silk),
              filter 1s var(--ease-silk),
              box-shadow 1s var(--ease-silk);
}

/* Image container with overflow hidden for zoom effect */
.img-container,
.image-wrapper,
figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: border-radius 0.8s var(--ease-magical),
              box-shadow 0.8s var(--ease-magical);
}

.img-container:hover,
.image-wrapper:hover,
figure:hover {
  box-shadow: 0 20px 50px rgba(43, 138, 143, 0.12);
}

.img-container:hover img,
.image-wrapper:hover img,
figure:hover img {
  transform: scale3d(1.05, 1.05, 1);
}

/* -------------------------
   Badge - Pulse & Glow
   ------------------------- */
.badge {
  transition: transform 0.5s var(--ease-magical),
              box-shadow 0.5s var(--ease-magical),
              background-color 0.5s var(--ease-magical);
  position: relative;
}

.badge:hover {
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(43, 138, 143, 0.2);
}

/* -------------------------
   List Items - Stagger Effect
   ------------------------- */
ul li, ol li {
  transition: transform 0.5s var(--ease-magical),
              padding-left 0.5s var(--ease-magical),
              color 0.5s var(--ease-magical);
}

ul:not(.nav-list) li:hover,
ol li:hover {
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
  color: var(--primary);
}

/* Styled list with markers */
.styled-list li {
  position: relative;
  padding-left: 24px;
}

.styled-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transform: translateY(-50%) scale(1);
  transition: transform 0.5s var(--ease-magical),
              background 0.5s var(--ease-magical),
              box-shadow 0.5s var(--ease-magical);
}

.styled-list li:hover::before {
  -webkit-transform: translateY(-50%) scale(1.4);
  transform: translateY(-50%) scale(1.4);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(168, 83, 47, 0.4);
}

/* -------------------------
   Border & Shadow Transitions
   ------------------------- */
.border,
.border-t,
.border-b,
.border-l,
.border-r {
  transition: border-color 0.6s var(--ease-magical);
}

.border:hover,
.border-t:hover,
.border-b:hover,
.border-l:hover,
.border-r:hover {
  border-color: var(--primary);
}

.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl {
  transition: box-shadow 0.8s var(--ease-magical),
              transform 0.8s var(--ease-magical);
}

.shadow-sm:hover { box-shadow: var(--shadow-md); }
.shadow-md:hover { box-shadow: var(--shadow-lg); }
.shadow-lg:hover { box-shadow: var(--shadow-xl); }
.shadow-xl:hover { box-shadow: var(--shadow-glow); }

/* -------------------------
   Background Transitions
   ------------------------- */
.bg-primary,
.bg-secondary,
.bg-accent-light,
.bg-brand,
.bg-accent {
  transition: background-color 0.8s var(--ease-magical);
}

/* -------------------------
   Container Fade Edges
   ------------------------- */
.container-fade {
  position: relative;
}

.container-fade::before,
.container-fade::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease-magical);
}

.container-fade::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.container-fade::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.container-fade:hover::before,
.container-fade:hover::after {
  opacity: 1;
}

/* -------------------------
   Section Dividers
   ------------------------- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color) 20%,
    var(--primary) 50%,
    var(--border-color) 80%,
    transparent
  );
  background-size: 200% 100%;
  animation: dividerFlow 8s var(--ease-elegant) infinite;
}

@keyframes dividerFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* -------------------------
   Hover Reveal Text
   ------------------------- */
.reveal-text {
  position: relative;
  overflow: hidden;
}

.reveal-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease-silk);
}

.reveal-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -------------------------
   Icon Containers
   ------------------------- */
.icon,
.icon-wrapper,
[class*="icon-"] {
  transition: transform 0.6s var(--ease-magical),
              color 0.5s var(--ease-magical),
              filter 0.6s var(--ease-magical);
}

.icon:hover,
.icon-wrapper:hover,
[class*="icon-"]:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(43, 138, 143, 0.3));
}

/* Spinning icon on hover */
.icon-spin:hover {
  animation: iconSpin 0.8s var(--ease-magical);
}

@keyframes iconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -------------------------
   Number/Stats Counter Effect
   ------------------------- */
.stat-number,
.counter {
  display: inline-block;
  transition: transform 0.6s var(--ease-magical),
              color 0.6s var(--ease-magical);
}

.stat-number:hover,
.counter:hover {
  transform: scale(1.1);
  color: var(--primary);
}

/* -------------------------
   Navigation Links
   NOTE: Main .nav-link styles moved to navigation.css to avoid conflicts
   ------------------------- */

/* -------------------------
   Footer Links
   ------------------------- */
.footer-link {
  transition: color 0.5s var(--ease-magical),
              padding-left 0.5s var(--ease-magical);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 8px;
}

/* -------------------------
   Social Icons
   ------------------------- */
.social-icon,
.social-link {
  transition: transform 0.5s var(--ease-magical),
              color 0.5s var(--ease-magical),
              background-color 0.5s var(--ease-magical),
              box-shadow 0.5s var(--ease-magical);
}

.social-icon:hover,
.social-link:hover {
  transform: translate3d(0, -4px, 0) scale(1.1);
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(43, 138, 143, 0.25);
}

/* -------------------------
   Table Rows
   ------------------------- */
table tr {
  transition: background-color 0.5s var(--ease-magical);
}

table tbody tr:hover {
  background-color: var(--bg-accent-light);
}

table td, table th {
  transition: color 0.5s var(--ease-magical),
              padding 0.5s var(--ease-magical);
}

/* -------------------------
   Horizontal Rule
   ------------------------- */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  transition: background 0.8s var(--ease-magical);
}

hr:hover {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* -------------------------
   Text Highlight Effect
   ------------------------- */
.highlight,
mark {
  background: linear-gradient(120deg, rgba(43, 138, 143, 0.15) 0%, rgba(43, 138, 143, 0.25) 100%);
  background-size: 200% auto;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: background-position 0.8s var(--ease-magical),
              color 0.5s var(--ease-magical);
}

.highlight:hover,
mark:hover {
  background-position: right center;
  color: var(--primary);
}

/* -------------------------
   Tooltip Base
   ------------------------- */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-primary);
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-magical),
              transform 0.5s var(--ease-magical),
              visibility 0.5s var(--ease-magical);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-8px);
}

/* -------------------------
   Accordion/Collapsible
   ------------------------- */
.accordion-header,
.collapse-header {
  transition: background-color 0.8s var(--ease-silk),
              color 0.8s var(--ease-silk);
  cursor: pointer;
}

.accordion-header:hover,
.collapse-header:hover {
  background-color: var(--bg-accent-light);
  color: var(--primary);
}

.accordion-content,
.collapse-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s var(--ease-silk),
              opacity 0.8s var(--ease-silk),
              padding 0.8s var(--ease-silk);
  opacity: 0;
}

.accordion-item.active .accordion-content,
.collapse-content.active {
  max-height: 500px;
  opacity: 1;
}

/* -------------------------
   Progress Bar
   ------------------------- */
.progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  transition: width 1.5s var(--ease-silk);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: progressShine 2s var(--ease-elegant) infinite;
}

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

/* -------------------------
   Tags
   ------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-accent-light);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  transition: background-color 0.5s var(--ease-magical),
              transform 0.5s var(--ease-magical),
              box-shadow 0.5s var(--ease-magical),
              color 0.5s var(--ease-magical);
}

.tag:hover {
  background: var(--primary);
  color: var(--text-light);
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 4px 12px rgba(43, 138, 143, 0.3);
}

/* -------------------------
   Modal/Overlay
   ------------------------- */
.modal-overlay,
.overlay {
  background: rgba(31, 33, 33, 0);
  backdrop-filter: blur(0);
  transition: background 0.6s var(--ease-magical),
              backdrop-filter 0.6s var(--ease-magical);
}

.modal-overlay.active,
.overlay.active {
  background: rgba(31, 33, 33, 0.6);
  backdrop-filter: blur(8px);
}

.modal-content,
.modal-box {
  transform: scale(0.9) translateY(30px);
  opacity: 0;
  transition: transform 0.6s var(--ease-silk),
              opacity 0.6s var(--ease-silk);
}

.modal-content.active,
.modal-box.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* -------------------------
   Skeleton Loading
   ------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 25%,
    var(--bg-primary) 50%,
    var(--bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeletonPulse 2s var(--ease-elegant) infinite;
  border-radius: var(--radius-md);
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* -------------------------
   Notification/Toast
   ------------------------- */
.notification,
.toast {
  transform: translateX(100%) scale(0.9);
  opacity: 0;
  transition: transform 0.6s var(--ease-silk),
              opacity 0.6s var(--ease-silk);
}

.notification.show,
.toast.show {
  transform: translateX(0) scale(1);
  opacity: 1;
}

/* -------------------------
   Breadcrumb
   ------------------------- */
.breadcrumb-item {
  transition: color 0.5s var(--ease-magical);
}

.breadcrumb-item a {
  position: relative;
}

.breadcrumb-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.5s var(--ease-magical);
}

.breadcrumb-item a:hover::after {
  width: 100%;
}

/* -------------------------
   Avatar/Profile Image
   ------------------------- */
.avatar {
  border-radius: var(--radius-full);
  transition: transform 0.6s var(--ease-magical),
              box-shadow 0.6s var(--ease-magical),
              border-color 0.6s var(--ease-magical);
  border: 3px solid transparent;
}

.avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(43, 138, 143, 0.25);
  border-color: var(--primary);
}

/* -------------------------
   Dots/Pagination
   ------------------------- */
.dot,
.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background 0.5s var(--ease-magical),
              transform 0.5s var(--ease-magical),
              box-shadow 0.5s var(--ease-magical);
}

.dot:hover,
.pagination-dot:hover,
.dot.active,
.pagination-dot.active {
  background: var(--primary);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(43, 138, 143, 0.4);
}

/* -------------------------
   Cursor Effects
   ------------------------- */
.cursor-pointer {
  cursor: pointer;
  transition: transform 0.3s var(--ease-magical);
}

.cursor-pointer:active {
  transform: scale(0.97);
}

/* -------------------------
   Magnetic Hover (subtle)
   ------------------------- */
.magnetic {
  transition: transform 0.4s var(--ease-magical);
}

/* -------------------------
   Shine Effect on Elements
   ------------------------- */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.8s var(--ease-silk);
}

.shine:hover::before {
  left: 100%;
}

/* -------------------------
   Gradient Border Animation
   ------------------------- */
.gradient-border {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: gradientRotate 6s var(--ease-elegant) infinite;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -------------------------
   Text Glow on Hover
   ------------------------- */
.text-glow:hover {
  text-shadow: 
    0 0 10px rgba(43, 138, 143, 0.4),
    0 0 20px rgba(43, 138, 143, 0.2),
    0 0 40px rgba(43, 138, 143, 0.1);
  transition: text-shadow 0.8s var(--ease-magical);
}

/* -------------------------
   Card Tilt Effect (subtle)
   ------------------------- */
.card-tilt {
  transition: transform 0.6s var(--ease-magical);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-tilt:hover {
  transform: rotateX(2deg) rotateY(2deg) translateY(-5px);
}

/* -------------------------
   Floating Elements
   ------------------------- */
.float-gentle {
  animation: floatGentle 6s var(--ease-elegant) infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-slow {
  animation: floatSlow 8s var(--ease-elegant) infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(1deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
  75% { transform: translateY(-8px) rotate(-1deg); }
}

/* -------------------------
   Breathing Glow
   ------------------------- */
.breathe-glow {
  animation: breatheGlow 4s var(--ease-elegant) infinite;
}

@keyframes breatheGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(43, 138, 143, 0.15);
  }
  50% { 
    box-shadow: 0 0 40px rgba(43, 138, 143, 0.3);
  }
}

/* -------------------------
   Letter Spacing Animation
   ------------------------- */
.letter-expand {
  transition: letter-spacing 0.8s var(--ease-silk);
}

.letter-expand:hover {
  letter-spacing: 0.08em;
}

/* -------------------------
   Mask Reveal
   ------------------------- */
.mask-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-silk);
}

.mask-reveal.in-view,
.mask-reveal:hover {
  clip-path: inset(0 0 0 0);
}

/* -------------------------
   Blur In Effect
   ------------------------- */
.blur-in {
  filter: blur(10px);
  opacity: 0;
  transition: filter 1.2s var(--ease-magical),
              opacity 1.2s var(--ease-magical);
}

.blur-in.in-view,
.blur-in:hover {
  filter: blur(0);
  opacity: 1;
}

/* -------------------------
   Reduced Motion Override
   ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-heading,
  h1.hero-title,
  .section-divider,
  .gradient-border::before,
  .progress-fill::after,
  .skeleton,
  .float-gentle,
  .float-slow,
  .breathe-glow {
    animation: none;
  }
  
  * {
    transition-duration: 0.01ms !important;
  }
}
