@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap");

/* =====================================
   CSS Reset & Variables
   ===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-dark: #0a1f3d;
  --primary-navy: #1a2f4d;
  --accent-cyan: #00d4ff;
  --accent-cyan-dark: #00b8e0;
  --text-white: #fff;
  --text-gray: #e0e0e0;
  --text-dark: #333;
  --overlay-dark: rgba(10, 31, 61, 0.7);
  --overlay-light: rgba(255, 255, 255, 0.05);

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 60px 20px;
  --gap-small: 1rem;
  --gap-medium: 2rem;
  --gap-large: 4rem;

  /* Typography */
  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* =====================================
   Base Styles
   ===================================== */
html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  color: #0f213d;
  background-color: #f8f8f8;
  font-family: var(--font-primary), serif;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =====================================
   Header
   ===================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #0f213d url('../images/nav_bg.jpg') no-repeat 0 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  justify-content: left;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  height: 72px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: var(--font-weight-black);
  color: var(--text-white);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  gap: 2rem;
  margin-left: 2rem;
  margin-top: 3rem;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: var(--font-weight-normal);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--accent-cyan);
}

.nav-link:hover::after {
  width: 100%;
}

/* ... Desktop Nav Styles ... */
.mobile-menu-toggle {
  display: none;
}

/* =====================================
   Hero Section
   ===================================== */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  background-image: url('../images/01.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-white);
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.5));
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-black);
  letter-spacing: 3px;
  margin-bottom: 2rem;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: var(--font-weight-normal);
  letter-spacing: 2px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;

  border: 2px solid #fff;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
  background-color: #0f213d;
  color: #fff;
  padding: 15px 20px 15px 20px;
  text-align: center;
  text-transform: uppercase;
  font-size: 18px;
}

.button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
}

.button:hover::before {
  width: 300px;
  height: 300px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.5);
}

.button:active {
  transform: translateY(0);
}

/* Ripple Effect Styles */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  /* White ripple */
  pointer-events: none;
  animation: ripple 0.6s linear;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.section-title {
  font-size: 30px;
  font-weight: 400;
  color: #2c3e50;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 12px;
  font-weight: normal;
  color: #2c3e50;
  text-align: center;
  text-transform: uppercase;
}

.section-subtitle::after {
  content: ' ';
  display: block;
  width: 100px;
  height: 1px;
  background: #2c3e50;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-top: 35px;
}

/* =====================================
   About Section
   ===================================== */
.about {
  padding: var(--section-padding);
  background: var(--text-white);
}

.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-medium);
  margin-top: 60px;
}

.about-column p {
  margin-bottom: 1.5rem;
  color: #0f213d;
  line-height: 1.8;
  text-align: justify;
  font-size: 14px;
}

/* =====================================
   Service Sections
   ===================================== */

.service {
  padding: var(--section-padding);
  background: var(--text-white);
  background-image: url("../images/02.jpg");
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: cover;
}

.service .section-title,
.service .section-subtitle {
  color: #000;
}

.service .section-subtitle::after {
  background: #000;
}

.service-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 430px));
  gap: var(--gap-medium);
  margin-top: 35px;
}

.service-column p {
  margin-bottom: 1.5rem;
  color: #000;
  line-height: 1.8;
  text-align: justify;
  font-size: 14px;
}

.service-column .button {
  margin-top: 60px;
}

/* =====================================
   Trust Us
   ===================================== */

.trust-us {
  padding: var(--section-padding);
  background: var(--text-white);
  background-image: url("../images/03.jpg");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: cover;
}

.trust-us .section-title,
.trust-us .section-subtitle {
  color: #000;
}

.trust-us .section-subtitle::after {
  background: #000;
}

.trust-us-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-medium);
  margin-top: 35px;
}

.trust-us-column p {
  margin-bottom: 1.5rem;
  color: #000;
  line-height: 1.8;
  text-align: justify;
  font-size: 14px;
}

.trust-us-column .button {
  margin-top: 35px;
  margin-bottom: 150px;
}

/* =====================================
   Gallery Section
   ===================================== */
.gallery-section {
  padding: 60px 20px 85px 20px;
  background: var(--primary-dark);
  color: var(--text-white);
}

.gallery-section .section-title,
.gallery-section .section-subtitle {
  color: #fff;
}

.gallery-section .section-subtitle::after {
  background: #fff;
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 35px auto;
}

