/* ===================================
   KAAI Website - Modern Styles
   Color scheme based on official branding
   =================================== */

:root {
  /* Colors from KAAI Poster */
  --bg-primary: #0d4573;
  --bg-gradient-start: #1B5E8F;
  --bg-gradient-end: #0d3d5e;
  --accent-cyan: #4dd5e8;
  --accent-green: #7ed957;
  --accent-yellow: #ffd700;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-muted: #b8e3f5;
  --border-color: rgba(255, 255, 255, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
  --gradient-bg: linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-end));
  
  /* Layout */
  --max-width: 1200px;
  --radius: 12px;
  --radius-small: 8px;
  --container-padding: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===================================
   BASE STYLES
   =================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* ===================================
   HEADER
   =================================== */

.site-header {
  background: rgba(13, 69, 115, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.site-header.scrolled {
  padding: 12px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: fadeInLeft 0.6s ease-out;
}

.logo {
  width: 70px;
  height: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(77, 213, 232, 0.3));
}

.logo:hover {
  transform: scale(1.05) rotate(2deg);
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.k-acronym {
  font-size: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  margin-left: 6px;
}

.tagline {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 13px;
}

.top-cta .btn {
  padding: 10px 20px;
  font-weight: 600;
  animation: fadeInRight 0.6s ease-out;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 213, 232, 0.1), transparent);
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

.hero-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  animation: fadeInUp 0.8s ease-out;
}

.hero-text h2 {
  font-size: 48px;
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-row .btn {
  margin-right: 0;
}

.hero-image {
  width: 380px;
  animation: fadeInRight 0.8s ease-out;
}

.hero-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(77, 213, 232, 0.2);
  background: var(--card-hover);
}

.hero-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.hero-card small {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ===================================
   SECTIONS
   =================================== */

.section {
  padding: 60px 0;
  position: relative;
}

.section h3 {
  margin-bottom: 40px;
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats Section */
.stats {
  background: rgba(0, 0, 0, 0.2);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover);
  box-shadow: 0 8px 24px rgba(77, 213, 232, 0.2);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Programs Section */
.programs {
  background: rgba(255, 255, 255, 0.02);
}

.program-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.program-list li {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.program-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: var(--transition);
}

.program-list li:hover {
  transform: translateX(8px);
  background: var(--card-hover);
  box-shadow: 0 8px 24px rgba(77, 213, 232, 0.15);
}

.program-list li:hover::before {
  transform: scaleY(1);
}

.program-list li strong {
  font-size: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.program-list li span {
  color: var(--text-muted);
  font-size: 15px;
}

/* Why KAAI Section */
.why .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  background: var(--card-hover);
  box-shadow: 0 12px 32px rgba(77, 213, 232, 0.2);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h4 {
  margin-bottom: 16px;
  font-size: 22px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Testimonials Section */
.testimonials {
  background: rgba(0, 0, 0, 0.2);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: var(--accent-cyan);
  opacity: 0.2;
  font-family: Georgia, serif;
}

.testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(77, 213, 232, 0.15);
}

.testimonial-text {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--bg-primary);
}

.author-info h5 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text-primary);
}

.author-info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Contact Section */
.contact {
  background: rgba(255, 255, 255, 0.02);
}

.contact-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--card-bg);
  padding: 50px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact h3 {
  text-align: left;
  margin-bottom: 30px;
}

.contact-left {
  flex: 1;
}

.contact-left p {
  margin-bottom: 16px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-left strong {
  color: var(--accent-cyan);
  min-width: 80px;
  display: inline-block;
}

.contact-left a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.contact-left a:hover {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.contact-right {
  width: 280px;
  text-align: center;
}

.qr-block {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.qr-block img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-small);
  display: block;
  margin: 0 auto 12px;
}

.qr-block small {
  color: var(--bg-primary);
  font-weight: 600;
  display: block;
}

.enquire-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-links a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-small);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  font-size: 14px;
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  border-color: transparent;
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text-primary);
  padding: 12px 28px;
  border-radius: var(--radius-small);
  border: 2px solid var(--border-color);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.btn.primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  border: none;
  box-shadow: 0 4px 16px rgba(77, 213, 232, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(77, 213, 232, 0.4);
}

.btn.outline {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn.outline:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn.large {
  padding: 16px 36px;
  font-size: 16px;
}

/* ===================================
   ANIMATIONS
   =================================== */

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

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

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

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .hero-text h2 {
    font-size: 40px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-image {
    width: 100%;
    max-width: 400px;
  }
  
  .cta-row {
    justify-content: center;
  }
  
  .program-list {
    grid-template-columns: 1fr;
  }
  
  .why .grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-inner {
    flex-direction: column;
    align-items: center;
    padding: 30px;
  }
  
  .contact h3 {
    text-align: center;
  }
  
  .contact-right {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .brand-text h1 {
    font-size: 16px;
  }
  
  .tagline {
    font-size: 11px;
  }
  
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero-text h2 {
    font-size: 32px;
  }
  
  .section h3 {
    font-size: 28px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .cta-row {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-row .btn {
    width: 100%;
  }
  
  .social-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 50px;
  }
  
  .brand {
    gap: 12px;
  }
  
  .brand-text h1 {
    font-size: 14px;
  }
  
  .hero-text h2 {
    font-size: 26px;
  }
  
  .lead {
    font-size: 16px;
  }
  
  .contact-inner {
    padding: 20px;
  }
}
