/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('../assets/main-back.png') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position-y: calc(100% + 40px);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
}

/* ===== LAYOUT CONTAINERS ===== */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  height: 100%;
  justify-content: center;
}

.main-wrapper {
  height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 90px;
  overflow: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.5rem 0 2rem 0;
  transition: all 0.3s ease;
}

.main-nav {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.navbar-brand {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1001;
}

.navbar-brand img {
  width: clamp(90px, 12vw, 120px);
  height: auto;
  border-radius: 20px;
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.navbar-nav {
  gap: 1.5rem;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  margin: 0;
  top: 2rem;
  z-index: 1000;
}

.nav-item .nav-link {
  color: white !important;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.8rem 1.8rem !important;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.nav-item .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-item .nav-link:hover::before,
.nav-item .nav-link.active::before {
  width: 60%;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin-top: 1.5rem;
}

.hero-content {
  width: 100%;
  display: flex;
  justify-content: center;
}

.welcome-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  width: 100%;
  max-width: 700px;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.welcome-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #546cb6, #546cb6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #34495e;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}

/* ===== FEATURES SECTION ===== */
.content-layout {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.features-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.features-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  transition: all 0.3s ease;
}

.features-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #546cb6, #546cb6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.features-grid-centered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item-large {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2rem;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(52, 152, 219, 0.1);
  width: 100%;
  min-height: 80px;
  justify-content: flex-start;
}

.feature-item-large:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(52, 152, 219, 0.15);
}

.feature-icon-large {
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: #546cb6;
  min-width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text-large {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  text-align: left;
}

/* Legacy grid for fallback */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature-item:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
}

.feature-icon {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #546cb6;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
  .content-container {
    padding: 0 1.5rem;
  }
  
  .header-container {
    padding: 0 1.5rem;
  }
  
  .features-grid-centered {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }
  
  .hero-section {
    margin-top: 3.5rem;
  }
  
  .feature-item-large {
    padding: 1.2rem 1.5rem;
    min-height: 70px;
  }
  
  .feature-icon-large {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
    min-width: 60px;
  }
  
  .feature-text-large {
    font-size: clamp(1rem, 2.3vw, 1.2rem);
  }
}

@media (max-width: 768px) {
  .content-container {
    padding: 0 1rem;
    gap: 2rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .main-header {
    padding: 0.6rem 0;
  }
  
  .navbar-brand {
    position: relative;
    left: auto;
    transform: none;
  }
  
  .navbar-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: static;
    transform: none;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .nav-item .nav-link {
    color: #2c3e50 !important;
    text-align: center;
    margin: 0.25rem 0;
    padding: 0.8rem 1.5rem !important;
    font-size: clamp(1rem, 3vw, 1.3rem);
  }
  
  .nav-item .nav-link:hover,
  .nav-item .nav-link.active {
    background: rgba(52, 152, 219, 0.1);
    color: #546cb6 !important;
    transform: none;
  }
  
  .hero-section {
    margin-top: 3rem;
  }
  
  .features-grid-centered {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 400px;
  }
  
  .feature-item-large {
    justify-content: center;
    text-align: center;
    padding: 1.2rem;
    min-height: 60px;
  }
  
  .feature-item-large:hover {
    transform: translateY(-3px);
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .content-container {
    padding: 0 0.75rem;
  }
  
  .header-container {
    padding: 0 0.75rem;
  }
  
  .welcome-card,
  .features-card {
    border-radius: 20px;
  }
  
  .features-grid-centered {
    max-width: 320px;
  }
  
  .feature-item-large {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    text-align: center;
  }
  
  .feature-icon-large {
    min-width: auto;
  }
  
  .feature-text-large {
    text-align: center;
  }
  
  .hero-section {
    margin-top: 2.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-card {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.features-card {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ===== MOBILE NAVIGATION TOGGLE ===== */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 0.25);
}

.icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .icon-bar-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .icon-bar-2 {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .icon-bar-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}
