/* Reset margin/padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #1D1A6D;
  background: #F8F9FA;
}

/* HEADER */
header {
  background: #F8F9FA;
  border-bottom: 1px solid #1D1A6D;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 2.1cm;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo sizing — fits within the 1.5 cm header */
.header-container .logo img {
    /* a bit smaller than the 1.5cm header */
  height: 1.4cm;
  width: auto;
  transform: rotate(-45deg);
  transform-origin: center; /* optional: sets the pivot point */
}


/* NAVIGATION */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: 'Poppins', sans-serif;
  
  font-size: 1.2rem;
  text-decoration: none;
  color: #1D1A6D;
  padding: 0.3rem 0.5rem;        /* default padding */
  transition: 
    background 0.2s, 
    color 0.2s, 
    padding 0.1s, 
    border-radius 0.2s;
  border-radius: 0.2rem;        /* subtle rounding when idle */
}

.main-nav a:hover {
  background-color: #1D1A6D;    /* standard black */
  color: #ffffff;               /* white text */
  padding: 0.5rem 0.8rem;       /* expand the hit area */
  border-radius: 0.5rem;        /* more rounded */
}

.main-nav li {
  position: relative;
}

.main-nav li a:hover {
  background: #1D1A6D;
  color: #F8F9FA;
}



/* Hide the dropdown by default */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;      /* right below the parent */
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 220px;
  padding: 0.5rem 0;
  z-index: 100;
}

/* Show on hover of the li */
.has-dropdown:hover > .dropdown {
  display: block;
}

/* Dropdown items style */
.dropdown li {
  width: 100%;
}
.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #1D1A6D; /* black*/
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.dropdown a:hover {
  background-color: #1D1A6D; /* black */
  color: #fff;
}

/* Optional: prevent the parent link from highlighting on dropdown hover */
.has-dropdown > a:hover {
  background: none;
  color: #1B1B1B;
}

/* BODY AREA - general main reset */
main {
  max-width: unset;
  margin: 0;
  padding: 0;
}

/* MAIN BACKGROUND SLIDESHOW */
main#main-slideshow {
  position: relative;
  width: 100vw; /* full screen width */
  height: calc(110vh ); /* full screen minus header & footer */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay text on background image */
.main-overlay-text {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  font-family: 'Playfair Display', serif;  /* stylish font */
}

.main-overlay-text h1 {
  font-size: 6.7rem;
  margin-bottom: 0.3rem;
  font-weight: 750;
}

.main-overlay-text h2 {
  font-size: 3rem;
  font-weight: 500;
}


/* ============================= */
/* Tablet (≤1024px)              */
/* ============================= */
@media screen and (max-width: 1024px) {
  /* Header */
  .header-container {
    height: 1.8cm;
    padding: 0 1rem;
  }
  .header-container .logo img {
    max-height: 1.5cm;
    width: auto;
  }

  /* Navigation */
  .main-nav > ul {
    gap: 1rem;
  }
  .main-nav a {
    padding: 0.25rem 0.4rem;
  }
  .main-nav .btn-apply {
    margin-left: 1rem;
    padding: 0.3rem 0.8rem;
  }

  /* Dropdown */
  .dropdown {
    width: 180px;
  }

  /* Slideshow */
  main#main-slideshow {
    height: calc(100vh - 1.8cm);
  }

  /* Overlay text */
  .main-overlay-text h1 {
    font-size: 3.5rem;
  }
  .main-overlay-text h2 {
    font-size: 2rem;
  }
}


/* ============================= */
/* Mobile (≤768px)               */
/* ============================= */
@media screen and (max-width: 768px) {
  /* Header – stack logo & nav */
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .header-container .logo img {
    max-height: 1.2cm;
    width: auto;
  }

  /* Navigation – vertical menu */
  .main-nav {
    width: 100%;
  }
  .main-nav > ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .main-nav a,
  .main-nav .btn-apply {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
  }
  .main-nav .btn-apply {
    margin-left: 0;
  }

  /* Dropdown full width */
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
  }
  .has-dropdown:hover > .dropdown {
    display: none; /* you might replace with a JS toggle */
  }

  /* Slideshow */
  main#main-slideshow {
    height: calc(100vh - 3.5rem);
  }

  /* Overlay text – smaller on mobile */
  .main-overlay-text {
    bottom: 1rem;
    left: 1rem;
  }
  .main-overlay-text h1 {
    font-size: 2.5rem;
  }
  .main-overlay-text h2 {
    font-size: 1.5rem;
  }
}


/* ABOUT SECTION */
/* 3D perspective container */
.scene {
  perspective: 1000px;
}

/* Section starts “inside” the screen */
.about-section {
  background-color: #1D1A6D;
  color: #FFF;
  width: 100%;
  padding: 4rem 2rem;
  box-sizing: border-box;
  font-family: 'Playfair Display', serif;
  
  /* 3D setup */
  transform-style: preserve-3d;
  transform: translateZ(-200px) scale(0.9);
  opacity: 0;
  transition: 
    transform 0.8s ease-out, 
    opacity 0.8s ease-out;
}

