/* ========================================
   ROOT VARIABLES (Theme-wide)
   ======================================== */
:root {
  --primary-start: #EA8534;
  --primary-end: #A0111A;
  --primary-gradient: linear-gradient(135deg, #EA8534, #A0111A);
  --primary-gradient-hover: linear-gradient(135deg, #A0111A, #EA8534);
  
  --secondary: #4B2364;
  --secondary-light: rgba(75, 35, 100, 0.08);
  
  --text: #111827;
  --text-light: #6B7280;
  --white: #FFFFFF;
  
  --card-border: #E5E7EB;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scrollbar-gutter: stable;
}

body {
  padding-top: 90px; /* Fixed navbar offset */
  line-height: 1.6;
  color: var(--text);
  background: #FFFFFF;
}

/* ========================================
   NAVBAR - FIXED & CONSISTENT
   ======================================== */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  border-bottom: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  
  transition: all var(--transition);
}
.navbar{
    position: fixed;
    inset: 0 0 auto 0;
    width:100%;
    left:0;
    right:0;
}

/* Navbar Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================
   LOGO
   ======================================== */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}

.logo img:hover {
  cursor: pointer;
  transform: scale(1.03);
}

/* ========================================
   NAV LINKS
   ======================================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  line-height: 1;
  
  padding: 8px 0;
  transition: all var(--transition);
}

/* Underline Animation */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 50px;
  transition: all var(--transition);
  transform: translateX(-50%);
}

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

.nav-links a:hover {
  color: var(--secondary);
}

/* ========================================
   ACTIVE LINK (Current Page)
   ======================================== */
.nav-links a.active {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-links a.active::after {
  width: 100%;
  background: var(--primary-gradient);
}

/* ========================================
   CONTACT BUTTON (Special Nav Item)
   ======================================== */
.nav-links .contact-btn {
  height: 42px;
  padding: 0 28px;
  border: none;
  border-radius: 50px;
  
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 14px;
  
  display: inline-flex;
  align-items: center;
  justify-content: center;
  
  box-shadow: 0 4px 16px rgba(234, 133, 52, 0.25);
  transition: all var(--transition);
}

.nav-links .contact-btn::after {
  display: none;
}

.nav-links .contact-btn:hover {
  background: var(--primary-gradient-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(160, 17, 26, 0.30);
  color: #FFFFFF !important;
}

/* Contact Button - Active State Override */
.nav-links .contact-btn.active {
  -webkit-text-fill-color: #FFFFFF !important;
  background: var(--primary-gradient);
}

.nav-links .contact-btn.active:hover {
  background: var(--primary-gradient-hover);
}

/* ========================================
   LOGIN BUTTON
   ======================================== */
.nav-links .login-btn {
  height: 42px;
  padding: 0 24px;
  border: 2px solid #EA8534;
  border-radius: 50px;

  background: transparent;
  color: #EA8534 !important;
  font-weight: 700;
  font-size: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  transition: all var(--transition);
  -webkit-text-fill-color: #EA8534;
  margin-left: -16px;
}

.nav-links .login-btn::after { display: none; }

.nav-links .login-btn:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(234,133,52,0.25);
}

@media (max-width: 768px) {
  .nav-links .login-btn {
    width: 100%;
    justify-content: center;
    height: 48px;
    font-size: 16px;
  }
}

/* ========================================
   HAMBURGER MENU
   ======================================== */
.menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  background: transparent;
  border: none;
  gap: 5px;
}

.menu-btn span {
  width: 28px;
  height: 3px;
  background: var(--text);
  border-radius: 50px;
  transition: all var(--transition);
  display: block;
}

/* Hamburger Animation */
.menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    padding: 80px 30px 30px;
    
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    
    border-left: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 18px;
    width: 100%;
  }
  
  .nav-links .contact-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    height: 48px;
    font-size: 16px;
  }
}

/* ========================================
   EXTRA SMALL DEVICES
   ======================================== */
@media (max-width: 480px) {
  .nav-container {
    padding: 12px 16px;
  }
  
  .logo img {
    height: 45px;
  }
  
  .nav-links {
    width: 100%;
    right: -100%;
    padding: 70px 20px 20px;
  }
}

/* ========================================
   UTILITY - Page Content Offset
   (For all pages using this navbar)
   ======================================== */
.page-content {
  padding-top: 90px; /* Same as body padding-top */
}

/* For sections that need full height with navbar */
.hero-section {
  margin-top: 0;
}

/* ========================================
   PROFILE AVATAR & DROPDOWN (Navbar)
   ======================================== */
.nav-profile {
  position: relative;
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EA8534, #A0111A);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid rgba(234,133,52,0.4);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav-avatar:hover {
  box-shadow: 0 0 0 3px rgba(234,133,52,0.25);
  transform: scale(1.06);
}

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  z-index: 2000;
  animation: dropIn 0.2s ease;
}

.nav-profile-dropdown.open { display: block; }

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

.nav-dropdown-header {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #F3F4F6;
}

.nav-dropdown-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.nav-dropdown-header span {
  font-size: 0.8rem;
  color: #6B7280;
}

.nav-profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

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

.nav-profile-dropdown a:hover {
  background: #F9FAFB;
  color: #EA8534;
}

.nav-profile-dropdown a i { width: 16px; font-size: 0.85rem; color: #9CA3AF; }
.nav-profile-dropdown a:hover i { color: #EA8534; }

.nav-dropdown-divider {
  height: 1px;
  background: #F3F4F6;
  margin: 4px 0;
}

.nav-dropdown-logout { color: #e74c3c !important; }
.nav-dropdown-logout:hover { background: #fff5f5 !important; color: #c0392b !important; }
.nav-dropdown-logout i { color: #e74c3c !important; }

@media (max-width: 768px) {
  .nav-profile-dropdown {
    right: auto;
    left: 0;
  }
}
