/* =========================================
   1. CSS VARIABLES (Global Theme)
   ========================================= */
:root {
  --german-black: #1a1a1a;
  --german-red: #c8102e;
  --german-gold: #ffce00;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --border: #dee2e6;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  
  /* Specific Brand Colors (for AODRIA, Contact, etc.) */
  --primary: #1a5f4a;
  --primary-light: #2d8a6e;
  --linkedin: #0077b5;
  --instagram: #E1306C;
  --twitter: #1DA1F2;
  --github: #333;
}

/* =========================================
   2. RESET & BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Inter', sans-serif; 
  line-height: 1.6; 
  color: var(--german-black); 
  background: var(--light); 
  overflow-x: hidden; 
}
h1, h2, h3, h4, h5, h6 { 
  font-family: 'Poppins', sans-serif; 
  font-weight: 700; 
  line-height: 1.3; 
  margin-bottom: 1rem; 
}
p { margin-bottom: 1rem; color: var(--gray); }
a { color: var(--german-red); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--german-black); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   3. UTILITIES
   ========================================= */
.wrapper, .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section { padding: 80px 0; }
.section.light { background: var(--light); }

/* =========================================
   4. FLAG BAR
   ========================================= */
.flag-bar { height: 6px; width: 100%; display: flex; position: fixed; top: 0; z-index: 1001; }
.flag-bar .black { flex: 1; background: var(--german-black); }
.flag-bar .red { flex: 1; background: var(--german-red); }
.flag-bar .gold { flex: 1; background: var(--german-gold); }

/* =========================================
   5. UNIFORM NAVIGATION
   ========================================= */
nav {
  background: var(--german-black);
  padding: 1rem 0;
  position: sticky;
  top: 6px;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo {
  color: var(--white); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; gap: 10px; text-decoration: none; transition: var(--transition);
}
.nav-logo:hover { color: var(--german-gold); transform: scale(1.02); }
.nav-logo i { color: var(--german-gold); }

.nav-list { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; align-items: center; }
.nav-list li a {
  color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.95rem;
  padding: 8px 16px; border-radius: var(--radius); transition: var(--transition); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-list li a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-list li a[aria-current="page"] {
  border-bottom: 2px solid var(--german-gold); background: transparent; color: var(--white);
}

/* Dropdown Styles */
.nav-dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: var(--white); min-width: 180px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
  z-index: 100; list-style: none; border: 1px solid var(--border);
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
  color: var(--german-black); padding: 10px 20px; display: block; font-size: 0.9rem; border-bottom: none;
}
.dropdown-menu li a:hover { background: var(--light); color: var(--german-red); }
.nav-dropdown.active .dropdown-toggle { 
  color: var(--german-gold); border-bottom: 2px solid var(--german-gold); 
}

/* Contact CTA Button in Nav */
.nav-cta {
  background: var(--german-red) !important; color: var(--white) !important;
  border-radius: 50px !important; padding: 8px 20px !important; font-weight: 600 !important;
}
.nav-cta:hover {
  background: #a00d26 !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.mobile-menu-toggle { display: none; background: transparent; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* =========================================
   6. FOOTER
   ========================================= */
footer { background: var(--german-black); color: var(--white); padding: 60px 0 30px; border-top: 4px solid var(--german-red); margin-top: 60px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer h4 { font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--german-gold); display: flex; align-items: center; gap: 10px; }
.footer p { opacity: 0.8; line-height: 1.8; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.footer ul li a:hover { opacity: 1; color: var(--german-gold); padding-left: 5px; }
.footer-social { display: flex; gap: 15px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.2rem;
}
.footer-social a:hover { background: var(--german-red); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; text-align: center; opacity: 0.7; font-size: 0.9rem; }

/* =========================================
   7. ANIMATIONS & ACCESSIBILITY
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  from { text-shadow: 0 0 10px rgba(255, 206, 0, 0.4); }
  to { text-shadow: 0 0 25px rgba(255, 206, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.6); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================
   8. MOBILE RESPONSIVE (Global Nav)
   ========================================= */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .nav-list {
    display: none; flex-direction: column; width: 100%; position: absolute;
    top: 100%; left: 0; background: var(--german-black); padding: 20px; 
    box-shadow: var(--shadow-lg); align-items: flex-start; gap: 0;
  }
  .nav-list.active { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list li a { padding: 12px 16px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-list li a[aria-current="page"] { border-bottom: 1px solid rgba(255,255,255,0.05); border-left: 3px solid var(--german-gold); }
  
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,0.05); margin-top: 0; display: none; border: none; padding-left: 20px;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
  .dropdown-menu li a:hover { background: rgba(255,255,255,0.1); color: var(--german-gold); }
  
  .nav-cta { background: var(--german-gold) !important; color: var(--german-black) !important; text-align: center; justify-content: center; margin-top: 10px; }
}
