/* ============================================
   PREMIUM NAVBAR - BIJNORI CHAI WALA
   Fully Responsive | Dynamic | Attractive
   ============================================ */

/* CSS Variables */
:root {
    --primary: #c46b2b;
    --primary-dark: #a0521a;
    --primary-light: #e8904a;
    --secondary: #4a2c1a;
    --secondary-light: #6b4226;
    --white: #ffffff;
    --bg-light: #fffaf5;
    --bg-cream: #fff5eb;
    --shadow-sm: 0 5px 20px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(196, 107, 43, 0.12);
    --shadow-lg: 0 10px 40px rgba(196, 107, 43, 0.2);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   NAVBAR BASE STYLES
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(196, 107, 43, 0.08);
}

/* Scrolled State */
.navbar.scrolled {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-cream) 100%);
    box-shadow: var(--shadow-md);
    padding: 5px 0;
}

.navbar.scrolled .logo-icon {
    width: 48px;
    height: 48px;
}

.navbar.scrolled .logo-text {
    font-size: 20px;
}

.navbar.scrolled .nav-link {
    padding: 8px 18px;
}

/* Nav Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-normal);
}

/* ============================================
   LOGO SECTION - Premium Design
   ============================================ */
.logo {
    text-decoration: none;
    transition: var(--transition-normal);
    display: block;
    position: relative;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Icon with Animation */
.logo-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-cream), var(--white));
    box-shadow: 0 5px 15px rgba(196, 107, 43, 0.25);
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-icon img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 8px 25px rgba(196, 107, 43, 0.35);
}

.logo:hover .logo-icon img {
    transform: scale(1.05);
}

/* Logo Ring Effect */
.logo-ring {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover .logo-ring {
    opacity: 1;
    animation: rotateRing 1s linear infinite;
}

@keyframes rotateRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logo Text */
.logo-text {
    line-height: 1.2;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 1px;
    position: relative;
}

.logo-text span {
    color: var(--primary);
    font-size: 24px;
    position: relative;
    display: inline-block;
}

.logo-text span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

.logo:hover .logo-text span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.logo-text small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1.5px;
    margin-top: 2px;
}

/* ============================================
   NAVIGATION LINKS - Desktop
   ============================================ */
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

/* Base Link Style */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.8px;
    border-radius: 50px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

/* Icon Styling */
.nav-link i {
    font-size: 14px;
    transition: var(--transition-normal);
}

/* Hover Background Effect */
.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #fae6d3, #f5d5b8);
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link:hover i {
    transform: translateY(-2px) scale(1.1);
    color: var(--primary);
}

/* Underline Animation for Desktop */
@media (min-width: 951px) {
    .nav-link:not(.franchise-btn)::after {
        content: '';
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--primary-light));
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 60%;
    }
}

/* Active Link State */
.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(196, 107, 43, 0.35);
}

.nav-link.active i {
    color: var(--white);
}

.nav-link.active::before {
    display: none;
}

.nav-link.active::after {
    display: none;
}

.nav-link.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 107, 43, 0.45);
}

/* Special Franchise Button */
.franchise-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white) !important;
    padding: 10px 24px !important;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(196, 107, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.franchise-btn i {
    color: var(--white);
}

.franchise-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.franchise-btn:hover::before {
    width: 300px;
    height: 300px;
}

.franchise-btn span,
.franchise-btn i {
    position: relative;
    z-index: 1;
}

.franchise-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(196, 107, 43, 0.45);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.franchise-btn:hover i:last-child {
    transform: translateX(5px);
}

/* ============================================
   MOBILE MENU TOGGLE BUTTON
   ============================================ */
.menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--bg-cream), #ffe8d6);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 2px 10px rgba(196, 107, 43, 0.15);
    z-index: 1001;
}

