/* Custom CSS System for HUMAN HIVE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --color-primary: #FFFFFF;
    /* White Background */
    --color-primary-light: #F8FAFC;
    --color-secondary: #D4AF37;
    /* Gold Accent */
    --color-secondary-hover: #B8962D;
    --color-dark: #0A1128;
    /* Navy for text/accents */
    --color-light: #F1F5F9;
    --color-white: #FFFFFF;
    --color-text: hsl(0, 0%, 100%);
    --color-text-dark: #0F172A;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    line-height: 1.2;
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--color-text);
    font-weight: 400;
}

.text-gold {
    color: var(--color-secondary);
}

.text-white {
    color: var(--color-white);
}

.text-dark {
    color: var(--color-dark);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.bg-darker {
    background-color: #132254;
    color: var(--color-white);
}

.bg-light {
    background-color: #90a3b6;
    color: var(--color-text-dark);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-darker h1,
.bg-darker h2,
.bg-darker h3 {
    color: var(--color-white);
}

.bg-dark p,
.bg-darker p {
    color: var(--color-white);
}

.section-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.section-title.gradient-text {
    background: linear-gradient(135deg, #dcc26b 0%, #D4AF37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signature-font {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    color: var(--color-secondary);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(60px, 10vw, 120px) 0;
}

.max-w-700 {
    max-width: 700px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 10px 30px -10px var(--color-secondary);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 18px 45px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-secondary);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-btn {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.9;
}

.login-btn:hover {
    color: var(--color-secondary);
}

.mobile-menu-btn {
    display: none;
    color: var(--color-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item-dropdown>a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 260px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--color-dark) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-secondary) !important;
    opacity: 1;
    padding-left: 30px;
}

.caret-icon {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .caret-icon {
    transform: rotate(180deg);
}

@media (max-width: 992px) {

    .navbar {
        padding: 10px 0;
        width: 100% !important;
        left: 0;
        right: 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a1128; /* Dark Navy for mobile menu */
        padding: 10px 20px 30px; /* More compact top padding */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links a {
        color: #FFFFFF !important; /* White text for mobile menu */
        padding: 12px 0; /* Slightly smaller padding */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-only-nav {
        display: block !important;
    }

    .nav-actions {
        display: flex; /* Keep visible on mobile */
        gap: 12px;
        align-items: center;
        margin-left: auto; /* Push to the right */
    }

    .nav-actions .login-btn,
    .nav-actions .btn-primary {
        display: none; /* Hide buttons on mobile bar */
    }

    .mobile-menu-btn {
        display: block;
        margin-left: 15px;
        font-size: 1.6rem; 
        color: var(--color-dark);
        z-index: 1001;
        cursor: pointer;
    }

    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .nav-item-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 0;
    }

    .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 0 10px 25px !important; /* Proper indentation */
        display: none;
        opacity: 1 !important;
        visibility: visible !important;
        border: none !important;
        background: transparent !important;
        min-width: auto !important;
    }

    .dropdown-menu a {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 10px 0 !important;
        font-size: 0.95rem !important;
        border-bottom: none !important;
        width: 100% !important;
        display: block !important;
        min-width: auto !important;
    }

    .dropdown-menu a:hover {
        color: var(--color-secondary) !important;
        background: transparent;
    }

    .nav-item-dropdown.open .dropdown-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .nav-actions {
        gap: 10px;
    }
}

/* Page Header */
.page-header {
    padding-top: 150px;
    padding-bottom: 80px;
    background: var(--color-dark);
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    /* Significantly reduced as requested */
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Grids */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 40px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-white);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Cards */
.card {
    background: #0a1128;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-card {
    padding: 0;
    overflow: hidden;
}

.program-card-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-bottom: 2px solid var(--color-secondary);
}

.program-card-content {
    padding: 30px;
}

.program-badge {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background-color: #0a1128;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 80px;
    padding-bottom: 40px;
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    gap: 40px;
}

@media(min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

/* Footer headings color fix */
.footer h4 {
    color: var(--color-white) !important;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Simple Hero Styling */
.simple-hero {
    position: relative;
    height: 100vh; /* Restore to 100vh for full impact */
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.simple-hero .hero-content {
    width: 100%;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.hero-video-bg, 
video.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.6;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Much more transparent */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 35px;
    max-width: 600px;
    font-weight: 400;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--color-white);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    border: none;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Responsive slider */
@media (max-width: 768px) {
    .slider-arrow {
        font-size: 1.5rem;
        padding: 15px 10px;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }
}

/* --- E-COMMERCE & NOTIFICATIONS --- */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%; /* Fully off-screen */
    width: min(450px, 100vw); /* Responsive width */
    height: 100vh;
    background: #FFFFFF; /* Brighter panel */
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-left: 1px solid rgba(212, 175, 55, 0.2);
}

.side-panel.open {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.close-panel-btn {
    background: none;
    border: none;
    color: var(--color-text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-panel-btn:hover {
    color: var(--color-secondary);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
}

.empty-msg {
    text-align: center;
    color: var(--color-text);
    margin-top: 50px;
    font-style: italic;
}

.panel-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.favorite-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
}

#cart-panel,
#wishlist-panel {
    display: none;
}

#cart-panel.open,
#wishlist-panel.open {
    display: flex;
}

#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1500;
    display: none;
    backdrop-filter: blur(5px);
}

#toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--color-primary);
    border: 1px solid var(--color-secondary);
    color: var(--color-text-dark);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}