/* ============================================
   SHARED STYLES FOR ALL PAGES - Muthupura.lk
   ============================================ */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ========== GLOBAL RESET & BASE STYLES ========== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: #fafbff;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ========== CSS VARIABLES ========== */
:root {
  --accent: #4f6ef7;
  --accent-rgb: 79, 110, 247;
  --dark-bg: #0a0f2e;
  --card-bg: rgba(255,255,255,0.85);
  --text-dark: #1e2a4a;
  --text-muted: #64748b;
  --border-light: rgba(220,230,255,0.7);
  --border-color: rgba(226,232,245,0.8);
  --card-radius: 20px;
  --navbar-height: 70px;
}

@media (max-width: 767px) {
  :root {
    --navbar-height: 60px;
  }
}

/* ========== SCROLLBAR STYLES ========== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: rgba(79, 110, 247, 0.25);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 110, 247, 0.45);
}

/* ========== AURORA BACKGROUND EFFECT ========== */
.bg-aurora {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 130, 237, 0.16) 0%, transparent 70%);
  top: -80px;
  left: -100px;
  animation: floatOrb1 15s ease-in-out infinite alternate;
}

.orb-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.13) 0%, transparent 70%);
  top: 30vh;
  right: -80px;
  animation: floatOrb2 18s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.10) 0%, transparent 70%);
  bottom: 5vh;
  left: 25%;
  animation: floatOrb3 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(25px, 35px, 0); }
}

@keyframes floatOrb2 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-20px, 30px, 0); }
}

@keyframes floatOrb3 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(15px, -25px, 0); }
}

@media (max-width: 767px) {
  .bg-aurora {
    display: none;
  }
}

/* ========== PREMIUM NAVBAR ========== */
.premium-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.premium-navbar.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.navbar-left {
  flex-shrink: 0;
  animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s backwards;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-logo-img {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(79, 110, 247, 0.15));
}

.navbar-logo:hover .navbar-logo-img {
  filter: drop-shadow(0 6px 20px rgba(79, 110, 247, 0.25));
  transform: translateY(-2px);
}

.navbar-brand-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.3px;
  transition: all 0.3s ease;
}

.navbar-brand-text.hide-on-mobile-logged-in {
  display: none;
}

@media (min-width: 769px) {
  .navbar-brand-text.hide-on-mobile-logged-in {
    display: inline;
  }
}

.navbar-logo:hover .navbar-brand-text {
  color: var(--accent);
}

.navbar-center {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-grow: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.3s ease;
  letter-spacing: 2px;
  animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.navbar-center .nav-link:nth-child(1) { animation-delay: 0.1s; }
.navbar-center .nav-link:nth-child(2) { animation-delay: 0.15s; }
.navbar-center .nav-link:nth-child(3) { animation-delay: 0.2s; }
.navbar-center .nav-link:nth-child(4) { animation-delay: 0.25s; }
.navbar-center .nav-link:nth-child(5) { animation-delay: 0.3s; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(79, 110, 247, 0.4);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
  height: 3px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  animation: slideInDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin-left: auto;
}

.user-greeting {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(79, 110, 247, 0.08);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: none;  /* Hidden by default on desktop */
  flex-shrink: 0;  /* CRITICAL: Don't shrink the greeting element */
}

.nav-link-auth {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 22px;
  border: 2.2px solid var(--accent);
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
  display: inline-block;
}

.nav-link-auth:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(79, 110, 247, 0.35);
  transform: translateY(-3px);
}

.nav-link-auth:active {
  transform: translateY(-1px);
}

