@import "base.css";

:root {
    /* Brand Palette - Local Home Amber */
    --brand-red: #F59E0B;
    --brand-dark-red: #D97706;
    --brand-light-pink: #FFFBEB;
    --brand-white: #ffffff;
    --brand-gray-light: #f8f9fa;
    --brand-gray-medium: #e9ecef;
    --brand-text-dark: #2d3436;
    --brand-text-muted: #636e72;

    /* Original Variables Overrides */
    --primary-color: var(--brand-red);
    --primary-light: #FBBF24;
    --primary-dark: var(--brand-dark-red);
    --secondary-color: #FCD34D;
    --accent-color: #fbbf24;
    
    /* Backgrounds */
    --bg-darker: var(--brand-gray-light);
    --bg-dark: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.9);
    
    /* Text */
    --text-main: var(--brand-text-dark);
    --text-muted: var(--brand-text-muted);
    --text-white: #ffffff;
    
    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-smooth: all 0.5s ease;
    
    /* Spacing */
    --header-height: 70px;
    --section-padding: 60px;
    
    /* Fonts */
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', sans-serif;
}

.ml-1 {
    margin-left: 0.5rem;
}

.nav-link {
    font-family: var(--font-heading);
}

body {
    background-color: var(--bg-darker) !important;
    color: var(--text-main) !important;
}

#home-page, #room-detail-page {
    padding-top: var(--header-height);
}

body::before {
    display: none !important; /* Remove the noise texture from the portfolio template */
}

.container {
    max-width: 1295px;
}

/* --- Atmospheric Background Dots --- */
.bg-blob-dot {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    transition: var(--transition-smooth);
}

