/* ===== UNIFIED DESIGN SYSTEM ===== */

:root {
  /* Color Palette - Enhanced for Better Contrast */
  --primary-blue: #0056b3;
  --deep-blue: #003d82;
  --light-blue: #e6f0ff;
  --accent-blue: #007bff;
  --pure-white: #ffffff;
  --off-white: #f8f9fa;
  --dark-gray: #1a1a1a;
  --medium-gray: #2d3748;
  --light-gray: #e2e8f0;
  --gold-accent: #d69e2e;
  --text-dark: #1a202c;
  --text-medium: #4a5568;
  --text-light: #718096;
  
  /* Shadows */
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  --button-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
  
  /* Transitions */
  --transition: all 0.3s ease;
  --fast-transition: all 0.2s ease;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-padding: 0 20px;
  --card-padding: 40px;
  
  /* Border Radius */
  --border-radius: 8px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
}

/* ===== NEWSLETTER TOP BANNER ===== */
.newsletter-top-banner {
  background: linear-gradient(90deg, var(--primary-blue), var(--deep-blue));
  color: var(--pure-white);
  padding: 8px 0;
  text-align: center;
  font-size: 14px;
  position: relative;
  z-index: 1001;
}

.newsletter-top-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.newsletter-top-banner p {
  margin: 0;
  font-weight: 500;
}

.newsletter-top-banner .btn {
  background: var(--gold-accent);
  color: var(--dark-gray);
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-top-banner .btn:hover {
  background: #e0a800;
  transform: translateY(-1px);
}

.newsletter-top-banner .close-banner {
  background: none;
  border: none;
  color: var(--pure-white);
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  margin-left: 10px;
  opacity: 0.8;
  transition: var(--transition);
}

.newsletter-top-banner .close-banner:hover {
  opacity: 1;
}

/* ===== NEWSLETTER POPUP ===== */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.newsletter-popup.active {
  display: flex;
}

.newsletter-popup-content {
  background: var(--pure-white);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.newsletter-popup h3 {
  color: var(--deep-blue);
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.newsletter-popup p {
  color: var(--text-medium);
  margin-bottom: 25px;
  line-height: 1.6;
}

.newsletter-popup .form-group {
  margin-bottom: 20px;
}

.newsletter-popup input[type="email"] {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-size: 16px;
  transition: var(--transition);
}

.newsletter-popup input[type="email"]:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.newsletter-popup .btn {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
}

.newsletter-popup .close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-medium);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.newsletter-popup .close-popup:hover {
  background: var(--light-gray);
  color: var(--text-dark);
}

.newsletter-popup .success-message {
  color: #28a745;
  font-weight: 600;
  margin-top: 15px;
  display: none;
}

.newsletter-popup .error-message {
  color: #dc3545;
  font-weight: 600;
  margin-top: 15px;
  display: none;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--off-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

/* Enhanced typography for better readability */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
}

@media (min-width: 1200px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

section {
  padding: var(--section-padding);
}

/* ===== STANDARDIZED HEADER ===== */
.header {
  background: linear-gradient(90deg, var(--deep-blue), var(--primary-blue));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pure-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo i {
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--pure-white);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--pure-white);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== GODLIKE FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--dark-gray) 0%, #1a1a2e 50%, var(--deep-blue) 100%);
  color: var(--pure-white);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.footer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M 30 0 L 0 0 0 30" fill="none" stroke="rgba(255,215,0,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: float 40s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-20px, -20px) rotate(1deg); }
  50% { transform: translate(20px, -15px) rotate(-1deg); }
  75% { transform: translate(-15px, 20px) rotate(0.5deg); }
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffd700;
  margin-bottom: 25px;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-accent), #ffd700);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 25px;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  padding: 8px 0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  transition: left 0.5s ease;
}

.footer-links a:hover::before {
  left: 100%;
}

.footer-links a:hover {
  color: #ffd700;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-links i {
  width: 20px;
  color: var(--gold-accent);
  transition: all 0.3s ease;
}

.footer-links a:hover i {
  color: #ffd700;
  transform: scale(1.2);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 50%;
  color: var(--gold-accent);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--gold-accent), #ffd700);
  color: var(--dark-gray);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
  border-color: var(--gold-accent);
}

.social-link i {
  font-size: 1.2rem;
  z-index: 1;
  position: relative;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.copyright::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
  border-radius: 1px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 14px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  font-family: var(--font-primary);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--pure-white);
  box-shadow: var(--button-shadow);
}

.btn-primary:hover {
  background: var(--deep-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--pure-white);
  border: 2px solid var(--pure-white);
}

.btn-outline:hover {
  background: var(--pure-white);
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* ===== CARDS ===== */
.card {
  background: var(--pure-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.card-header {
  padding: 30px 40px 20px;
  border-bottom: 1px solid var(--light-gray);
}

.card-body {
  padding: var(--card-padding);
}

.card-footer {
  padding: 20px 40px 30px;
  border-top: 1px solid var(--light-gray);
  background: var(--off-white);
}

/* ===== HERO SECTIONS ===== */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--pure-white) 100%);
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%230056b3" opacity="0.03"/></svg>');
  background-size: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary-blue);
  margin-bottom: 30px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--medium-gray);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-gray);
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-family: var(--font-primary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
  outline: none;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .nav-menu {
    gap: 25px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Landscape */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.4rem;
  }
  
  .nav-menu {
    gap: 20px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 30px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Tablet Portrait */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero h2 {
    font-size: 1.2rem;
  }
  
  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--deep-blue);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
  }
  
  .navbar {
    flex-direction: column;
    gap: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Mobile Large */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .card-padding {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-grid {
    gap: 25px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.4rem;
  }
  
  .container {
    padding: 0 8px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-menu a:focus,
.social-link:focus {
  outline: 2px solid var(--gold-accent);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #000080;
    --deep-blue: #000040;
    --medium-gray: #000000;
  }
}

/* Print styles */
@media print {
  .header,
  .footer,
  .btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
} 