/* When scrolled in view: “pop” forward */
.about-section.visible {
  transform: translateZ(0) scale(1);
  opacity: 1;
}
.about-title {
  text-align: center;
  font-size: 5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-media video {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.about-text {
  flex: 1;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #F1F1F1;
}

.scene-services {
  perspective: 1000px;
}
/* SERVICES SECTION */
.services-section {
  background-color: #fff;
  color: #1D1A6D;
  padding: 4rem 2rem;
  height: auto;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  
   /* 3D setup */
  transform-style: preserve-3d;
  transform: translateZ(-200px) scale(0.9);
  opacity: 0;
  transition: 
    transform 0.8s ease-out, 
    opacity 0.8s ease-out;
}

.services-section.visible {
  transform: translateZ(0) scale(1);
  opacity: 1;
}
.services-title {
  font-size: 5rem;
  font-weight: 800; /* Bolder heading */
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  font-family: 'Playfair Display', serif;;
}

.services-subtitle {
  font-size: 1.5rem;
  margin-bottom: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Fixed 4 per row */
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-box {
  border: 2px solid #1D1A6D;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background-color: #1D1A6D;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 220px;
}

.service-box img {
  width: 300px;
  height: 200px;
  margin-bottom: 1rem;
}

.service-box span {
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px#1D1A6D;
  cursor: pointer;
}

/* Remove underline on service-box links */
.services-grid a.service-box,
.services-grid a.service-box span {
  text-decoration: none;
}



/* 3D perspective wrapper */
.scene-focus {
  perspective: 1000px;
}

/* Section setup and pop‑out */
.focus-section {
  background-color: #1D1A6D;
  padding: 4rem 2rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;

  /* start pushed back & transparent */
  transform-style: preserve-3d;
  transform: translateZ(-200px) scale(0.9);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.focus-section.visible {
  /* pop forward */
  transform: translateZ(0) scale(1);
  opacity: 1;
}

/* Title styling */
.focus-title {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 3rem;
}

/* Tabs container */
.focus-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Individual tab */
.focus-tab {
  background-color: #FFFFFF;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  width: 380px;
  min-height: 300px;      /* taller than wide */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Tab heading & text */
.focus-tab h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color:#1D1A6D;
}
.focus-tab p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #1D1A6D;
}

/* Hover effect on tabs */
.focus-tab:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  cursor: pointer;
}


/* Preloader styles */
#preloader {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(0,0,0,0.1);
  border-top-color: royalblue;
  border-radius: 50%;
  animation: spin 1s infinite linear;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}


/* Base (desktop) as you already have) */

/* Large desktops / wide screens */
@media (max-width: 1200px) {
  .focus-title {
    font-size: 4.5rem;
  }
  .focus-tabs {
    gap: 1.5rem;
  }
  .focus-tab {
    width: 300px;
    padding: 1.8rem 1.2rem;
  }
  .focus-tab h3 {
    font-size: 1.5rem;
  }
  .focus-tab p {
    font-size: 1.1rem;
  }
}

/* Tablets & small laptops */
@media (max-width: 992px) {
  .focus-title {
    font-size: 4rem;
  }
  .focus-tabs {
    gap: 1rem;
  }
  .focus-tab {
    width: 45%;       /* two per row */
    min-height: 260px;
  }
}

/* Large phones & portrait tablets */
@media (max-width: 768px) {
  .focus-title {
    font-size: 3.5rem;
  }
  .focus-tabs {
    flex-direction: column;
    align-items: center;
  }
  .focus-tab {
    width: 70%;
    min-height: 240px;
    margin-bottom: 1.5rem;
  }
  .focus-tab h3 {
    font-size: 1.4rem;
  }
  .focus-tab p {
    font-size: 1rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .focus-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }
  .focus-section {
    padding: 3rem 1rem;
  }
  .focus-tab {
    width: 90%;
    padding: 1.5rem 1rem;
    min-height: 220px;
  }
  .focus-tab h3 {
    font-size: 1.3rem;
  }
  .focus-tab p {
    font-size: 0.95rem;
  }
}


/* STATS SECTION */
.scene-stats {
  perspective: 1000px;
}

.stats-section {
  background-color: #fff;
  color: #1D1A6D;
  padding: 2rem 1rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  height: 600px;
  box-sizing: border-box;

  /* start pushed back & transparent */
  transform-style: preserve-3d;
  transform: translateZ(-200px) scale(0.9);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.stats-section.visible {
  /* pop forward */
  transform: translateZ(0) scale(1);
  opacity: 1;
}

.stats-title {
  font-family: 'Playfair Display', serif;;
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.stats-container {
  background-color: #1D1A6D;
  margin: 0 auto;
  padding: 2rem;
  max-width: 90%;
  height: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0.5rem;
  box-sizing: border-box;
}

.stat-item {
  flex: 1;
  color: #fff;
  text-align: center;
}

.stat-item:not(:last-child) {
  /* no visible border but slight separation */
  margin-right: 1rem;
}

.stat-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
}


/* ============================= */
/* Tablet (≤1024px)              */
/* ============================= */
@media screen and (max-width: 1024px) {

  /* ABOUT SECTION */
  .about-section {
    height: auto;
    padding: 3rem 1.5rem;
  }
  .about-title {
    font-size: 3rem;
  }
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }
  .about-image img {
    width: 300px;
    height: 300px;
  }
  .about-text {
    font-size: 1.1rem;
  }

  /* SERVICES SECTION */
  .services-title {
    font-size: 3.5rem;
  }
  .services-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .service-box {
    padding: 1.5rem 1rem;
    min-height: 200px;
  }
  .service-box img {
    width: 60px;
    height: 70px;
  }
  .service-box span {
    font-size: 1.2rem;
  }

  /* INDUSTRIES SECTION */
  .industries-section {
    height: auto;
    padding: 1.5rem;
  }
  .industries-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  .carousel-slide {
    min-width: 250px;
    margin-right: 1.5rem;
  }
  .industry-tab img {
    width: 80px;
    height: 80px;
  }
  .industry-label {
    font-size: 1rem;
  }

  /* STATS SECTION */
  .stats-section {
    height: auto;
    padding: 1.5rem 1rem;
  }
  .stats-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
  .stats-container {
    flex-wrap: wrap;
    gap: 1rem;
    height: auto;
    padding: 1.5rem;
  }
  .stat-item {
    flex: 1 1 45%;
    margin-bottom: 1rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.95rem;
  }
}


/* ============================= */
/* Mobile (≤768px)               */
/* ============================= */
@media screen and (max-width: 768px) {

  /* ABOUT SECTION */
  .about-section {
    padding: 2rem 1rem;
  }
  .about-title {
    font-size: 2.5rem;
  }
  .about-content {
    flex-direction: column;
  }
  .about-image img {
    width: 100%;
    height: auto;
  }
  .about-text {
    font-size: 1rem;
  }

  /* SERVICES SECTION */
  .services-title {
    font-size: 2.5rem;
  }
  .services-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .service-box {
    padding: 1rem;
  }
  .service-box img {
    width: 50px;
    height: 60px;
    margin-bottom: 0.75rem;
  }
  .service-box span {
    font-size: 1.1rem;
  }

  

  /* STATS SECTION */
  .stats-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .stats-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .stat-item {
    flex: 1 1 100%;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.9rem;
  }
}



/* FOOTER */
.footer {
  background-color: #1D1A6D;
  color: #F8F9FA;
  width: 100%;
  height: 400px;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 1rem;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  transform: rotate(-45deg);
  transform-origin: center; /* optional: sets the pivot point */
}

.footer-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.social-icons a {
  margin-right: 0.5rem;
}
.social-icons img {
  width: 28px;      /* smaller, consistent size */
  height: 28px;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}
.social-icons img:hover {
  transform: scale(1.2);
}

.footer-col h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #F8F9FA;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #FFFFFF;
}