.carousel {
  overflow: hidden;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.carousel-item {
  min-width: 33.333%;
  padding: 10px;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.carousel-item:hover .carousel-image {
  transform: scale(1.05);
}

/* Carousel Items & Captions */
.carousel-caption {
  position: static;
  background: transparent;
  backdrop-filter: none;
  padding: 15px 0 0 0;
  border-radius: 0;
  text-align: left;
}

.carousel-caption h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
}

.carousel-caption p {
  font-size: 12px;
  color: #a0a0a0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}

/* Carousel Buttons */
.carousel-button {
  position: absolute;
  /* Image height is 300px + 10px padding top = center is 160px */
  top: 160px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
  z-index: 10;
  opacity: 1;
  overflow: hidden;
  /* Fix for ripple effect */
}

.carousel-button:hover {
  background: transparent;
  transform: translateY(-50%) scale(1.1);
}

.carousel-button svg {
  width: 80px;
  height: 100px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.carousel-button-prev {
  left: -70px;
}

.carousel-button-next {
  right: -70px;
}

/* =====================================
   Loan
   ===================================== */

.loan {
  padding: var(--section-padding);
  background: var(--text-white);
  background-image: url("../images/04.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.loan .section-title,
.loan .section-subtitle {
  color: #0f213d;
}

.loan-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-medium);
  margin-top: 35px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.loan-column p {
  margin-bottom: 1.5rem;
  color: #0f213d;
  line-height: 1.8;
  text-align: justify;
  font-size: 14px;
}

.loan-column .button {
  margin-top: 35px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: max-content;
}

/* =====================================
   Footer
   ===================================== */
.footer {
  background: var(--primary-dark);
  color: var(--text-white);
  padding: 70px 0 70px 0;

  background-image: url("../images/05.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 2rem;
}

.footer-col {
  min-width: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo-icon {
  height: 72px;
}

.footer-company h3 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-black);
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}

.footer-company p {
  font-size: 14px;
  line-height: 26px;
  color: var(--text-white);
  padding: 5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links-container {
  max-width: 280px;
  margin: 0 auto;
}

.footer-links-title {
  color: var(--text-gray);
  font-size: 16px;
  font-weight: var(--font-weight-light);
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: var(--font-weight-normal);
  text-transform: uppercase;
  transition: color var(--transition-fast);
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #fff;
}

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

.footer-links a:last-child {
  border-bottom: none;
}

.footer-links a::before {
  content: " ";
  width: 5px;
  height: 5px;
  display: inline-block;
  background-color: #fff;
  margin-right: 10px;
  margin-bottom: 3px;
}

.footer-bottom {
  background: var(--primary-dark);
  text-align: left;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-bottom p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* =====================================
   Responsive Design
   ===================================== */
/* =====================================
   Responsive Design
   ===================================== */
@media (max-width: 1024px) {
  :root {
    --container-width: 100%;
  }

  /* 2 items per view on Tablet */
  .carousel-item {
    min-width: 50%;
  }

  .carousel-button-prev {
    left: -20px;
  }

  .carousel-button-next {
    right: -20px;
  }
}

@media (max-width: 768px) {

  /* Compact Header for Mobile */
  .header {
    padding: 0.5rem 0;
    background-position: right center;
  }

  .header .container {
    flex-direction: row;
    /* Ensure row layout for logo + burger */
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .logo-icon {
    height: 48px;
    /* Smaller logo */
  }

  /* Hamburger Menu Button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 10px;
  }

  .mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  /* Hamburger Animation when Active */
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile Navigation */
  .nav {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    background: rgba(10, 31, 61, 0.95);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease forwards;
    z-index: 1000;
  }

  .nav.active {
    display: flex;
    /* Show when active */
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }


  .nav-link {
    font-size: 1.1rem;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    display: block;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .hero {
    min-height: 500px;
  }

  .hero-logo-icon {
    width: 60px;
    height: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  /* Carousel Adjustments */
  .carousel-item {
    min-width: 100%;
    /* 1 item per view */
  }

  .carousel-button svg {
    width: 60px;
    height: 60px;
  }

  .carousel-button-prev {
    left: 10px;
  }

  .carousel-button-next {
    right: 10px;
  }

  /* Grids */
  .about-content,
  .service-content,
  .trust-us-content,
  .footer-content {
    grid-template-columns: 1fr;
    /* Stack columns */
    gap: 2rem;
  }

  .service-column .button,
  .trust-us-column .button {
    margin-top: 30px;
    margin-bottom: 30px;
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col--center {
    max-width: 100%;
    text-align: left;
  }

  .footer-links-container {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

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

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

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

@media (max-width: 480px) {
  :root {
    --section-padding: 40px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
    letter-spacing: 1.5px;
  }

  .button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .carousel-image {
    height: 250px;
  }

  .carousel-button {
    top: 135px;
    /* Adjust for 250px height (125 + 10 padding) */
  }
}

/* =====================================
   Lightbox
   ===================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 2001;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.1);
  color: var(--accent-cyan);
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  z-index: 2002;
  color: white;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
  width: 30px;
  height: 30px;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: -20px;
    width: 40px;
    height: 40px;
  }

  .lightbox-next {
    right: -20px;
    width: 40px;
    height: 40px;
  }

  .lightbox-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 3;
  }
}