.blob-1 {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

.blob-2 {
    top: 30%;
    left: -15%;
    background: radial-gradient(circle, var(--secondary-color), transparent 70%);
}

.blob-3 {
    top: 60%;
    right: -10%;
    background: radial-gradient(circle, #a855f7, transparent 70%); /* Purple accent */
}

.blob-4 {
    bottom: -10%;
    left: 20%;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
}

body.light-theme .bg-blob-dot {
    opacity: 0.08;
}

/* Navigation Styles */
.brand-nav {
    background-color: var(--brand-red) !important;
    /* padding: 10px 0; */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-nav .container {
    gap: 12px;
}

.brand-nav .navbar-collapse {
    min-width: 0;
}

.navbar-brand {
    padding: 0;
}

.brand-logo {
    height: auto;
    max-height: 100px;
    width: auto;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    color: #1F2937 !important; /* Deep charcoal for better readability on amber */
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
    color: #000 !important;
    transform: translateY(-1px);
}

.nav-link:hover {
    opacity: 0.8;
}

.navbar-nav.cinehome .nav-item .nav-link {
    color: var(--text-white)!important;
}

.navbar-nav.cinehome {
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.navbar-nav.cinehome > .nav-item {
    margin: 0 4px;
}

/* Smooth Dropdown Animation */
.animate-dropdown {
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    overflow: visible !important;
}

.navbar-nav.cinehome .dropdown-menu.glass-card {
    width: max-content;
    min-width: 280px;
    max-width: min(420px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-nav.cinehome .dropdown-menu.glass-card li {
    width: 100%;
}

.navbar-nav.cinehome .dropdown-menu.glass-card .dropdown-item {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    white-space: normal;
    line-height: 1.35;
}

/* Smooth Dropdown Animation (Desktop Only) */
@media (min-width: 992px) {
    .dropdown:hover .animate-dropdown {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-nav.cinehome .nav-link {
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar-nav.cinehome .nav-link {
        font-size: 0.86rem;
        padding-left: 6px;
        padding-right: 6px;
    }

    .social-links {
        display: none !important;
    }
}

/* Multi-level Dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: static;
    display: block !important;
    visibility: visible;
    opacity: 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 4px 0 4px 12px;
    padding: 0 0 0 12px;
    border: 0;
    border-left: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    transform: none;
    transition: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

@media (max-width: 991px) {
    .brand-nav .navbar-collapse {
        background-color: var(--brand-red);
        margin-top: 10px;
        padding: 20px;
        border-radius: 15px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav.cinehome {
        align-items: stretch;
        gap: 0;
        flex-wrap: nowrap;
    }

    .navbar-nav.cinehome > .nav-item {
        margin: 0;
    }

    .nav-item.dropdown > .dropdown-menu {
        display: none !important;
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 8px;
        transform: none;
    }

    .nav-item.dropdown.show > .dropdown-menu {
        display: block !important;
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .dropdown-submenu > .dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        left: 0 !important;
        margin: 4px 0 4px 12px;
        box-shadow: none;
        background: transparent !important;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: block !important;
        padding-left: 12px;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-submenu > .dropdown-item i {
        transform: rotate(90deg);
    }
}

.smaller {
    font-size: 0.8rem;
}

/* Branch Grid Styles */
.location-group-title {
    color: var(--brand-red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.location-group-subtitle {
    font-size: 0.85rem;
    color: var(--brand-text-muted);
}

.location-card-container {
    background-color: var(--brand-gray-medium);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.location-item {
    text-align: center;
    transition: transform 0.3s;
}

.location-item:hover {
    transform: translateY(-5px);
}

.location-icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.location-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.branch-count {
    font-size: 0.7rem;
    color: var(--brand-red);
}

/* Footer Styles */
.brand-footer {
    background-color: var(--brand-red);
}

.brand-logo-footer {
    max-width: 250px;
    height: auto;
    max-height: 100px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: white;
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
    color: var(--brand-red);
}

.social-link-top {
    font-size: 1rem;
    transition: transform 0.3s, color 0.3s;
}

.social-link-top:hover {
    transform: translateY(-2px);
    color: var(--brand-red) !important;
}

.brand-nav .nav-extra {
    gap: 12px;
    min-width: 0;
}

.brand-nav .social-links {
    align-items: center;
    gap: 8px !important;
    margin-right: 8px !important;
}

.brand-nav .social-link-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.brand-nav .social-link-top:hover {
    background: #fff;
    border-color: #fff;
    color: var(--brand-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.2);
}

/* Premium Language Button */
.lang-btn-premium {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 999px !important;
    padding: 0 14px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 76px;
    height: 42px;
    color: #fff !important;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.12);
}

.lang-btn-premium:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.62) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.2);
}

.lang-btn-premium i {
    margin-left: 0 !important;
    font-size: 0.78rem;
    opacity: 0.9 !important;
}

.lang-text {
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1;
    letter-spacing: 0;
}

.language-dropdown .dropdown-menu {
    border-radius: 16px !important;
    padding: 8px;
    min-width: 92px;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 16px 34px rgba(31, 41, 55, 0.16) !important;
}

.language-dropdown .dropdown-item {
    border-radius: 10px;
    font-weight: 700;
    color: var(--brand-text-dark);
    padding: 8px 15px;
    text-align: center;
}

.language-dropdown .dropdown-item:hover {
    background: var(--brand-light-pink);
    color: var(--brand-red);
}

/* Blog & Review Styles */
.blog-card {
    border: none;
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-img-wrapper img {
    height: 100%;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--brand-red);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.review-card {
    background: white;
    transition: all 0.3s;
}

.review-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--brand-red) !important;
}

.italic {
    font-style: italic;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: var(--brand-light-pink);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-form-wrapper {
    border: 1px solid rgba(0,0,0,0.05);
}

/* Blog Page Specifics */
.hover-text-brand:hover {
    color: var(--brand-red) !important;
}

.bg-brand-light {
    background-color: var(--brand-light-pink);
}

.social-icon-sm {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text-muted);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.social-icon-sm:hover {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
}

.blog-content p {
    line-height: 1.8;
    color: var(--brand-text-dark);
}

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

.cta-box {
    background: linear-gradient(135deg, var(--brand-red), #fb923c);
}

.btn-white {
    background: white;
    color: var(--brand-red);
}

.btn-white:hover {
    background: #f8f9fa;
    color: var(--brand-dark-red);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.btn-float {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--brand-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-float:hover {
    transform: scale(1.1);
}

.btn-zalo img {
    width: 25px;
}

.back-to-top {
    background: #ffcc00;
    color: white;
}

/* Member Brands */
.member-brand-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.member-brand-card:hover {
    transform: scale(1.02);
}

/* --- Booking Page Styles --- */

.brand-hero-pattern {
    background-color: var(--brand-red);
    background-image: url("../img/bg-header.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.rounded-20 {
    border-radius: 20px !important;
}

.rounded-10 {
    border-radius: 10px !important;
}

.text-brand {
    color: var(--brand-red);
}

.btn-brand-pink {
    background-color: var(--brand-red);
    color: white;
    border: none;
    transition: background 0.3s;
}

.btn-brand-pink:hover {
    background-color: var(--brand-dark-red);
    color: white;
}

.badge-promo {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff9f43;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.amenity-icon {
    width: 32px;
    height: 32px;
    background-color: var(--brand-gray-light);
    color: var(--brand-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 5px;
}

.amenity-icon:hover {
    color: var(--brand-red);
}

/* Schedule Legend */
.legend-box {
    width: 25px;
    height: 15px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 5px;
}

.bg-red-gradient {
    background: linear-gradient(to right, var(--brand-red), #FBBF24);
}

.bg-yellow {
    background-color: #feca57;
}

.bg-red {
    background-color: #ff6b6b;
}

.bg-dark-red {
    background-color: #ee5253;
}

/* Schedule Table */
.schedule-grid-wrapper {
    background: white;
}

.schedule-grid-wrapper table th {
    font-size: 0.85rem;
    font-weight: 700;
    font-size: 10px !important;
}

.time-slot-btn {
    height: 20px;
    width: 100%;
    border: 1px solid #FB923C;
    border-radius: 5px;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
    box-shadow: inset 0 0 5px rgba(245, 158, 11, 0.1);
    background-color: #fff;
    color: #EA580C;
}

.time-slot-btn:hover:not(.used):not(.disabled):not(.active) {
    background: #FFF7ED;
    color: #C2410C;
    border-color: #F97316;
}

.time-slot-btn.active, 
.board-note-item.active .box {
    background: #ffff00;
    color: #ffff00;
    border-color: #ffff00;
}

.time-slot-btn.used,
.board-note-item.used .box {
    background: #F97316;
    color: #FFFFFF;
    border-color: #EA580C;
}

.time-slot-btn.disabled,
.board-note-item.disabled .box {
    background: #E5E7EB;
    color: #9CA3AF;
    border-color: #D1D5DB;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.85;
}

.board-note,
.board-note-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.board-note-item {
    margin-right: 20px;
}

.board-note-item .box {
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 3px;
    margin-right: 5px;
    background-color: #fff;
    border: 1px solid #FB923C;
    box-shadow: inset 0 0 5px rgba(245, 158, 11, 0.1);
    color: #EA580C;
}

.board-note-item-label {
    font-size: 12px;
}

@media (max-width: 576px) {
    .time-slot-btn {
        height: 18px;
        font-size: 0.8rem;
    }
    
    .schedule-grid-wrapper table th {
        font-size: 0.7rem;
        padding: 5px;
    }
}

.checkout-bar {
    background-color: #fff;
    border: 1px solid var(--brand-gray-medium) !important;
}

.alert-info-custom {
    background-color: #e0f7fa;
    color: #00838f;
    border-color: #4dd0e1;
    font-size: 0.85rem;
}

/* --- Room Detail Styles --- */

.rounded-15 {
    border-radius: 15px !important;
}

.main-img-wrapper {
    height: 450px;
}

.side-img-wrapper {
    height: 221px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.amenity-item {
    font-size: 0.9rem;
    color: var(--brand-text-dark);
}

.amenity-item i {
    width: 20px;
    color: var(--brand-red);
}

.amenity-item img {
    max-width: 26px;
}

.price-box {
    transition: transform 0.3s;
    background-color: #fff;
}

.price-box:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red) !important;
}

.service-card {
    transition: all 0.3s;
}

.service-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--brand-red) !important;
}

.booking-sidebar {
    background-color: white;
}

.alert-warning-custom {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

@media (max-width: 991px) {
    .booking-sidebar {
        position: static !important;
        margin-top: 30px;
    }
    
    .room-gallery .main-img-wrapper {
        height: 300px;
    }
}

.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: var(--brand-red);
    background-color: #fff !important;
}

.btn-outline-danger.active {
    background-color: var(--brand-red) !important;
    color: white !important;
    border-color: var(--brand-red) !important;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 600;
    margin: 0 15px;
    position: relative;
    padding: 5px 0 !important;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

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

/* Custom Hamburger Toggler */
.custom-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    z-index: 10001;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    position: absolute;
    transition: var(--transition-fast);
}

.toggler-icon:nth-child(1) { top: 0; }
.toggler-icon:nth-child(2) { top: 9px; }
.toggler-icon:nth-child(3) { top: 18px; }

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.custom-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Nav Extra Toggles - Premium Redesign */
.nav-extra {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.btn-icon:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    min-width: 150px;
    padding: 10px;
    display: none;
    z-index: 10002;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu-custom.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-item {
    display: block;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.lang-item:hover, .lang-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Dropdown Animations and Styles */
.dropdown-toggle::after {
    display: none !important;
}
.dropdown-toggle i.transition-transform {
    transition: transform 0.3s ease;
}
.dropdown-toggle[aria-expanded="true"] i.transition-transform {
    transform: rotate(180deg);
}
.dropdown-menu.glass-card .dropdown-item {
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.dropdown-menu.glass-card .dropdown-item:hover,
.dropdown-menu.glass-card .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

/* Premium Hover Interactions */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
}

.link-hover {
    position: relative;
    display: inline-block;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition-fast);
}

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

/* Hero Section */
#hero {
    min-height: 100vh;
    padding-top: var(--header-height);
}

.hero-image-container {
    position: relative;
    overflow: visible !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-avatar {
    position: relative;
    z-index: 2;
    max-height: 550px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.4));
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 80% , transparent 100%);
}

.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.2) 40%, transparent 70%);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 8s ease-in-out infinite;
}

/* About Section Styles */
.about-image-stack {
    position: relative;
    padding: 40px;
}

.about-card-main {
    overflow: hidden;
    padding: 10px;
    border-radius: 24px;
}

.about-card-main img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    display: block;
}

.about-card-sub {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 20px 30px;
    transform: translate(20px, 20px);
    z-index: 5;
}

.floating-anim {
    animation: float-small 4s ease-in-out infinite;
}

@keyframes float-small {
    0%, 100% { transform: translate(20px, 20px); }
    50% { transform: translate(20px, 10px); }
}

/* Project Cards */
.project-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 24px;
}

.project-img, .blog-card img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-img {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
}

/* Contact Section */
.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 24px;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Modal Styling */
.modal-backdrop {
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Premium Pagination - Theme Consistent */
.premium-pagination .page-item {
    margin: 0 5px;
}

.premium-pagination .page-item .page-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    padding: 0;
    box-shadow: none;
}

.premium-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.premium-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.premium-pagination .page-item.disabled .page-link {
    opacity: 0.2;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

body.light-theme .premium-pagination .page-link {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

body.light-theme .premium-pagination .page-item.active .page-link {
    color: white !important;
}

/* Project Showcase Styles */
.filter-btn {
    padding: 10px 25px;
    border-radius: 50px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

.filter-btn.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-item {
    display: block;
}

/* Sophisticated Tech Stack */
.skill-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.skill-card:hover .skill-icon-box {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: rotateY(180deg);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.2);
}

.skill-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition-fast);
}

.skill-card:hover .skill-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.2);
}

body.light-theme .skill-icon-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .skill-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.hero-text-desc {
    text-align: justify;
    text-justify: inter-word;
}

.exp-list {
    padding-left: 1rem;
}

.exp-list li {
    margin-bottom: 5px;
    position: relative;
}

.exp-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -18px;
    height: 2px;
    width: 10px;
    background: #6c757d!important;
}

.exp-list::marker {
    color: var(--primary-color);
}

.pagination .page-item {
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

.pagination .page-item .page-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 1px solid #dee2e6;
    color: var(--brand-text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-red) !important;
    border-color: var(--brand-red) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.pagination .page-item .page-link:hover {
    background-color: var(--brand-light-pink);
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #ced4da;
    border-color: #dee2e6;
}

#hero-slider  {
    overflow-x: hidden;
}

.infinite-scroll-table {
    border-collapse: collapse;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 2px;
    contain: layout paint;
    font-size: 13px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    text-align: center;
    transform: translateZ(0px);
    will-change: scroll-position;
    border-spacing: 0px;
    position: relative;
}

.table-booking-schedule {
    background-color: var(--brand-white);
    font-size: 11px;
    min-width: 100%;
    white-space: nowrap;
    table-layout: auto !important;
    width: max-content !important;
}

.table-booking-schedule th {
    background-color: rgb(247, 247, 247);
    box-shadow: rgb(235, 235, 235) 0px 0px 0px 1px inset;
    border-width: 0px;
    border-style: solid;
    border-color: rgb(222, 226, 230);
    border-image: initial;
}

.table-booking-schedule th,
.table-booking-schedule td {
    padding: 8px;
}

.table-booking-schedule th,
.table-booking-schedule td {
    white-space: nowrap;
}

.table-booking-schedule thead tr.sticky-header {
    backface-visibility: hidden;
    background-color: #fff;
    position: sticky;
    top: 0;
    transform: translateZ(0);
    z-index: 3;
}

.table-booking-schedule thead tr.sticky-header.sticky-2 {
    top: 33px;
    z-index: 4;
}

.table-booking-schedule thead tr.sticky-header.sticky-3 {
    top: 66px;
    z-index: 5;
}

.table-booking-schedule tbody tr td.sticky-column,
.table-booking-schedule thead tr th.sticky-column {
    backface-visibility: hidden;
    background-color: #f7f7f7;
    box-shadow: inset 0 0 0 1px #ebebeb;
    padding: .5rem;
    position: sticky;
    transform: translateZ(0);
    z-index: 2;
}

.table-booking-schedule tbody tr:hover {
    background-color: var(--brand-light-pink);
    box-shadow: rgba(225, 225, 225, 0.15) 0px 0px 10px;
}

.timeslot-column {
    width: 16% !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 60px;
    }

    #hero {
        padding-top: calc(var(--header-height) + 60px); 
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 60px;
    }

    .hero-btns {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-avatar {
        max-height: 350px;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 15px;
        right: 15px;
        z-index: 1050;
        background: rgba(2, 6, 23, 0.98); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px;
        border-radius: 24px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }

    .nav-link {
        margin: 0 !important;
        padding: 12px 20px !important;
        text-align: center;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .nav-extra {
        gap: 15px;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item .row {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .display-3 {
        font-size: 2.6rem;
    }

    .glass-card {
        padding: 20px 15px !important;
    }

    .hero-blob, .bg-blob-dot {
        display: none!important;
    }

    .hero-avatar {
        max-height: 100% !important;
    }

    .hero-text-desc {
        text-align: center;
        text-justify: inter-word;
    }

    .lead {
        font-size: 18px;
    }

    #hero-slider {
        min-height: 30vh;
    }

    #hero-slider .hero-swiper-wrapper {
        padding: 0!important;
    }

    #hero-slider .swiper-button-next, 
    #hero-slider .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .brand-logo {
        max-height: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .table-booking-schedule th,
    .table-booking-schedule td {
        padding: 0.5rem;
    }

    .table-booking-schedule tbody tr td:nth-child(1) {
        width: 10px !important;
        white-space: normal !important;
    }

    .timeslot-column {
        width: 80px !important;
    }
}

@media (max-width: 575.98px) {
    .display-3 {
        font-size: 2.3rem;
    }

    .hero-btns .btn-premium {
        width: 100%;
    }
}
