/* =============================================
   SRP Website - Claymorphism Design System
   Support for Ryugaku Pathway
   ============================================= */

/* ============ CSS Variables ============ */
:root {
  /* Claymorphism Color Palette - Bright & Cheerful */
  --primary-blue: #7CB9E8;
  --primary-blue-dark: #5BA3D9;
  --primary-blue-light: #B5D8F5;
  
  --secondary-yellow: #FFE066;
  --secondary-yellow-dark: #FFD633;
  --secondary-yellow-light: #FFF2B3;
  
  --accent-coral: #FF8A80;
  --accent-coral-dark: #FF6659;
  --accent-coral-light: #FFBAB3;
  
  --accent-green: #81C784;
  --accent-green-dark: #66BB6A;
  --accent-green-light: #C8E6C9;
  
  --accent-purple: #CE93D8;
  --accent-purple-light: #E1BEE7;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --light-gray: #E2E8F0;
  --medium-gray: #94A3B8;
  --dark-gray: #475569;
  --text-dark: #1E293B;
  
  /* Background Gradients */
  --bg-gradient: linear-gradient(135deg, #F0F9FF 0%, #FFF7ED 50%, #F0FDF4 100%);
  --hero-gradient: linear-gradient(135deg, rgba(124, 185, 232, 0.3) 0%, rgba(255, 224, 102, 0.2) 100%);
  
  /* Claymorphism Shadows */
  --clay-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -4px -4px 12px rgba(255, 255, 255, 0.9),
    inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  
  --clay-shadow-sm: 
    4px 4px 8px rgba(0, 0, 0, 0.08),
    -2px -2px 6px rgba(255, 255, 255, 0.8),
    inset 1px 1px 1px rgba(255, 255, 255, 0.4);
  
  --clay-shadow-lg: 
    12px 12px 24px rgba(0, 0, 0, 0.12),
    -6px -6px 18px rgba(255, 255, 255, 0.95),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6);
  
  --clay-shadow-inset: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.1),
    inset -2px -2px 6px rgba(255, 255, 255, 0.7);
  
  --clay-shadow-hover: 
    12px 12px 20px rgba(0, 0, 0, 0.15),
    -6px -6px 16px rgba(255, 255, 255, 1),
    inset 2px 2px 3px rgba(255, 255, 255, 0.6);
  
  --clay-shadow-pressed: 
    inset 6px 6px 12px rgba(0, 0, 0, 0.12),
    inset -3px -3px 8px rgba(255, 255, 255, 0.8);
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-japanese: 'Noto Sans JP', sans-serif;
  
  /* Spacing */
  --section-padding: 80px;
  --container-max: 1200px;
  
  /* Border Radius - Organic & Asymmetric */
  --radius-sm: 12px 16px 12px 16px;
  --radius-md: 20px 28px 20px 28px;
  --radius-lg: 30px 40px 30px 40px;
  --radius-xl: 40px 50px 40px 50px;
  --radius-full: 50px;
  --radius-blob: 60% 40% 50% 50% / 50% 50% 40% 60%;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============ Reset & Base ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-gradient);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body.lang-ja {
  font-family: var(--font-japanese), var(--font-primary);
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* ============ Container ============ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Claymorphism Components ============ */

/* Clay Card */
.clay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--clay-shadow);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.clay-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--secondary-yellow), var(--accent-coral));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: var(--transition-normal);
}

.clay-card:hover {
  transform: translateY(-10px) scale(1.02) rotate(0.5deg);
  box-shadow: 
    var(--clay-shadow-hover),
    0 20px 40px rgba(124, 185, 232, 0.2),
    0 0 0 2px rgba(255, 224, 102, 0.3);
}

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

.clay-card:hover::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent, rgba(124,185,232,0.2));
  z-index: -1;
  animation: glow 2s ease-in-out infinite;
}

/* Clay Button */
.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--clay-shadow);
  position: relative;
  overflow: hidden;
}

.clay-btn::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  width: 80%;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%);
  border-radius: var(--radius-full);
}

.clay-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    var(--clay-shadow-hover),
    0 15px 30px rgba(124, 185, 232, 0.25);
  animation: wiggle 0.5s ease;
}