.menu-toggle i {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    background: linear-gradient(135deg, #ffe8d6, #ffddc4);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(196, 107, 43, 0.25);
}

.menu-toggle.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.menu-toggle.active i {
    color: var(--white);
    transform: rotate(90deg);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */
@media (max-width: 950px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 350px;
        height: 100vh;
        background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 100px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        backdrop-filter: blur(20px);
        border-left: 3px solid var(--primary);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Stagger Animation */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(6) {
        transition-delay: 0.3s;
    }

    /* Mobile Link Styling */
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 14px 20px !important;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 60px;
        border: 1px solid rgba(196, 107, 43, 0.15);
    }

    .nav-link i {
        font-size: 18px;
    }

    .nav-link:hover {
        transform: translateX(5px) !important;
    }

    /* Mobile Franchise Button */
    .franchise-btn {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        margin-top: 10px;
        border: none;
    }

    .franchise-btn:hover {
        transform: translateX(5px) !important;
    }

    /* Close Button Inside Menu */
    .nav-links::before {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 28px;
        color: var(--primary);
        cursor: pointer;
        font-weight: 300;
        transition: var(--transition-normal);
        display: none;
        z-index: 1002;
    }

    .nav-links.active::before {
        display: block;
    }

    .nav-links::before:hover {
        transform: rotate(90deg);
        color: var(--primary-dark);
    }

    /* Overlay Background */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        animation: fadeInOverlay 0.3s ease;
    }

    @keyframes fadeInOverlay {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large Desktop (1200px - 1400px) */
@media (min-width: 1200px) and (max-width: 1400px) {
    .nav-container {
        max-width: 1200px;
        padding: 15px 30px;
    }

    .nav-link {
        padding: 9px 16px;
        font-size: 13px;
    }
}

/* Desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-container {
        padding: 12px 25px;
    }

    .logo-icon {
        width: 48px;
        height: 48px;
    }

    .logo-icon img {
        width: 48px;
        height: 48px;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 20px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 12px;
    }

    .nav-link i {
        font-size: 12px;
    }

    .franchise-btn {
        padding: 8px 18px !important;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-container {
        padding: 12px 20px;
    }

    .logo-icon {
        width: 45px;
        height: 45px;
    }

    .logo-icon img {
        width: 45px;
        height: 45px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-text span {
        font-size: 18px;
    }

    .logo-text small {
        font-size: 9px;
    }

    .nav-links {
        width: 320px;
    }
}

/* Mobile Large (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .nav-container {
        padding: 10px 18px;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
    }

    .logo-icon img {
        width: 42px;
        height: 42px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 16px;
    }

    .logo-text small {
        font-size: 8px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .menu-toggle i {
        font-size: 20px;
    }

    .nav-links {
        width: 300px;
        padding: 80px 25px;
        gap: 15px;
    }

    .nav-link {
        padding: 12px 16px !important;
        font-size: 14px;
    }

    .nav-link i {
        font-size: 16px;
    }
}

/* Mobile Small (320px - 480px) */
@media (min-width: 320px) and (max-width: 480px) {
    .nav-container {
        padding: 10px 15px;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .logo-icon img {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 14px;
    }

    .logo-text span {
        font-size: 14px;
    }

    .logo-text small {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .menu-toggle i {
        font-size: 18px;
    }

    .nav-links {
        width: 280px;
        padding: 70px 20px;
        gap: 12px;
    }

    .nav-link {
        padding: 10px 14px !important;
        font-size: 13px;
    }

    .nav-link i {
        font-size: 14px;
    }
}

/* Very Small (up to 319px) */
@media (max-width: 319px) {
    .nav-container {
        padding: 8px 12px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-icon img {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 12px;
    }

    .logo-text span {
        font-size: 12px;
    }

    .logo-text small {
        font-size: 6px;
        display: none;
    }

    .menu-toggle {
        width: 35px;
        height: 35px;
    }

    .menu-toggle i {
        font-size: 16px;
    }

    .nav-links {
        width: 260px;
        padding: 60px 15px;
    }

    .nav-link {
        padding: 8px 12px !important;
        font-size: 12px;
    }

    .nav-link i {
        font-size: 12px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 950px) and (orientation: landscape) {
    .nav-links {
        padding: 50px 25px;
        gap: 12px;
        overflow-y: auto;
    }

    .nav-link {
        padding: 8px 16px !important;
    }

    body.menu-open::before {
        backdrop-filter: blur(2px);
    }
}

/* ============================================
   UTILITIES & ADDITIONAL EFFECTS
   ============================================ */

/* Scroll Animation */
.navbar.scrolled .logo {
    transform: scale(0.98);
}

/* Hover Glow Effect */
.nav-link:not(.franchise-btn):hover {
    text-shadow: 0 0 1px rgba(196, 107, 43, 0.3);
}

/* Slide In Animation for Mobile Menu */
@keyframes slideInRight {
    from {
        right: -100%;
    }

    to {
        right: 0;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {

    .navbar,
    .nav-link,
    .logo-icon,
    .menu-toggle,
    .nav-links,
    .logo-icon img {
        animation: none !important;
        transition: none !important;
    }

    .logo-icon {
        animation: none !important;
    }

    .franchise-btn::before {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar {
        position: static;
        background: white;
        box-shadow: none;
        padding: 10px 0;
    }

    .menu-toggle,
    .nav-links::before {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: auto !important;
        height: auto !important;
    }

    .nav-link {
        color: black !important;
        background: none !important;
        padding: 5px 10px !important;
    }

    .franchise-btn {
        border: 1px solid black;
        background: none !important;
        color: black !important;
    }

    .nav-link.active {
        background: none !important;
        color: black !important;
        font-weight: bold;
    }

    body.menu-open::before {
        display: none;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo-icon {
        box-shadow: 0 5px 15px rgba(196, 107, 43, 0.3);
    }
}