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

/* CSS Custom Properties */
:root {
  --primary-color: #1363DF;
  --primary-dark: #06283D;
  --secondary-color: #47B5FF;
  --accent-color: #0f4c75;
  --text-color: #333;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --navbar-bg: rgba(15, 23, 42, 0.98);
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --header-height: 220px;
  --navbar-height: 56px;
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--accent-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Improved button base styles */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* =======================================
   🏠 HEADER & HERO SECTION
======================================= */
.hero-section {
  position: relative;
  min-height: var(--header-height);
  margin-bottom: 0;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  padding: clamp(60px, 8vh, 80px) 20px clamp(40px, 6vh, 60px);
  text-align: center;
  box-shadow: var(--shadow-heavy);
  position: relative;
  overflow: hidden;
  min-height: var(--header-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(71, 181, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(19, 99, 223, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

header h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 20px 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.typing-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 40px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

#typed-text {
  display: inline-block;
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  white-space: nowrap;
  min-width: 300px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* =======================================
   🧭 NAVIGATION
======================================= */
nav {
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  box-shadow: var(--shadow-medium);
  overflow: visible;
  border-bottom: 1px solid rgba(71, 181, 255, 0.2);
}

nav a {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 15px;
  font-weight: 500;
  padding: 0 clamp(18px, 3.5vw, 32px);
  height: var(--navbar-height);
  line-height: var(--navbar-height);
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  background: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), #00d4ff);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px 2px 0 0;
}

nav a:hover::after,
nav a.active::after {
  width: 85%;
}

nav a:hover,
nav a.active {
  background: rgba(71, 181, 255, 0.15) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* =======================================
   🧭 DROPDOWN
======================================= */
nav .dropdown {
  position: relative;
  height: var(--navbar-height);
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

nav .dropdown > a,
nav .dropdown > .dropdown-toggle {
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: var(--navbar-height);
  line-height: var(--navbar-height);
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  gap: 8px;
  transition: var(--transition);
  font-weight: 500;
}

nav .dropdown .arrow {
  font-size: 11px;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
  opacity: 0.8;
}

nav .dropdown-content {
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 240px;
  background: var(--card-bg);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--shadow-heavy);
  z-index: 1100;
  border: 1px solid var(--border-color);
  border-top: none;
  overflow: hidden;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav .dropdown-content a {
  color: var(--text-color) !important;
  padding: 16px 20px;
  height: auto;
  line-height: 1.4;
  text-align: left;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  font-size: 14px;
}

nav .dropdown-content a:last-child {
  border-bottom: none;
}

nav .dropdown-content a:hover {
  background: linear-gradient(90deg, #f8fafc, #e2e8f0);
  color: var(--accent-color) !important;
  padding-left: 24px;
  transform: none;
}

nav .dropdown-content a::after {
  display: none;
}

/* Show dropdown */
nav .dropdown:hover .dropdown-content,
nav .dropdown:focus-within .dropdown-content,
nav .dropdown.open .dropdown-content {
  display: flex;
}

/* Rotate arrow */
nav .dropdown:hover .arrow,
nav .dropdown.open .arrow {
  transform: rotate(180deg);
}

/* =======================================
   💤 TOP BAR & USER INTERFACE
======================================= */
.top-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 9999;
}

.icon-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-button {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  cursor: pointer;
  color: #ffffff;
  padding: 10px;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.icon-button:hover {
  background: rgba(71, 181, 255, 0.25);
  transform: scale(1.05);
  border-color: rgba(71, 181, 255, 0.4);
}

.avatar-container {
  cursor: pointer;
  transition: var(--transition);
  border-radius: 50%;
  padding: 3px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.avatar-container:hover {
  background: rgba(71, 181, 255, 0.25);
  transform: scale(1.05);
  border-color: rgba(71, 181, 255, 0.4);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.avatar.small {
  width: 32px;
  height: 32px;
  margin-right: 12px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-btn,
.register-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  background: rgba(15, 76, 117, 0.9);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.register-btn {
  background: rgba(71, 181, 255, 0.9);
}

.login-btn:hover,
.register-btn:hover {
  background: rgba(71, 181, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(71, 181, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* =======================================
   🖼️ GALLERY & CARD
======================================= */
.container {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(71, 181, 255, 0.1) 50%, transparent 51%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
  border-color: var(--secondary-color);
}

.card:hover::before {
  opacity: 1;
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover img {
  transform: scale(1.08);
}

.card p {
  text-align: center;
  padding: 20px 16px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  background: var(--card-bg);
  width: 100%;
  position: relative;
  z-index: 2;
}

/* =======================================
   🧩 TAB SYSTEM
======================================= */
.tab {
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tablink {
  padding: 14px 24px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  cursor: pointer;
  border-radius: 30px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.tablink::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.tablink:hover::before {
  left: 100%;
}

.tablink.active,
.tablink:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(19, 99, 223, 0.3);
}

.tablink:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* =======================================
   📄 PAGINATION
======================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination button {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-color);
  min-width: 48px;
  height: 48px;
  box-shadow: var(--shadow-light);
}

.pagination button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.pagination button.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =======================================
   🌀 SWIPER SLIDE
======================================= */
.swiper {
  width: 100%;
  padding: 40px 0;
}

.swiper-slide {
  background: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  max-width: 700px;
  margin: auto;
  font-style: italic;
  color: var(--text-color);
  position: relative;
}

.swiper-slide::before {
  content: '"';
  font-size: 60px;
  color: var(--primary-color);
  position: absolute;
  top: 15px;
  left: 25px;
  opacity: 0.3;
  font-family: serif;
}

.swiper-slide footer {
  margin-top: 20px;
  font-weight: 600;
  color: var(--primary-dark);
  font-style: normal;
  text-align: right;
  font-size: 14px;
}

.swiper-pagination-bullet {
  background-color: var(--border-color);
  opacity: 1;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}

/* =======================================
   📌 LOGO RESPONSIVE
======================================= */
.logo-top-left {
  position: absolute;
  top: 12px;
  left: 20px;
  z-index: 1000;
  transition: var(--transition);
}

.logo-top-left:hover {
  transform: scale(1.05);
}

.logo-top-left img {
  height: 48px;
  width: auto;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.3));
}

/* =======================================
   🗺️ MAP STYLES
======================================= */
.map-container {
  max-width: 800px;
  margin: 30px auto;
  display: flex;
  justify-content: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--border-color);
  transition: var(--transition);
}

.map-container:hover {
  box-shadow: var(--shadow-heavy);
  transform: translateY(-3px);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  transition: var(--transition);
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

.btn-maps:hover {
  background: linear-gradient(135deg, #3367d6, #2e7d32);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

/* =======================================
   📘 BUTTON CALL TO ACTION
======================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 35px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  box-shadow: 0 8px 24px rgba(15, 76, 117, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.auth-container button:hover::before {
  left: 100%;
}

.auth-container button:hover {
  background: linear-gradient(135deg, #0088ff, var(--secondary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(71, 181, 255, 0.4);
}

.auth-container button:active {
  transform: translateY(0);
}

.links {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
  padding: 8px 12px;
  border-radius: 8px;
}

.links a:hover {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.1);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.close-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg) scale(1.1);
}

/* =======================================
   📢 NOTIFICATION STYLES
======================================= */
.notification-success {
  background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
  color: #155724 !important;
  border: 2px solid #c3e6cb !important;
  border-radius: var(--border-radius) !important;
  padding: 25px !important;
  margin-bottom: 30px !important;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.notification-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #28a745;
}

/* =======================================
   📌 MISC COMPONENTS
======================================= */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 25px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--border-color);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.feature-box {
  background: var(--card-bg);
  border-left: 5px solid var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-left-color: var(--secondary-color);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  gap: 10px;
  min-height: 48px;
  box-shadow: var(--shadow-light);
}

.button:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.button:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.highlight-box {
  background: linear-gradient(135deg, #e8f4fa, #f0f8ff);
  padding: 30px;
  border-left: 6px solid var(--accent-color);
  border-radius: var(--border-radius);
  margin: 30px 0;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(71, 181, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.highlight-box p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* =======================================
   👣 FOOTER
======================================= */
footer {
  background: linear-gradient(135deg, rgba(27, 38, 44, 0.95), rgba(15, 76, 117, 0.95));
  color: #f0f0f0;
  text-align: center;
  padding: 50px 25px 140px;
  margin-top: 80px;
  font-size: 0.95em;
  line-height: 1.6;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>') repeat;
  pointer-events: none;
}

footer > div {
  position: relative;
  z-index: 1;
}

footer a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: var(--secondary-color);
}

/* =======================================
   💤 USER PANEL & LOGIN
======================================= */
.dropdown-panel {
  display: none;
  position: absolute;
  top: 58px;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  min-width: 280px;
  animation: slideDown 0.3s ease;
  z-index: 9999;
  overflow: hidden;
}

.dropdown-panel a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-color);
  text-decoration: none;
  gap: 14px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-panel a:last-child {
  border-bottom: none;
}

.dropdown-panel a:hover {
  background: linear-gradient(90deg, #f8f9fa, #e9ecef);
  color: var(--accent-color);
  padding-left: 24px;
}

.dropdown-panel a i {
  font-style: normal;
  width: 22px;
  text-align: center;
  font-size: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-bottom: 1px solid #e2e8f0;
}

.user-info div {
  flex: 1;
}

.user-info strong {
  display: block;
  color: var(--text-color);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 16px;
}

.user-info span {
  font-size: 13px;
  color: #666;
}

/* =======================================
   📱 RESPONSIVE - MOBILE
======================================= */
@media (max-width: 768px) {
  :root {
    --header-height: 180px;
    --navbar-height: 52px;
  }

  header {
    padding: clamp(50px, 6vh, 70px) 16px clamp(30px, 4vh, 50px);
    min-height: var(--header-height);
  }

  header h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 15px;
  }

  #typed-text {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    min-width: 250px;
  }

  .top-bar {
    top: 15px;
    right: 15px;
    gap: 8px;
  }

  .login-btn, .register-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
  }

  .icon-button {
    font-size: 14px;
    width: 36px;
    height: 36px;
    padding: 8px;
  }

  .avatar {
    width: 32px;
    height: 32px;
  }

  .avatar-container {
    padding: 2px;
  }

  nav {
    height: var(--navbar-height);
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
  }
  
  nav::-webkit-scrollbar {
    display: none;
  }
  
  nav a {
    font-size: 14px;
    padding: 0 18px;
    height: var(--navbar-height);
    line-height: var(--navbar-height);
    flex-shrink: 0;
    white-space: nowrap;
  }

  nav .dropdown > a {
    padding: 0 20px;
    height: var(--navbar-height);
    line-height: var(--navbar-height);
  }

  nav .dropdown-content {
    position: fixed;
    top: var(--navbar-height);
    left: 12px;
    right: 12px;
    min-width: unset;
    border-radius: var(--border-radius);
    max-height: 70vh;
    overflow-y: auto;
  }

  .container {
    padding: 30px 16px;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .card img {
    height: 220px;
  }

  .card p {
    padding: 16px 12px;
    font-size: 14px;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tab {
    gap: 8px;
    margin-bottom: 30px;
  }
  
  .tablink {
    padding: 10px 18px;
    font-size: 13px;
  }

  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 30px;
  }

  .logo-top-left {
    top: 8px;
    left: 16px;
  }
  
  .logo-top-left img {
    height: 40px;
  }

  .btn-primary {
    padding: 16px 32px;
    font-size: 16px;
  }

  .auth-container {
    max-width: 380px;
    padding: 40px 30px;
    margin: 20px;
  }

  .auth-container img {
    width: 150px;
  }

  .auth-container h2 {
    font-size: 24px;
    margin: 20px 0 25px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 160px;
    --navbar-height: 48px;
  }

  header {
    padding: clamp(40px, 5vh, 60px) 12px clamp(25px, 3vh, 40px);
  }

  header h1 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    margin-bottom: 12px;
  }

  #typed-text {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    min-width: 200px;
  }

  .top-bar {
    top: 10px;
    right: 10px;
    gap: 6px;
  }

  .login-btn, .register-btn {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  nav {
    height: var(--navbar-height);
    padding: 0 8px;
  }
  
  nav a {
    font-size: 13px;
    padding: 0 14px;
    height: var(--navbar-height);
    line-height: var(--navbar-height);
  }

  nav .dropdown > a {
    padding: 0 16px;
  }

  nav .dropdown-content {
    left: 8px;
    right: 8px;
  }

  .dropdown-panel {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    min-width: unset;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }
  
  .card img {
    height: 200px;
  }

  .container {
    padding: 25px 12px;
  }

  .tablink {
    padding: 8px 14px;
    font-size: 12px;
  }

  .logo-top-left {
    top: 6px;
    left: 12px;
  }
  
  .logo-top-left img {
    height: 32px;
  }

  .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
  }

  .auth-container {
    max-width: 340px;
    padding: 35px 25px;
    margin: 15px;
  }

  .auth-container img {
    width: 130px;
  }

  .auth-container h2 {
    font-size: 22px;
  }

  .auth-container input,
  .auth-container button {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* =======================================
   🎨 UTILITY CLASSES
======================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

.hidden { display: none; }
.visible { display: block; }

/* =======================================
   📄 LOADING STATES
======================================= */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =======================================
   ♿ ACCESSIBILITY IMPROVEMENTS
======================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000080;
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
    --navbar-bg: rgba(0, 0, 0, 0.95);
  }
  
  .card {
    border-width: 2px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1a202c;
    --card-bg: #2d3748;
    --text-color: #e2e8f0;
    --border-color: #4a5568;
  }
}

/* Print styles */
@media print {
  .top-bar,
  .modal-overlay,
  .dropdown-panel,
  nav,
  .pagination,
  .tab {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  header {
    background: none;
    color: black;
  }
}

/* =======================================
   🔧 PERFORMANCE OPTIMIZATIONS
======================================= */
.card img {
  will-change: transform;
}

.tablink,
.pagination button,
.btn-primary {
  will-change: transform;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

img[loading="lazy"].loaded {
  animation: none;
  background: none;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(15, 76, 117, 0.4);
}

.btn-primary .btn-icon {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: rotate(15deg) translateX(4px);
}

/* =======================================
   🎭 MODAL STYLES
======================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* =======================================
   🔒 AUTH / LOGIN
======================================= */
.auth-container {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 440px;
  padding: 50px 35px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #0d2b4a, #1870c4);
  border-radius: var(--border-radius);
  color: #fff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  animation: slideInUp 0.4s ease;
  overflow: hidden;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(71, 181, 255, 0.15) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

.auth-container > * {
  position: relative;
  z-index: 1;
}

.auth-container img {
  width: 180px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.auth-container h2 {
  font-size: 28px;
  margin: 25px 0 30px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-container input {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  padding: 18px 24px;
  color: white;
  font-size: 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.auth-container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.auth-container input:focus {
  border-color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px rgba(71, 181, 255, 0.2);
}

.auth-container button {
  background: linear-gradient(135deg, var(--secondary-color), #0088ff);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
  box-shadow: 0 6px 18px rgba(71, 181, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.auth-container button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;