.clay-btn:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: var(--clay-shadow-pressed);
  transition: all 0.1s ease;
}

/* Button Variants */
.clay-btn-primary {
  background: linear-gradient(145deg, var(--primary-blue), var(--primary-blue-dark));
  color: var(--white);
}

.clay-btn-secondary {
  background: linear-gradient(145deg, var(--secondary-yellow), var(--secondary-yellow-dark));
  color: var(--text-dark);
}

.clay-btn-coral {
  background: linear-gradient(145deg, var(--accent-coral), var(--accent-coral-dark));
  color: var(--white);
}

.clay-btn-green {
  background: linear-gradient(145deg, var(--accent-green), var(--accent-green-dark));
  color: var(--white);
}

.clay-btn-outline {
  background: var(--white);
  color: var(--primary-blue-dark);
  border: 2px solid var(--primary-blue);
}

.clay-btn-outline:hover {
  background: var(--primary-blue-light);
}

/* Clay Input */
.clay-input {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  background: var(--off-white);
  box-shadow: var(--clay-shadow-inset);
  transition: all var(--transition-normal);
  outline: none;
}

.clay-input:focus {
  box-shadow: 
    var(--clay-shadow-inset),
    0 0 0 3px var(--primary-blue-light);
}

.clay-input::placeholder {
  color: var(--medium-gray);
}

/* Clay Badge */
.clay-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--clay-shadow-sm);
}

.clay-badge-blue {
  background: var(--primary-blue-light);
  color: var(--primary-blue-dark);
}

.clay-badge-yellow {
  background: var(--secondary-yellow-light);
  color: var(--text-dark);
}

.clay-badge-coral {
  background: var(--accent-coral-light);
  color: var(--accent-coral-dark);
}

.clay-badge-green {
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
}

/* ============ Navigation ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, var(--accent-coral), var(--primary-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--clay-shadow-sm);
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.nav-link {
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  color: var(--dark-gray);
  transition: all var(--transition-normal);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue-dark);
  background: linear-gradient(135deg, var(--primary-blue-light), var(--secondary-yellow-light));
  box-shadow: var(--clay-shadow-sm);
  transform: translateY(-2px);
}

.nav-link:hover {
  animation: popBounce 0.4s ease;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--off-white);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: var(--clay-shadow-sm);
  margin-left: 20px;
}

.lang-btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: transparent;
  color: var(--dark-gray);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary-blue-dark);
  box-shadow: var(--clay-shadow-sm);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* ============ Hero Section ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-gradient);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease 0.3s both;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-main-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--clay-shadow-lg);
}

.hero-floating-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 15px 20px;
  box-shadow: var(--clay-shadow);
  animation: float 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-floating-card:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow: 
    var(--clay-shadow-lg),
    0 0 30px rgba(124, 185, 232, 0.3);
}

.hero-floating-card.card-1 {
  top: 20%;
  left: -30px;
}

.hero-floating-card.card-2 {
  bottom: 20%;
  right: -30px;
  animation-delay: 1.5s;
}

.hero-floating-card .icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

.hero-floating-card .text {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--dark-gray);
}

/* ============ Section Styles ============ */
.section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  margin-bottom: 15px;
}

.section-title {
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--dark-gray);
}

/* ============ Services Grid ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 40px 30px;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: var(--clay-shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
  border-radius: 50%;
  animation: wiggle 0.6s ease;
}

.service-icon.blue { background: var(--primary-blue-light); }
.service-icon.yellow { background: var(--secondary-yellow-light); }
.service-icon.coral { background: var(--accent-coral-light); }
.service-icon.green { background: var(--accent-green-light); }

.service-card h3 {
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
}

/* ============ Features Section ============ */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--primary-blue-light);
  box-shadow: var(--clay-shadow-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(-8deg);
  box-shadow: 
    var(--clay-shadow-sm),
    0 0 20px currentColor;
}

.feature-content h4 {
  margin-bottom: 8px;
}

.feature-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ============ CTA Section ============ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue-light) 0%, var(--secondary-yellow-light) 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  box-shadow: var(--clay-shadow-lg);
  margin: 40px 0;
}

