/********** Template CSS **********/
:root {
    --primary: #3b82f6;    /* Modern blue instead of #ffde59 */
    --light: #f8fafc;      /* Lighter shade instead of #F1F8FF */
    --dark: #0f172a;       /* Darker navy instead of #0F172B */
    
    /* Adding new modern colors */
    --secondary: #64748b;   /* Slate gray */
    --success: #10b981;    /* Emerald */
    --warning: #f59e0b;    /* Amber */
    --danger: #ef4444;     /* Red */
    --info: #06b6d4;       /* Cyan */
    
    /* Additional modern colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

.ff-secondary {
    font-family: 'Pacifico', cursive;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #000;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    font-size: 15px;
    color: var(--light) !important;
    text-transform: uppercase;
    font-weight: 500;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
}

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

.navbar-dark .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
    }

    .navbar-dark .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, .1)
    }

    .navbar-dark .navbar-nav .nav-link,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
    }

    .navbar-dark .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 999;
        background: transparent !important;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: linear-gradient(
            rgba(59, 130, 246, 0.95), 
            rgba(15, 23, 43, 0.8)
        ) !important;
        
    }
}


/*** Hero Header ***/
.hero-header {
    background: linear-gradient(
        rgba(59, 130, 246, 0.8), 
        rgba(15, 23, 43, 0.9)
    ), url(../img/bg-hero.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-header .img1 {
    animation: imgRotate1 linear ;
    animation-duration: 30s; 
    animation-delay: 0s;
    animation-iteration-count: infinite;
    
}
.hero-header .img2 {
    animation: imgRotate2 linear ;
    animation-duration: 30s; 
    animation-delay: 3s;
    animation-iteration-count: infinite;
}
.hero-header .img3 {
    animation: imgRotate3 linear ;
    animation-duration: 30s; 
    animation-delay: 6s;
    animation-iteration-count: infinite;
    
}
.hero-header .img4 {
    animation: imgRotate4 linear ;
    animation-duration: 30s; 
    animation-delay: 9s;
    animation-iteration-count: infinite;
}
.hero-header .img5 {
    animation: imgRotate5 linear ;
    animation-duration: 30s; 
    animation-delay: 12s;
    animation-iteration-count: infinite;
    
}
.hero-header .img6 {
    animation: imgRotate6 linear ;
    animation-duration: 30s; 
    animation-delay: 15s;
    animation-iteration-count: infinite;
}
.hero-header .img7 {
    animation: imgRotate7 linear ;
    animation-duration: 30s; 
    animation-delay: 18s;
    animation-iteration-count: infinite;
    
}
.hero-header .img8 {
    animation: imgRotate8 linear ;
    animation-duration: 30s; 
    animation-delay: 21s;
    animation-iteration-count: infinite;
}
.hero-header .img9 {
    animation: imgRotate9 linear ;
    animation-duration: 30s; 
    animation-delay: 24s;
    animation-iteration-count: infinite;
    
}
.hero-header .img10 {
    animation: imgRotate10 linear ;
    animation-duration: 30s; 
    animation-delay: 27s;
    animation-iteration-count: infinite;
}

@keyframes imgRotate1 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    } 
}
@keyframes imgRotate2 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate3 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate4 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate5 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate6 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate7 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate8 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate9 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}
@keyframes imgRotate10 { 
    2% { 
        z-index: 200000;
        transform: rotate(-260deg); 
                     
    } 
    10% { 
        z-index: 200000;
        transform: scale(4);       
    } 
    11% { 
        z-index: 200000;
        transform: scale(1);       
    }
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Food Menu ***/
.nav-pills .nav-item .active {
    border-bottom: 2px solid var(--primary);
}


/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/video.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    height: calc(100% - 38px);
    transition: .5s;
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item:hover {
    height: 100%;
}

.team-item .btn {
    border-radius: 38px 38px 0 0;
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: var(--light) !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*** TikTok Carousel ***/
.tiktok-carousel {
    padding: 0 45px;
}

.tiktok-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.tiktok-carousel .owl-nav .owl-prev,
.tiktok-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: var(--light);
    border-radius: 50%;
    font-size: 22px;
    transition: .5s;
}

.tiktok-carousel .owl-nav .owl-prev:hover,
.tiktok-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}

.tiktok-post-item {
    min-height: 680px;
    background: var(--light);
    padding: 20px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    display: flex;
    justify-content: center;
    align-items: center;
}

.tiktok-post-item .tiktok-embed {
    margin: 0 auto;
}

/* Ensure TikTok iframe is responsive */
.tiktok-embed iframe {
    max-width: 100% !important;
}

/* Add loading state */
.tiktok-post-item::before {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--gray-500);
    opacity: 0.8;
}

.tiktok-post-item.loaded::before {
    display: none;
}

[dir="rtl"] .tiktok-carousel .owl-nav {
    flex-direction: row-reverse;
}


/* Modern Spinner */
.loading-spinner {
    display: flex;
    gap: 0.5rem;
}

.loading-spinner .spinner-grow {
    width: 1.5rem;
    height: 1.5rem;
    animation-duration: 1s;
}

/* Modern Navbar */
.navbar {
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(10px);
}

.navbar-brand .brand-text span {
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-brand:hover .brand-text span {
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Modern Hero Section */
.hero-header {
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

/* Modern Gallery Grid */
.modern-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Feature Cards */
.feature-card {
    background: white;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2);
}

/* Modern Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn:hover::before {
    width: 200%;
    height: 200%;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
}

/* Animation Classes */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

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

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

.slideInLeft {
    animation-name: slideInLeft;
}

.slideInRight {
    animation-name: slideInRight;
}

/* Login/Register Form Styling */
.form-floating > .form-control,
.form-floating > .form-select {
    height: 60px;
    border-radius: 30px;
    padding: 1rem 1.25rem;
}

.form-floating > label {
    padding: 1rem 1.25rem;
}

.card.shadow {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-pills .nav-link {
    color: var(--dark);
    font-weight: 600;
    padding: 15px 25px;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
}

.nav-pills .nav-link:hover:not(.active) {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-primary {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.hero-header {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

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

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

.slideInLeft {
    animation-name: slideInLeft;
}

.slideInRight {
    animation-name: slideInRight;
}

/* Responsive container margins */
@media (max-width: 399.98px) {
    main.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Also adjust any direct children of main to maintain content spacing */
    main.container > * {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Keep alerts and other full-width elements flush to edges */
    main.container > .alert {
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 0;
    }
}


