/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #5a05bb 30%, #8125eb 70%); /* Updated to darker, richer gradient for depth */
    color: #e6f0ff; /* Changed to lighter color for better contrast */
    overflow-x: hidden;
    position: relative;
}

/* 3D Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/landingpage_background.png') no-repeat center center/cover;
    opacity: 0.2; /* Slightly reduced opacity for subtlety */
    z-index: -1;
    transform: perspective(600px) translateZ(-10px);
}

/* Header and Navigation */

.header {
  background: #fff;
  border-bottom: 2px solid #ddd;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

/* Container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: fit-content;
  padding: 10px 30px; 
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
} 

/* Logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
  animation: logoFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: opacity, transform;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Navigation Links & Icons */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none; /* Mobile Hidden */
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 70px;
  right: 0;
  width: 220px;
  border-left: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

nav ul.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  display: flex;           /* Added for icon alignment */
  align-items: center;     /* Centers icon and text vertically */
  gap: 12px;               /* Precise spacing between icon and text */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Icon Styling */
nav ul li a i {
  font-size: 18px;
  width: 20px;            /* Fixed width so text aligns perfectly */
  text-align: center;
  color: #ae00ff;         /* Brand color for icons */
  transition: transform 0.3s ease;
}

/* Hover Effects */
nav ul li a:hover {
  color: #000;
  background-color: rgba(174, 0, 255, 0.05);
}

nav ul li a:hover i {
  transform: scale(1.2);  /* Subtle icon pop on hover */
}

/* Hamburger Styles */
.hamburger {
  display: block;
  background: #ffdd1b;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 4px;
}

/* Desktop View: Horizontal Navigation */
@media (min-width: 1400px) {
  .hamburger { display: none; }

  nav ul {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    border: none;
    opacity: 1;
    transform: none;
  }

  nav ul li a {
    padding: 10px 15px;
  }

  /* Underline effect for desktop */
  nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: #ae00ff;
    transition: width 0.3s ease;
  }

  nav ul li a:hover::after {
    width: calc(100% - 30px);
  }
}


/* Welcome Section */
.welcome-section {
    z-index: auto;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.507);
    margin-top: 60px;
    margin-bottom: 2rem;
    background: #00000081; /* Added subtle white background for depth */
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.welcome-title {
    font-size: 2.8rem;
    color: #fcfcfc; /* Changed to yellow for emphasis and warmth */
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.category-title {
    font-size: 1.8rem;
    color: #EAB50E; /* Changed to light color for better contrast */
    margin-bottom: 2rem;
    font-weight: 600;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #D2179A, #D2179A); /* Kept green gradient for natural feel */
    color: #e6f0ff; /* Changed to light color for readability */
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-btn i {
    margin-right: 0;
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.category-btn:hover::after {
    opacity: 1;
}

.category-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #F20530, #FDB12A); /* Changed to red-yellow gradient for vibrancy */
    color: #ffffff;
}

.category-btn.selected {
    background: linear-gradient(45deg, #F20530, #FDB12A); /* Aligned with hover for consistency */
    color: #ffffff;
}

.continue-btn {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #39A06E, #39A06E); /* Reversed gradient for contrast */
    color: #ffffff; /* Changed to white for readability */
    cursor: pointer;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.continue-btn i {
    margin-left: 0;
}

.continue-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #608014, #608014); /* Reversed for dynamic effect */
}

/* Image Section */
.image-section {
    background: #00000081; /* Subtle white background for consistency */
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); /* Adjusted shadow for depth */
    backdrop-filter: blur(20px);
    animation: fadeInRight 1s ease-out 0.6s both;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slideshow-container {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #D2179A, #D2179A); /* Changed to purple gradient for cohesion */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.slide:hover img {
    transform: scale(1.1);
}

.slide.active {
    display: block;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #e6f0ff; /* Changed to light color for readability */
    background: rgba(7, 7, 6, 0.6); /* Darker background for contrast */
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.slide-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(209, 13, 13, 0.781); /* Changed to white-based for visibility */
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #050505; /* Changed to yellow for emphasis */
    transform: scale(1.2);
}

/* Newsletter Section */
.newsletter {
    text-align: center;
    padding: 2rem 0;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #000307; /* Changed to light color for visibility */
}

.email-input {
    padding: 1rem 1rem 1rem 2.5rem;
    font-size: 1rem;
    border: 1px solid #070707; /* Changed to light color for cohesion */
    border-radius: 8px;
    width: 300px;
    transition: border-color 0.3s ease;
    background: rgb(255, 255, 255); /* Subtle background for input */
    color: #fcfcfc;
}

.email-input:focus {
    border-color: #FDB12A; /* Kept yellow for focus state */
    outline: none;
}

.email-input.invalid {
    border-color: #F20530; /* Changed to red for error state */
}

.newsletter-form .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #39A06E, #39A06E); /* Changed to green gradient for contrast */
    color: #e6f0ff; /* Light color for readability */
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.submit-btn i {
    margin-left: 0.5rem;
}

.submit-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #608014, #F20530); /* Changed to yellow-red for vibrancy */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95); /* Aligned with header */
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        margin-right: 1rem;
        padding: 0.5rem 1rem;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-item {
        padding: 1rem;
        text-align: center;
    }

    .logo {
        padding-left: 0.5rem;
    }

    .logo img {
        height: 40px;
    }

    .welcome-section {
        padding: 2rem 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .foreground-image img {
        height: 250px;
    }

    .email-input {
        width: 100%;
    }

    .image-section {
        padding: 1rem;
    }

    .slideshow-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0;
    }

    .logo {
        padding-left: 0.5rem;
    }

    .logo img {
        height: 35px;
    }

    .menu-toggle {
        margin-right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 1.3rem;
    }

    .welcome-section {
        padding: 1.5rem 0.5rem;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .category-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .continue-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .slideshow-container {
        height: 150px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(45deg, #7206A1, #1F0A85); /* Aligned with body gradient */
    padding: 1rem 1rem;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Adjusted shadow */
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.social-media {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-title {
    font-size: 1.5rem;
    color: #FDB12A; /* Changed to yellow for emphasis */
    font-weight: 600;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #e6f0ff;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #F20530; /* Changed to red for vibrancy */
    transform: scale(1.2);
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .social-media {
        gap: 1rem;
    }

    .social-title {
        font-size: 1.3rem;
    }

    .social-link {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .social-media {
        flex-direction: row;
        gap: 0.8rem;
    }

    .social-title {
        font-size: 1.2rem;
    }

    .social-link {
        font-size: 1.2rem;
    }
}


/* === NEW: Newsletter Label === */
.newsletter-label {
    font-size: 1.inline1rem;
    color: #FDB12A;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.email-input {
    color: #000000; /* Subtle placeholder color */
    opacity: 1;
}

/* === NEW: Category Icons – Force White Color === */
.category-btn i {
    color: white !important;
}

/* === NEW: Modal Styles (matches current design language) === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #000000c0;
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    animation: fadeInUp 0.4s ease-out;
}

.modal-content h2 {
    color: #FDB12A;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #F20530, #FDB12A);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close-btn:hover {
    transform: scale(1.05);
}