.cta-section h2 {
  margin-bottom: 15px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ About Page ============ */
.about-hero {
  padding: 150px 0 80px;
  text-align: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--clay-shadow-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 60px;
}

.mission-card, .vision-card {
  padding: 40px;
}

.mission-card .icon, .vision-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

/* ============ Services Page ============ */
.services-hero {
  padding: 150px 0 60px;
  text-align: center;
}

.service-category {
  margin-bottom: 60px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.category-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--clay-shadow-sm);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-item {
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.service-item .check-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  background: var(--accent-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green-dark);
  font-size: 1rem;
}

.service-item-content h4 {
  margin-bottom: 8px;
}

.service-item-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============ Contact Page ============ */
.contact-hero {
  padding: 150px 0 60px;
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.form-group textarea.clay-input {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-info-card {
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-info-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--primary-blue-light);
  box-shadow: var(--clay-shadow-sm);
}

.contact-info-content h4 {
  margin-bottom: 8px;
}

.contact-info-content p {
  margin-bottom: 0;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--clay-shadow);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============ Footer ============ */
.footer {
  background: var(--white);
  padding: 60px 0 30px;
  margin-top: 80px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(145deg, var(--accent-coral), var(--primary-blue));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--dark-gray);
}

.footer-column h4 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--dark-gray);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-blue-dark);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.footer-lang-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ Animations ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(2deg);
  }
  75% {
    transform: translateY(-5px) rotate(-2deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* New Creative Animations */
@keyframes morphIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes slideReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

@keyframes popBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(600px) rotateY(-90deg);
  }
  to {
    opacity: 1;
    transform: perspective(600px) rotateY(0);
  }
}

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

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  75% { transform: rotate(-3deg); }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124, 185, 232, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(124, 185, 232, 0.6), 0 0 60px rgba(255, 224, 102, 0.3);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  filter: blur(5px);
  transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.animate-on-scroll.slide-left {
  transform: translateX(-60px) rotate(-3deg);
  filter: blur(8px);
}

.animate-on-scroll.slide-left.animated {
  transform: translateX(0) rotate(0);
  filter: blur(0);
}

.animate-on-scroll.slide-right {
  transform: translateX(60px) rotate(3deg);
  filter: blur(8px);
}

.animate-on-scroll.slide-right.animated {
  transform: translateX(0) rotate(0);
  filter: blur(0);
}

.animate-on-scroll.scale-up {
  transform: scale(0.7) rotate(-2deg);
  filter: blur(10px);
}

.animate-on-scroll.scale-up.animated {
  transform: scale(1) rotate(0);
  filter: blur(0);
}

/* New Animation Variants */
.animate-on-scroll.morph {
  transform: scale(0.8) rotate(-5deg);
  filter: blur(15px);
}

.animate-on-scroll.morph.animated {
  animation: morphIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-on-scroll.flip {
  transform: perspective(600px) rotateY(-90deg);
  opacity: 0;
}

.animate-on-scroll.flip.animated {
  animation: flipIn 0.8s ease forwards;
}

.animate-on-scroll.pop {
  transform: scale(0.3);
  opacity: 0;
}

.animate-on-scroll.pop.animated {
  animation: popBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stagger delay for children */
.stagger-animation > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { transition-delay: 0.6s; }

/* ============ Page Transitions ============ */
.page-transition {
  animation: pageIn 0.6s ease;
}

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

/* ============ Responsive Design ============ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-floating-card {
    display: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 30px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-normal);
    gap: 5px;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }
  
  .lang-toggle {
    margin: 20px 0 0;
    justify-content: center;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }
  
  .hero-image-container {
    max-width: 350px;
  }
  
  .mission-vision {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand {
    max-width: 100%;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .cta-section {
    padding: 40px 25px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .clay-btn {
    width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .features-container {
    grid-template-columns: 1fr;
  }
  
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ============ Utility Classes ============ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.hidden { display: none; }
.visible { display: block; }

/* Success message for form */
.success-message {
  background: var(--accent-green-light);
  color: var(--accent-green-dark);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 20px;
  box-shadow: var(--clay-shadow-sm);
}
