/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

:root {
  --header-bg: rgba(239, 239, 245);
  --header-border: #dedeea;
  --header-text: #5d5fef;
  --header-hover-bg: #365add;
  --header-hover-text: #ffffff;
  --primary-color: #5d5fef;
  --secondary-color: #365add;
  --text-color: #ffffff;
  --text-color-light: #666;
  --overlay-color: rgba(0, 0, 0, 0.5);
  --background-light: #f4f6f9;
  --white: #ffffff;
  
   /* Header height variables for navigation spacing */
  --header-height: 60px;
  --header-height-mobile: 70px;
  
}



/* Header Styles */
.header {
  background-color: var(--header-bg);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: thick solid var(--header-border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.header-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  max-height: 60px;
  object-fit: contain;
}

/* Desktop Navigation */
.center {
  display: flex;
  gap: 1rem;
}

.head-but {
  font-size: 16px;
  font-weight: bold;
  color: var(--header-text);
  text-decoration: none;
  padding: 10px;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.head-but:hover {
  background-color: var(--header-hover-bg);
  color: var(--header-hover-text);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.mobile-nav-content {
  background-color: var(--header-bg);
  width: 80%;
  max-width: 400px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 36px;
  cursor: pointer;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  transition: background-color 0.3s ease;
}

.mobile-nav-links a:hover {
  background-color: var(--header-hover-bg);
  color: var(--header-hover-text);
  border-radius: 10px;
}

/* Responsive Breakpoint */


/* JavaScript-added classes */
.mobile-nav-overlay.is-open {
  display: block;
  opacity: 1;
}

.mobile-nav-links a:active.is-open {
  transform: translateX(0);
}

.mobile-nav-content.is-open {
  transform: translateX(0);
}


.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(rgba(93, 95, 239, 0.7), rgba(93, 95, 239, 0.8)), 
              url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  /* Add padding to account for fixed header */
  padding-top: var(--header-height-mobile);
}

.hero-content {
  max-width: 90%;
  padding: 2rem 1rem 1rem;
  margin-top: -2rem; /* Offset to center content better */
}

.hero-content h1 {
  font-size: clamp(1.8rem, 5.5vw, 3.5rem); /* Reduced starting size for mobile */
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content p {
   font-size: clamp(0.9rem, 2.8vw, 1.2rem); /* Reduced starting size */
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Very small screens optimization */
@media (max-width: 320px) {
    
  .hero-content {
    padding: 0.75rem 0.5rem;
  }

}

/* Large mobile devices (iPhone Pro Max, etc.) */
@media (max-width: 430px) and (min-width: 375px) {
  .hero-content h1 {
    font-size: clamp(1.6rem, 7.5vw, 2.8rem);
  }
  
  .hero-content p {
    font-size: clamp(0.9rem, 4.2vw, 1.15rem);
  }
}

/* Small mobile devices - Extra optimization */
@media (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-height-mobile) + 1rem);
    min-height: 450px;
  }
  
  .hero-content {
    padding: 1rem 0.75rem;
    margin-top: -1rem;
  }
  
   .hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    margin-bottom: 0.75rem;
  }
  
  .hero-content p {
    font-size: clamp(0.85rem, 4.5vw, 1.1rem);
    margin-bottom: 1.25rem;
  }
  

}



@media screen and (max-width: 768px) {

  .hero {
    height: 60vh;
    background-attachment: fixed;
    padding-top: var(--header-height);
  }
  
  .hero-content {
    margin-top: 0;
    padding: 2rem 1rem;
  }

  .hero-content {
    padding: 1.5rem 1rem 1rem;
    margin-top: -1.5rem;
  }
  
  .hero-content h1 {
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    margin-bottom: 1.5rem;
  }
  
  .center {
      display: none;
  }

  .mobile-nav-toggle {
      display: block;
  }

  .header-container {
      justify-content: space-between;
  }
  
  .hero-title {
      font-size: 2.5rem;
  }

  .hero-subtitle {
      font-size: 1.2rem;
  }
  
}

/* Tablet and desktop adjustments */
@media (min-width: 769px) {
  .hero {
    height: 70vh;
    padding-top: var(--header-height);
    background-attachment: fixed;
  }
  
  .hero-content {
    margin-top: 0;
    padding: 2rem 1.5rem;
  }
}

