/* style.css - Core Design System */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-blue: #171C78;
  --bright-red: #F2262C;
  --green: #0B8A43;
  --yellow-gold: #F4DD12;
  --white: #FFFFFF;
  --dark-text: #1E1E1E;
  --light-gray: #F5F7FA;
  --border-color: #E2E8F0;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: var(--font-body);
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader-logo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  animation: logo-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.preloader-wrapper::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--bright-red), var(--yellow-gold), var(--bright-red), transparent);
  animation: rotate-lighting 1.5s linear infinite;
  filter: blur(15px);
  z-index: 1;
  opacity: 0.8;
}

.preloader-wrapper::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid var(--bright-red);
  animation: pulse-border 2s ease-out infinite;
  z-index: 0;
}

@keyframes rotate-lighting {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse-border {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes logo-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.text-center { text-align: center; }
.text-red { color: var(--bright-red); }
.text-blue { color: var(--navy-blue); }
.text-green { color: var(--green); }
.bg-light { background-color: var(--light-gray); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--bright-red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(242, 38, 44, 0.4);
}

.btn-primary:hover {
  background-color: #d11f24;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 38, 44, 0.5);
}

.btn-secondary {
  background-color: var(--navy-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(23, 28, 120, 0.3);
}

.btn-secondary:hover {
  background-color: #0f1354;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-blue);
}

/* Premium Hero Buttons */
.btn-hero {
  padding: 16px 36px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hero i {
  font-size: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hero:hover i {
  transform: translateX(-4px) scale(1.15);
}

.btn-hero.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, var(--bright-red), #ff4b4b);
  z-index: -1;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.btn-hero.btn-primary:hover::before {
  opacity: 1;
}

.btn-hero.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(242, 38, 44, 0.5);
}

.btn-hero.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.btn-hero.btn-outline:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
}

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

.section-title {
  font-size: 2.5rem;
  color: var(--navy-blue);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 50px;
}

/* Header & Navigation */
.top-bar {
  background-color: var(--navy-blue);
  color: var(--white);
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 5px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 65px;
  width: 65px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white);
}

.logo:hover .logo-img {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--bright-red);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

.logo-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--bright-red);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy-blue);
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-blue);
}

.card-icon {
  font-size: 3rem;
  color: var(--bright-red);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: var(--navy-blue);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-col h4 {
  color: var(--yellow-gold);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--yellow-gold);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-blue);
  box-shadow: 0 0 0 3px rgba(23, 28, 120, 0.1);
}

/* Responsive */
@media (max-width: 1200px) {
  .logo-main { font-size: 1.5rem; }
  .nav-links { gap: 10px; }
}

@media (max-width: 992px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 30px 20px;
    box-shadow: var(--shadow-lg);
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.active a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .top-bar { font-size: 0.8rem; padding: 12px 10px; }
  .logo-img { height: 50px; width: 50px; }
  .logo-main { font-size: 1.3rem; }
  .logo-sub { font-size: 0.75rem; }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
  .top-bar { font-size: 0.75rem; line-height: 1.4; }
  .container { padding: 0 15px; }
}
