/* ================================ IMPORT FONTS ================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Montserrat:wght@500;700&display=swap');

/* ================================ RESET & BASE ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f5f7fa;
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

html { scroll-behavior: smooth; }

/* Containers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 40px 0;
}

/* ================================ NAVBAR ================================ */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #001f3f, #003366);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  background: linear-gradient(90deg, #001a33, #00264d);
  padding: 6px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  transition: all 0.3s ease;
  flex-wrap: wrap;
}

header.scrolled .nav-bar {
  padding: 10px 24px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  transition: font-size 0.3s ease;
}

header.scrolled .logo {
  font-size: 1.6rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  transition: all 0.3s ease;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.15rem;
  transition: color 0.3s ease, font-size 0.3s ease;
  padding: 5px 0;
  position: relative;
}

header.scrolled .nav-links li a {
  font-size: 1rem;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #7FDBFF;
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.hamburger {
  font-size: 1.8rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
}

/* ================================ HERO SECTION ================================ */
.hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-align: center;
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: 80px;
}

.background-video {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.45); /* lighter blue overlay */
  z-index: 1;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  color: #f0f0f0;
  margin: 15px 0 25px;
  animation: fadeInUp 1.2s ease;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800, #ffcc66);
  color: white;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e68900, #ffb84d);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), 0 0 40px rgba(255, 193, 7, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

.btn-primary:hover::before {
  left: 130%;
  transition: all 0.6s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ================================ ABOUT ================================ */
.about-section {
  background-color: #f9f9f9;
  text-align: center;
  padding: 60px 20px;
}

.about-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 20px;
}

.company-intro {
  color: #444;
  max-width: 850px;
  margin: 0 auto 40px auto;
  font-size: 1.15rem;
  line-height: 1.8;
}

/* ================================ COMPANY PROFILE ================================ */
.company-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.profile-box {
  background-color: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.profile-box.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.profile-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.profile-box i {
  font-size: 2.2rem;
  color: #0074D9;
  margin-bottom: 12px;
}

.profile-box h4 {
  font-size: 1.2rem;
  color: #001f3f;
  margin-bottom: 8px;
  font-weight: 600;
}

.profile-box p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.profile-box.full-width {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #cce6ff, #99c2e6);
  color: #001f3f;
}

/* ================================ CONTACT ================================ */
.contact-section {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #001f3f;
  margin-bottom: 30px;
}

.contact-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.contact-item {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.contact-item.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.1);
}

.contact-item h4 {
  font-size: 1.2rem;
  color: #001f3f;
  margin-bottom: 10px;
}

.contact-item p, .contact-item a {
  color: #444;
  font-size: 1rem;
}

.contact-item a {
  color: #0074D9;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ================================ FOOTER ================================ */
footer {
  background-color: #001f3f;
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 0.95rem;
}

/* ================================ PRELOADER ================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0074D9;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================ ANIMATIONS ================================ */
@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ================================ BACK TO TOP BUTTON ================================ */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0074D9;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  transition: 0.3s ease;
  z-index: 1100;
}

#backToTop:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* ================================ RESPONSIVE NAVBAR ================================ */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #001f3f;
    padding: 10px 0;
  }
  .nav-links.active { display: flex; }
  .nav-links li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-links li a {
    padding: 12px 20px;
    display: block;
  }
}

/* ================= Responsive Fixes ================= */
video, img {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-content h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.company-profile-grid,
.contact-box {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-section,
.contact-section {
  padding: clamp(40px, 6vw, 80px) 20px;
}