.nav-link-auth.logout-btn {
  color: #d12845 !important;
  border: 2.2px solid #d12845 !important;
  background: transparent !important;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link-auth.logout-btn:hover {
  background: #d12845 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(209, 40, 69, 0.35);
  transform: translateY(-3px);
}

.nav-link-auth.logout-btn:active {
  transform: translateY(-1px);
}

.nav-link-admin {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(30, 42, 74, 0.6);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link-admin:hover {
  background: rgba(79, 110, 247, 0.1);
  color: var(--accent);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
  margin-right: -8px;
}

.hamburger-line {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu-dropdown {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  max-height: 400px;
  background: rgba(5, 10, 30, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  flex-direction: column;
  gap: 0;
  z-index: 9998;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-dropdown.active {
  display: flex;
  transform: translateY(0);
}

.mobile-menu-link {
  display: block;
  padding: 14px 28px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  letter-spacing: 0.5px;
}

.mobile-menu-link:hover {
  border-left-color: var(--accent);
  color: white;
  background: rgba(255,255,255,0.05);
}

.mobile-menu-link.active {
  background: rgba(255,255,255,0.05);
  color: white;
  border-left-color: var(--accent);
  font-weight: 700;
}

.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 8px 0;
}

.mobile-menu-auth {
  border: 2px solid var(--accent);
  color: var(--accent);
  margin: 12px 12px;
  border-radius: 10px;
  text-align: center;
  background: transparent;
  padding: 12px 24px;
}

.mobile-menu-auth:hover {
  background: var(--accent);
  color: #ffffff;
}

/* Override logout button styling for mobile menu - keep accent color instead of red */
.mobile-menu-auth.nav-logout-btn {
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
}

.mobile-menu-auth.nav-logout-btn:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .navbar-center {
    display: none;
  }

  .hamburger-menu {
    display: flex !important;
    z-index: 9999;
  }

  .navbar-right {
    gap: 4px;  /* Reduced from 10px to 4px to give more space to greeting */
    border-left: none;
    padding-left: 0;
    margin-left: auto;
    align-items: center;
    flex-shrink: 0;  /* CHANGED: Don't shrink so greeting has full space */
    min-width: fit-content;
  }

  .user-greeting {
    display: none !important;  /* Hidden by default on mobile */
    font-size: 0.8rem;
    padding: 4px 6px;  /* REDUCED: from 6px 10px to save horizontal space */
    margin: 0 4px 0 0;  /* REDUCED: from 0 6px 0 0 */
    white-space: nowrap;
    flex-shrink: 0;  /* CRITICAL: Don't shrink so greeting displays fully */
    overflow: visible;  /* Let text flow naturally, no truncation */
  }

  .user-greeting.show {
    display: inline-block !important;  /* Show when logged in */
  }

  .nav-link-auth {
    padding: 8px 16px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .nav-link-admin {
    display: none;
  }

  .navbar-container {
    padding: 0 16px;
    gap: 12px;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .navbar-container {
    padding: 0 12px;
  }

  .navbar-brand-text {
    font-size: 0.95rem;
  }

  .navbar-logo-img {
    height: 36px;
  }

  .nav-link-auth {
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  .user-greeting {
    font-size: 0.75rem;  /* Slightly smaller on small phones */
    padding: 3px 5px;  /* Even tighter padding */
    flex-shrink: 0;  /* CRITICAL: Don't shrink */
    overflow: visible;  /* Let text flow naturally */
  }
}

/* ========== PREMIUM FOOTER ========== */
.premium-footer {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-top: 2px solid rgba(79, 110, 247, 0.2);
  margin: 80px 0 0;
  padding: 60px 40px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: slideUp 0.6s ease-out;
}

.premium-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(79, 110, 247, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(99, 110, 247, 0.05) 0%, transparent 50%);
  pointer-events: none;
  animation: gradientFloat 15s ease-in-out infinite;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradientFloat {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -10px);
  }
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 50px;
  animation: contentFadeIn 0.8s ease-out 0.2s both;
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.footer-col h3 {
  margin: 0 0 18px 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-col p {
  margin: 0 0 12px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin: 10px 0;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding-left: 0;
}

.footer-col a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #6366f1);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-col a:hover::before {
  width: 100%;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease;
}

.footer-logo img:hover {
  filter: drop-shadow(0 6px 12px rgba(79, 110, 247, 0.4));
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 280px;
  transition: color 0.3s ease;
}

.footer-description:hover {
  color: rgba(255, 255, 255, 0.85);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  animation: staggerIn 0.8s ease-out;
}

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.15);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1.5px solid rgba(79, 110, 247, 0.3);
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  animation: popIn 0.5s ease-out backwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.social-links a:nth-child(1) { animation-delay: 0s; }
.social-links a:nth-child(2) { animation-delay: 0.1s; }
.social-links a:nth-child(3) { animation-delay: 0.2s; }
.social-links a:nth-child(4) { animation-delay: 0.3s; }

.social-links a::before {
  display: none;
}

.social-links a:hover {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  transform: translateY(-6px) rotate(10deg);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(79, 110, 247, 0.3);
}

.social-links a:active {
  transform: translateY(-3px) rotate(10deg) scale(0.95);
}

.newsletter-section {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.15) 0%, rgba(99, 110, 247, 0.08) 100%);
  border: 1.5px solid rgba(79, 110, 247, 0.25);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
  backdrop-filter: blur(10px);
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.newsletter-section h4 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out 0.3s both;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid rgba(79, 110, 247, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.newsletter-form input::placeholder {
  color: #8a9ab8;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.2);
  transform: translateY(-1px);
}

.newsletter-form button {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.2);
  font-family: 'Poppins', sans-serif;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 110, 247, 0.3);
}

.newsletter-form button:active {
  transform: translateY(0);
}

.footer-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 110, 247, 0.4), transparent);
  margin: 0 0 32px 0;
  animation: expandWidth 0.8s ease-out;
}

