/* ================================ */
/* RESET AND GLOBAL STYLES */
/* ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
}

/* ================================ */
/* NAVIGATION BAR */
/* ================================ */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000 !important;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 30px; /* Even spacing */
  position: relative;
}

#navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Logo Styles */
.navbar .logo img {
    width: 60px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 50px;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    border-bottom: 2px solid crimson;
    padding-bottom: 2px;
}

/* ================================ */
/* HAMBURGER MENU ICON */
/* ================================ */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    z-index: 999;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* Animated Hamburger States */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================ */
/* HERO SECTION */
/* ================================ */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Hero Background Image */
.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Hero Content */
.hero-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Call-to-Action Button */
.btn {
    display: inline-block;
    background: #3138da;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 transparent;
    transform: scale(1);
}

.btn:hover {
    background: #1f25a0;
    box-shadow: 0 0 15px rgba(49, 56, 218, 0.6);
    transform: scale(1.05);
}

/* ================================ */
/* SLIDING SIDE MENU */
/* ================================ */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: calc(100vh - 70px);
    margin-top: 103px;
    padding: 60px 30px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 998;
    transition: right 0.5s ease;
}

.side-menu a {
    position: relative;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    color: white;
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.side-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: crimson;
    transition: width 0.4s ease;
}

.side-menu a:hover {
    color: #ff3c00;
    border-bottom: 2px solid crimson;
}

.side-menu a:hover::after {
    width: 100%;
}

/* Side Menu Active State */
.side-menu.show {
    right: 0;
}

/* ================================ */
/* SEARCH BAR */
/* ================================ */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 40px;
    transition: all 0.4s ease;
    overflow: visible;
    background-color: transparent;
}

.search-icon {
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 0;
}

.search-icon img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  transition: all 0.3s ease;
}
.search-container.expanded .search-icon {
    background: transparent;
    width: auto;
    height: auto;
    margin-right: 0;
    position: absolute;
    left: 10px;
    z-index: 3;
    box-shadow: none;
}

.search-container.expanded .search-icon img {
    transform: translateX(5px);
}

#searchInput {
    width: 0;
    opacity: 0;
    height: 40px;
    padding: 0 12px 0 42px;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    transition: width 0.4s ease, opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.75);
    color: black;
    outline: none;
}

.search-container.expanded #searchInput {
    width: var(--search-width, 220px);
    opacity: 1;
}

/* Search Suggestions */
.suggestions-list {
    position: absolute;
    top: 120%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 4px 0 0 0;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
    display: none;
}

.suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestions-list li:hover {
    background-color: #f1f1f1;
}

/* ================================ */
/* RESPONSIVE DESIGN */
/* ================================ */
@media (max-width: 768px) {
    
    /* Show hamburger menu on mobile */
    .hamburger {
        display: flex;
    }
    
    /* Mobile navigation dropdown */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 60px;
        flex-direction: column;
        gap: 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Show navigation when active */
    .nav-links.show {
        display: flex;
    }

}
/* ================================ */
/* LOADING INDICATOR */
/* ================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 99999;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: crimson;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: white;
    font-size: 1.2rem;
}

/* ================================ */
/* NOTIFICATION TOAST */
/* ================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    align-items: center;
    gap: 15px;
    z-index: 100000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification.show {
    display: flex;
}

.notification.error {
    background: #d32f2f;
}

.notification.success {
    background: #388e3c;
}

.notification.warning {
    background: #f57c00;
}

#notificationClose {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
