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

:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --primary-color: #0d2c54;
  --primary-light: #1b4965;
  --accent-color: #00b4d8;
  --accent-light: #90e0ef;
  --dark-color: #03045e;
  --light-color: #f8f9fa;
  --white: #ffffff;
  
  /* Status Colors */
  --color-success: #2ec4b6;
  --color-warning: #ffb703;
  --color-danger: #e63946;
  --color-info: #0077b6;
  
  /* Text Colors */
  --text-dark: #212529;
  --text-muted: #6c757d;
  --text-light: #f8f9fa;
  
  /* Styling Defaults */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --box-shadow-md: 0 10px 20px rgba(13, 44, 84, 0.08);
  --box-shadow-lg: 0 20px 40px rgba(3, 4, 94, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--light-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-color);
  transition: opacity 0.5s ease;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid var(--accent-light);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: var(--transition);
  padding: 20px 0;
}

header.scrolled {
  background: var(--white);
  box-shadow: var(--box-shadow-sm);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

header.scrolled .logo {
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

.logo-img {
  height: 36px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
}

header.scrolled nav a {
  color: var(--primary-light);
}

nav a:hover, nav li.active a {
  color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

header.scrolled nav a:hover, header.scrolled nav li.active a {
  background: rgba(13, 44, 84, 0.05);
}

.btn-nav {
  background: var(--accent-color) !important;
  color: var(--white) !important;
  box-shadow: var(--box-shadow-sm);
}

.btn-nav:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 90vh;
  min-height: 650px;
  background: linear-gradient(rgba(13, 44, 84, 0.8), rgba(3, 4, 94, 0.95)), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: var(--white);
  padding-top: 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--light-color), transparent);
  pointer-events: none;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--accent-light);
  margin-bottom: 35px;
  font-weight: 300;
}

/* Glass Tracking Card */
.tracking-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  box-shadow: var(--box-shadow-lg);
  transform: translateY(0);
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}

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

.tracking-card h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.tracking-card p {
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.tracking-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  position: relative;
}

.tracking-form input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.tracking-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.tracking-form input:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  border: none;
  background: var(--accent-color);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit:hover {
  background: var(--accent-light);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Features Section */
.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--light-color);
  border-radius: var(--border-radius-md);
  padding: 40px 30px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--box-shadow-sm);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-md);
  background: var(--white);
  border-color: var(--accent-light);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 180, 216, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  transform: scale(1.1);
}

.feature-icon img {
  width: 32px;
  height: 32px;
}

.feature-card:hover .feature-icon img {
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About Us Section */
.grid-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  background: var(--light-color);
  padding: 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-sm);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-color);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.about-image {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
}

.about-image img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Footer Section */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 30px;
  border-top: 5px solid var(--accent-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-about p {
  color: var(--accent-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--accent-light);
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--accent-light);
  opacity: 0.6;
}

/* Mobile & Tablet Styles */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .grid-about {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  header {
    background: var(--white);
    box-shadow: var(--box-shadow-sm);
    padding: 15px 0;
  }
  .logo {
    color: var(--primary-color);
  }
  nav {
    display: none; /* simple burger menu triggers can be added */
  }
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
