* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: 'Open Sans', sans-serif;
}
/* ONLY html should have scrollbar */
html {
 overflow-x: hidden;
 overflow-y: scroll; /* Force show scrollbar to prevent layout shift */
 scroll-behavior: smooth;
 height: 100%;
}


/* Body should NEVER scroll - it just contains content */
body {
 margin: 0;
 padding: 0;
 overflow: hidden; /* CRITICAL: No scroll on body */
 min-height: 100vh;
 display: flex;
 flex-direction: column;
 background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}


/* Remove ANY overflow from main containers */
main,
section,
.hero-wrapper,
.image-reveal,
.container {
 overflow: visible !important;
}


.testMove {
 transform: translateY(200px) !important;
 transition: 0.3s ease !important;
}


/* ============================================
   MODERN NAVBAR STYLES
   ============================================ */

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'Open Sans', sans-serif;
  padding: 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.navdiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  height: 70px;
  position: relative;
}


/* Logo - left aligned */
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  /* Remove the negative margin */
  margin: 0;
  padding: 0;
}

.logo a {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the image inside the link */
  text-decoration: none;
  transition: transform 0.3s ease;
  /* Remove negative margin */
  margin: 0;
  padding: 0;
}

.logo a:hover {
  transform: scale(1.05);
}

/* Logo image - properly sized and centered */
.logo-image {
  height: 100px;       /* Small, reasonable height */
  width: auto;        /* Maintain aspect ratio */
  max-height: 1000px;   /* Cap maximum height */
  max-width: 150px;   /* Cap maximum width */
  object-fit: contain; /* Ensure image fits properly */
  vertical-align: middle; /* Center vertically */
}


/* Centered links */
.nav-links {
  flex: 1 1 auto;
  display: flex;  
  justify-content: center; 
} 

.nav-links ul { 
  display: flex; 
  gap: 1.5rem;  
  list-style: none !important;  
  margin: 0;  
  padding: 0; 
}

.nav-links a {
  text-decoration: none;  
  color: #334155; 
  font-weight: 600; 
  padding: 10px 15px; 
  border-radius: 8px;
  transition: all 0.3s ease;
} 

.nav-links a:hover {
  background: #eff6ff;
  color: #2563eb;
}

/* Login/Sign Up far right */
.nav-right {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  margin-right: 0;
  list-style: none;
}

/* Login Button */
.login {
  border: 2px solid #2563eb; /* solid blue border */ 
  text-decoration: none; 
  color: #2563eb; /* text color */ 
  font-weight: 700; 
  padding: 10px 24px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  margin-left: 0.5rem;
  background: white; /* button background */
  transition: all 0.3s ease;
}

.signup {
  border: 2px solid #2564eb00; /* placeholder for border */
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  transition: all 0.3s ease;
}

.login:hover, .signup:hover {
  background: linear-gradient(135deg, #1e40af, #2563eb) !important;
  color: white !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

nav li a:hover {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
  transform: translateY(-2px);
}

/* Active Link */
nav li a.active {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

nav li a.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ============================================
   FOOTER STYLES
   ============================================ */

footer {
    background: rgb(1, 9, 67);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color:white;
}

.footer-about p {
    line-height: 1.8;
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.5;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #60a5fa;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-bottom-links a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Open Sans', sans-serif;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-button {
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  font-family: 'Open Sans', sans-serif;
}

.profile-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.profile-photo-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.profile-initials {
  background: white;
  color: #2563eb;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.profile-name {
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s;
}

.profile-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Profile Menu Dropdown */
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
  z-index: 2000;
  overflow: hidden;
}

.profile-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-menu-header strong {
  color: rgb(1, 9, 67);
  font-size: 15px;
  font-weight: 700;
}

.profile-menu-email {
  color: #64748b;
  font-size: 13px;
  word-break: break-word;
}

.profile-menu-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  font-size: 14px;
}

.profile-menu-item:hover {
  background: #f8fafc;
  color: #2563eb;
}

.profile-menu-item.logout {
  color: #ef4444;
}

.profile-menu-item.logout:hover {
  background: #fee2e2;
  color: #dc2626;
}

.menu-icon {
  font-size: 18px;
  width: 24px;
  display: inline-block;
  text-align: center;
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: #f1f5f9;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #2563eb;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(10px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navdiv {
    height: 60px;
    padding: 0 1rem;
  }

  .logo-image {
    height: 80px;
  }

  .navdiv ul {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .profile-name {
    display: none;
  }

  .navdiv ul.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    animation: slideDown 0.3s ease-out;
  }

  .navdiv ul.mobile-open li {
    width: 100%;
  }

  .navdiv ul.mobile-open li a {
    display: block;
    text-align: center;
    width: 100%;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}