/* ===================================
   TLS Maldives Modern Design
   =================================== */

:root {
  /* Brand Colors */
  --primary: #294496;
  --secondary: #d74b4c;
  --neutral: #bcbfc1;
  --navy: #273778;
  --black: #000000;
  --white: #ffffff;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography */
  --font-primary: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Base Styles
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===================================
   Typography
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* Secondary outline button */
.btn-secondary-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-secondary-outline:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary button using brand --secondary color */
.btn-secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
  box-shadow: var(--shadow-md);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(215, 75, 76, 0.15);
}

/* White button (useful on dark hero backgrounds) */
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

/* White outline (hover fills) - good for dark backgrounds */
.btn-white-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: var(--white);
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white-outline:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ===================================
   Navigation
   =================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      135deg,
      rgba(39, 55, 120, 0.47) 0%,
      rgba(41, 68, 150, 0.62) 50%,
      rgba(0, 0, 0, 0.5) 100%
    ),
    url("../img/demo-01-slide-3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* animation: backgroundMove 20s ease-in-out infinite; */
  filter: blur(1px);
  will-change: transform, filter;
}

@keyframes backgroundMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, 20px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top:20px !important;
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  max-width: 800px;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
  max-width: 600px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ===================================
   Section Styles
   =================================== */

section {
  padding: var(--spacing-3xl) 0;
}

.section-header {
  margin-bottom: var(--spacing-2xl);
}

.section-header.centered {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-2xl);
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(41, 68, 150, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-sm);
}

.section-title {
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1rem;
  color: var(--gray-600);
}

/* ===================================
   About Section
   =================================== */

.about {
  background: var(--white);
}

.about-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.mv-card {
  padding: var(--spacing-xl);
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
}

.mv-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mv-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--navy));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.mv-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.mv-card h3 {
  color: var(--navy);
  margin-bottom: var(--spacing-sm);
}

.mv-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===================================
   Services Section
   =================================== */

.services {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.service-icon i {
  font-size: 1.75rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ===================================
   Why Us Section
   =================================== */

.why-us {
  /* background: var(--navy); */
  background: linear-gradient(
      135deg,
      rgba(39, 55, 120, 0.651) 0%,
      rgba(41, 68, 150, 0.705) 50%,
      rgba(0, 0, 0, 0.692) 100%
    ),
    url("../img/demo-01-slide-2.jpg");
  color: var(--white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.why-us .section-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.why-us .section-title {
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: var(--transition);
  fill: blur(10px);
  will-change: transform, filter;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.feature-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
  opacity: 0.8;
}

.feature-card h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* ===================================
   Contact Section
   =================================== */

.contact {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.contact-info h2 {
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-method {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-icon i {
  font-size: 1.25rem;
  color: var(--white);
}

.method-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.method-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form-wrapper {
  background: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(41, 68, 150, 0.1);
}

.form-message {
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ===================================
   Footer
   =================================== */

.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.footer-col p {
  color: var(--gray-400);
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--gray-400);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--gray-800);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

.footer-bottom p {
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 968px) {
  .navbar .nav-menu {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
  }

  .navbar .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