.office-location {
  display: flex;
  align-items: flex-start;
  gap: 0.3rem;
}
.office-location img {
  width: 28px;
  height: 28px;
  margin-top: 4px;
}

.contact-item {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.contact-item-link {
  text-decoration: none;
  display: inline-block;
  color: #fff;               /* base color white */
}

.contact-item-link:hover,
.contact-item-link:focus,
.contact-item-link:active {
  color: #fff;               /* keep it white on hover/focus/active */
}

.contact-item-link span {
  color: inherit;            /* inherits the white color */
}

.contact-item img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
}



/* ============================= */
/* Tablet (≤1024px)              */
/* ============================= */
@media screen and (max-width: 1024px) {
  .footer {
    height: auto;
    padding-bottom: 2rem;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 1.5rem;
  }
  .footer-col {
    width: 100%;
    min-width: unset;
    margin-bottom: 2rem;
  }
  .footer-logo {
    max-width: 180px;
  }
  .footer-quote {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .social-icons img {
    width: 24px;
    height: 24px;
    margin-right: 0.4rem;
  }
  .footer-col h3 {
    font-size: 1.3rem;
  }
  .footer-links li {
    margin-bottom: 0.4rem;
  }
  .office-location img,
  .contact-item img {
    width: 24px;
    height: 24px;
  }
  .footer-col, .office-location, .contact-item {
    gap: 0.6rem;
  }
  .footer-bottom {
    font-size: 0.85rem;
    bottom: 0.5rem;
  }
}


/* ============================= */
/* Mobile (≤768px)               */
/* ============================= */
@media screen and (max-width: 768px) {
  .footer {
    padding: 2rem 1rem 3rem;
    height: auto;
  }
  .footer-container {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
  .footer-col {
    flex: 1 1 100%;
    margin-bottom: 1.5rem;
  }
  .footer-logo {
    max-width: 150px;
    margin-bottom: 0.8rem;
  }
  .footer-quote {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .social-icons img {
    width: 20px;
    height: 20px;
    margin-right: 0.3rem;
  }
  .footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }
  .footer-links li {
    margin-bottom: 0.3rem;
  }
  .office-location,
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .office-location img,
  .contact-item img {
    width: 20px;
    height: 20px;
  }
  .footer-bottom {
    position: static;
    font-size: 0.8rem;
    margin-top: 1.5rem;
  }
}
