/* ===================================
   Safari Sensei - Luxurious Safari Theme
   Colors: Jungle Green, Beige, Black
   =================================== */

:root {
    /* Brand Colors */
    --jungle-green: #2d5016;
    --jungle-green-light: #3a6b1f;
    --jungle-green-dark: #1f3810;
    --beige: #d4c5a9;
    --beige-light: #e8dcc4;
    --beige-dark: #b8a889;
    --black: #1a1a1a;
    --white: #ffffff;
    --gold: #d4af37;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--jungle-green) 0%, var(--jungle-green-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--beige-light) 0%, var(--beige) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(29, 80, 22, 0.7) 0%, rgba(26, 26, 26, 0.9) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Fonts */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--jungle-green-dark);
}

/* ===================================
   Navigation Bar - Luxurious & Sticky
   =================================== */

.navbar {
    background: linear-gradient(90deg, var(--jungle-green) 0%, var(--jungle-green-dark) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-xl);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand .brand-text {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--beige-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-nav .nav-link {
    color: var(--beige-light) !important;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--gold) !important;
}

.btn-login {
    background: var(--gold);
    color: var(--black);
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    background: var(--beige-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   Hero Carousel - Stunning & Immersive
   =================================== */

.hero-carousel {
    position: relative;
    height: 90vh;
    min-height: 600px;
}

.carousel-item {
    height: 90vh;
    min-height: 600px;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

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

.carousel-content h1 {
    font-size: 4rem;
    color: var(--beige-light);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.carousel-content p {
    font-size: 1.5rem;
    color: var(--beige-light);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content .btn-primary {
    background: var(--gold);
    border: none;
    color: var(--black);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.carousel-content .btn-primary:hover {
    background: var(--beige-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--beige);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--gold);
    transform: scale(1.2);
}

/* ===================================
   Section Styles - Elegant & Spacious
   =================================== */

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--jungle-green-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--jungle-green);
    max-width: 700px;
    margin: 1.5rem auto 0;
}

.section-bg-beige {
    background-color: var(--beige-light);
}

.section-bg-pattern {
    background-image: 
        linear-gradient(30deg, var(--beige-light) 12%, transparent 12.5%, transparent 87%, var(--beige-light) 87.5%, var(--beige-light)),
        linear-gradient(150deg, var(--beige-light) 12%, transparent 12.5%, transparent 87%, var(--beige-light) 87.5%, var(--beige-light));
    background-size: 80px 140px;
    background-color: var(--white);
}

/* ===================================
   Cards - Luxurious & Interactive
   =================================== */

.card-safari {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    background: var(--white);
    height: 100%;
}

.card-safari:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-safari img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-safari:hover img {
    transform: scale(1.1);
}

.card-safari .card-body {
    padding: 2rem;
}

.card-safari .card-title {
    font-size: 1.5rem;
    color: var(--jungle-green-dark);
    margin-bottom: 1rem;
}

.card-safari .card-text {
    color: var(--black);
    margin-bottom: 1.5rem;
}

.card-safari .btn-explore {
    background: var(--jungle-green);
    color: var(--beige-light);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-safari .btn-explore:hover {
    background: var(--jungle-green-dark);
    transform: translateX(5px);
}

/* ===================================
   Team Section - Overlapping Photos
   =================================== */

.team-section {
    padding: 5rem 0;
    background: var(--gradient-secondary);
}

.team-group {
    margin-bottom: 4rem;
}

.team-group h3 {
    font-size: 2.5rem;
    color: var(--jungle-green-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.team-photos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: -20px;
    padding: 2rem;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    transition: all 0.3s ease;
    margin: -10px;
    position: relative;
    z-index: 1;
}

.team-photo:hover {
    transform: scale(1.2);
    z-index: 10;
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Buttons - Premium & Engaging
   =================================== */

.btn-safari-primary {
    background: var(--jungle-green);
    color: var(--beige-light);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-safari-primary:hover {
    background: var(--jungle-green-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--gold);
}

.btn-safari-secondary {
    background: var(--beige);
    color: var(--jungle-green-dark);
    border: 2px solid var(--jungle-green);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-safari-secondary:hover {
    background: var(--jungle-green);
    color: var(--beige-light);
    border-color: var(--jungle-green);
}

/* ===================================
   Footer - Elegant & Informative
   =================================== */

.footer {
    background: var(--gradient-primary);
    color: var(--beige-light);
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer p,
.footer a {
    color: var(--beige-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(212, 197, 169, 0.3);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background: rgba(212, 197, 169, 0.2);
    color: var(--beige-light);
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 992px) {
    .carousel-content h1 {
        font-size: 3rem;
    }
    
    .carousel-content p {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.3rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }
    
    .carousel-item {
        height: 70vh;
        min-height: 500px;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.text-jungle-green {
    color: var(--jungle-green) !important;
}

.text-beige {
    color: var(--beige) !important;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-jungle-green {
    background-color: var(--jungle-green) !important;
}

.bg-beige {
    background-color: var(--beige) !important;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

/* ===================================
   Floating Cart Button
   =================================== */

.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--jungle-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-cart-btn:hover {
    background: var(--jungle-green-light);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.floating-cart-btn .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.floating-cart-btn .cart-badge:empty {
    display: none;
}

/* ===================================
   Consultant Dashboard Sidebar
   =================================== */
.sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.sidebar .nav-link.active {
    background-color: #2e7d32;
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Sidebar Hamburger Toggle (mobile) */
@keyframes sidebar-shimmer {
    0%   { background-position: -200% center; box-shadow: 0 2px 8px rgba(46,125,50,0.15); }
    50%  { box-shadow: 0 4px 18px rgba(46,125,50,0.55); }
    100% { background-position: 200% center; box-shadow: 0 2px 8px rgba(46,125,50,0.15); }
}

.sidebar-hamburger {
    position: fixed;
    top: 62px;
    left: 12px;
    z-index: 1040;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid #2e7d32;
    color: #2e7d32;
    background: linear-gradient(
        100deg,
        #fff 0%,
        #fff 35%,
        rgba(46,125,50,0.18) 50%,
        #fff 65%,
        #fff 100%
    );
    background-size: 250% auto;
    animation: sidebar-shimmer 2.2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(46,125,50,0.15);
    transition: transform 0.15s ease;
}

.sidebar-hamburger:hover,
.sidebar-hamburger:focus {
    animation: none;
    background: #2e7d32;
    color: #fff;
    box-shadow: 0 4px 16px rgba(46,125,50,0.45);
    transform: scale(1.04);
}

/* Inline (non-fixed) variant for admin dashboard mobile toggle */
.sidebar-hamburger-inline {
    position: static;
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1.5px solid #2e7d32;
    color: #2e7d32;
    background: linear-gradient(
        100deg,
        #fff 0%,
        #fff 35%,
        rgba(46,125,50,0.18) 50%,
        #fff 65%,
        #fff 100%
    );
    background-size: 250% auto;
    animation: sidebar-shimmer 2.2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(46,125,50,0.15);
    transition: transform 0.15s ease;
}

.sidebar-hamburger-inline:hover,
.sidebar-hamburger-inline:focus {
    animation: none;
    background: #2e7d32;
    color: #fff;
    box-shadow: 0 4px 16px rgba(46,125,50,0.45);
    transform: scale(1.02);
}

/* Mobile Offcanvas Sidebar Nav */
.sidebar-mobile-nav .nav-link {
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.sidebar-mobile-nav .nav-link:hover {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
}

.sidebar-mobile-nav .nav-link.active {
    background-color: #2e7d32;
    color: white;
}

.sidebar-mobile-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* On mobile, make main content full width */
@media (max-width: 767.98px) {
    .col-md-9.ms-sm-auto.col-lg-10,
    .col-lg-10.col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