@keyframes expandWidth {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 0 12px;
  padding: 0;
  position: relative;
}

.footer-bottom a::before {
  display: none;
}

.footer-bottom a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom a:hover::after {
  width: 100%;
}

.footer-bottom-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  margin: 0;
}

.footer-bottom-links a:not(:last-child)::before {
  content: '|';
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  right: -18px;
}

/* Footer Collapsible Headers & Content */
.footer-col-header {
  all: unset;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  display: none;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  transition: all 0.3s ease;
  z-index: 10;
  position: relative;
}

.footer-col-header:hover {
  opacity: 0.8;
}

.footer-col-header:focus {
  outline: none;
}

.footer-col-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  display: inline;
}

.toggle-icon {
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform 0.3s ease;
  color: #ffffff;
  margin-left: 8px;
  font-family: 'Poppins', sans-serif;
}

.footer-col-content {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.footer-col-content.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.footer-brand-section .footer-col-header {
  display: none !important;
}

.footer-brand-section .footer-col-content {
  display: block !important;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .premium-footer {
    margin: 60px 0 0;
    padding: 40px 24px 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Mobile Collapsible Sections */
  .footer-col-header {
    display: flex !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
  }

  .footer-col-content {
    display: none !important;
    animation: slideDown 0.3s ease-out;
    margin-top: 8px;
  }

  .footer-col-content.active {
    display: block !important;
    animation: slideDown 0.3s ease-out;
  }

  .footer-col h3 {
    font-size: 1rem;
    color: #ffffff;
    margin: 0 !important;
  }

  .footer-col p {
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-bottom-links a:not(:last-child)::after {
    content: '';
    margin: 0;
  }
}

/* Footer Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Smooth Column Transitions */
.footer-col {
  animation: fadeIn 0.5s ease-in-out;
}

.social-links a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: Poppins;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(79,110,247,0.45);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(79,110,247,0.55);
}

.btn-secondary {
  background: rgba(255,255,255,0.10);
  color: white;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 12px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: Poppins;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.70);
  transform: translateY(-3px);
}

/* ========== CONTAINER & UTILITY STYLES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fafbff;
}

.content-wrapper {
  background-color: #fafbff;
  position: relative;
  z-index: 10;
}

.section-padding {
  padding: 60px 24px;
}

.hidden {
  display: none;
}
