@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --primary: #001a33; 
  --primary-light: #002d62;
  --accent: #d90429; 
  --accent-hover: #ef233c;
  --text: #0f172a;
  --muted: #64748b;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --max-width: 1200px;
  --page-padding: 2.5rem;
  --section-gap: 6rem;
  --font-heading: "Merriweather", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

:root[lang="ml"] body {
  font-family: inherit; /* fallback to standard if Noto is absent */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  margin-top: 0;
  line-height: 1.3;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

/* TOP BAR */
.top-bar {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-links a {
  color: #fff;
  opacity: 0.9;
  margin-left: 1rem;
  text-decoration: none;
}
.top-bar-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-brand img {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-brand-text {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--primary);
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  background: var(--primary);
  text-transform: uppercase;
}

.lang-switch:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* MOBILE TOGGLE */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  transition: all 0.3s ease;
  transform-origin: 2px;
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    z-index: 100;
    
    /* Fade in and out effect */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  
  .nav-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-links a {
    font-size: 1.4rem;
  }
  
  .mobile-toggle.is-active span:first-child {
    transform: rotate(45deg) translate(2px, -2px);
  }
  .mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }
  .mobile-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
  }
}

/* HERO REDESIGN */
#hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 2rem 0;
  background: radial-gradient(120% 120% at 50% 10%, #002d62 0%, #001229 100%);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 4px solid var(--accent);
}

#hero::before {
  content: "";
  position: absolute;
  top: -10rem;
  right: -10rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#hero .section-title {
  color: #ffffff;
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: left;
}

#hero .section-title::after {
  display: none;
}

.hero-subtitle-high {
  font-size: 1.6rem;
  font-weight: 500;
  color: #ffb6c1;
  margin-bottom: 1.2rem;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

#hero .section-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 55ch;
  margin: 0 0 2.5rem 0;
  text-align: left;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#hero .btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#hero .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(200, 16, 46, 0.4);
}

.btn-glass {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

.hero-image-wrapper {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  overflow: visible;
  aspect-ratio: 4/3;
  animation: floatImage 8s ease-in-out infinite;
}

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

.hero-slideshow {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.hero-slideshow img.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow img.slide.active {
  opacity: 1;
}

.hero-floating-card {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  color: var(--text);
  padding: 1.5rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border-left: 5px solid var(--accent);
  display: flex;
  flex-direction: column;
  animation: floatCard 9s ease-in-out infinite reverse;
}

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

.hero-floating-card strong {
  font-size: 1.8rem;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.hero-floating-card span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  #hero .section-title, #hero .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-floating-card {
    left: 10px;
    bottom: -20px;
    padding: 1rem 1.5rem;
  }
  .hero-floating-card strong {
    font-size: 1.4rem;
  }
}

/* LAYOUT & TYPOGRAPHY */
section {
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--border);
}

section:nth-child(even) {
  background: var(--bg-alt);
}

section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 60px;
  background: var(--accent);
}

.section-subtitle {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 70ch;
}

.columns, .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* FORMS */
.form-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 45, 98, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* UTILS */
.text-muted { color: var(--muted); }

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-plain li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.list-plain li:last-child {
  border-bottom: none;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
  background: var(--bg-alt);
  color: var(--text);
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.alert strong {
  font-family: var(--font-heading);
  color: var(--primary);
}

/* MEGA FOOTER */
.mega-footer {
  background: #061525;
  color: rgba(255,255,255,0.75);
  padding: 5rem 0 0;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-contact-info p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    text-align: center;
  }
  .top-bar .container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* INTRO SCREEN */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: introFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.intro-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 2rem;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  animation: introPulse 2s infinite alternate ease-in-out;
}

.intro-text {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
  letter-spacing: 0.1em;
  line-height: 1;
}

.intro-subtext {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.loader-line {
  margin-top: 2rem;
  width: 150px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  animation: introLoading 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes introFadeUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes introPulse {
  0% { transform: scale(1); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
  100% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
}

@keyframes introLoading {
  0% { width: 0%; }
  100% { width: 100%; }
}

.intro-hidden {
  opacity: 0;
  visibility: hidden;
}
