/* ===== CSS VARIABLES ===== */
:root {
    --primary: #ff6b00;
    --primary-dark: #e05e00;
    --secondary: #00a8ff;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #64748b;
    --transition: all 0.3s ease;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --accent: #ff9800;
}

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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== UTILITIES ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.highlight {
    color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* Login Button (Header में) */
.btn-login {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    transition: var(--transition);
    border-radius: var(--radius);
}

.btn-login:hover {
    background: var(--primary);
    color: var(--light);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark);
    color: var(--light);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.452);
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
    color: var(--light);
}

.nav-link:hover {
    color: var(--primary);
}

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

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

/* ===== MOBILE MENU BUTTON (पक्का दिखे) ===== */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
    transition: var(--transition);
}

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

/* ===== USER DROPDOWN (Desktop) ===== */
.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-account-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.user-account-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-icon-main {
    font-size: 1.8rem;
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 260px;
    background: var(--light);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: var(--light);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-header {
    padding: 10px 20px;
}

.user-greeting {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background-color: #eee;
    margin: 8px 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.dropdown-link i {
    width: 20px;
    text-align: center;
    color: var(--text-light);
    transition: var(--transition);
}

.dropdown-link:hover i {
    color: var(--primary);
}

.logout-link {
    color: #dc3545;
}

.logout-link:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

.logout-link i {
    color: #dc3545;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--light);
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
}

/* ===== LOGO SCROLLER ===== */
.logo-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: rgba(8, 8, 8, 0.301);
    padding: 20px 0;
}

.logo-scroll {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.logo-item {
    display: inline-block;
    margin: 0 30px;
    vertical-align: middle;
}

.logo-item img {
    height: 70px;
    width: auto;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== ABOUT ===== */
.about {
    background-color: rgba(71, 69, 68, 0.144);
}
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.service-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    color: var(--light);
    background: linear-gradient(to top, rgba(0,0,0,0.8) 30%, transparent);
}

.service-card h2 {
    font-size: 20px;
}

/* ===== CONTACT ===== */
.contact {
    background-color: rgba(71, 69, 68, 0.144);
}
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
}
.contact-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}
.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
}
.footer-logo span {
    color: var(--primary);
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--light);
    margin-right: 8px;
    transition: var(--transition);
}
.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}
.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}
.footer-link {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}
.footer-link:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}
.copyright span {
    color: var(--primary);
}

/* ===== FLOATING BUTTONS & MODAL ===== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.whatsapp-btn { background: #25D366; }
.support-btn { background: var(--primary); }
.floating-btn:hover { transform: scale(1.1); }

.tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.floating-btn:hover .tooltip { opacity: 1; }

.support-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}
.support-modal.active { display: flex; }
.support-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: var(--radius);
    overflow: hidden;
    animation: modalFadeIn 0.3s;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.support-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.support-body { padding: 25px; }
.support-option {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    margin-bottom: 15px;
    transition: var(--transition);
    cursor: pointer;
}
.support-option:hover {
    border-color: var(--primary);
    background: rgba(255,107,0,0.05);
}
.support-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,107,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* ==========================================================
   ===== RESPONSIVE – MOBILE FIRST (≤ 768px) =====
   ========================================================== */

@media (max-width: 768px) {
    /* ----- 1. मोबाइल मेनू बटन – पक्का दिखे ----- */
    .mobile-menu-btn {
        display: block !important;
        font-size: 2rem !important;
        padding: 8px 12px !important;
        color: #ffffff !important;
        background: transparent !important;
        border: none !important;
        z-index: 1001 !important;
    }

    /* ----- 2. हेडर पैडिंग ----- */
    .header-container {
        padding: 0 15px;
    }

    /* ----- 3. नेविगेशन मेनू – स्लाइडर ----- */
    .nav-menu {
        position: fixed;
        top: 68px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 68px);
        background-color: var(--dark);
        transition: left 0.3s ease;
        padding: 30px 20px;
        overflow-y: auto;
        display: block !important;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    /* ----- 4. मेनू लिस्ट – वर्टिकल & सेंटर ----- */
    .nav-list {
        flex-direction: column;
        gap: 1.8rem;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    /* ----- 5. Login/Register बटन – पूरी चौड़ाई ----- */
    .btn-login {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
        display: inline-block;
        padding: 12px 20px;
        font-size: 1rem;
        text-align: center;
    }

    /* ----- 6. User Dropdown – मोबाइल के लिए स्टैटिक ----- */
    .user-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .user-account-trigger {
        margin: 0 auto;
    }

    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-width: 300px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: var(--radius) !important;
        margin: 10px auto 0 auto !important;
        display: none !important;
        padding: 10px 0 !important;
    }

    /* ड्रॉपडाउन का तीर मोबाइल में छिपाओ */
    .dropdown-menu::before {
        display: none !important;
    }

    .user-dropdown.active .dropdown-menu {
        display: block !important;
    }

    /* ड्रॉपडाउन लिंक – सेंटर & सफ़ेद रंग */
    .dropdown-link {
        justify-content: center;
        color: var(--light) !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--primary) !important;
    }

    .dropdown-link i {
        color: rgba(255, 255, 255, 0.7);
    }

    .dropdown-link:hover i {
        color: var(--primary);
    }

    .user-greeting {
        color: var(--light) !important;
        text-align: center;
    }

    .dropdown-header {
        text-align: center;
    }

    /* Logout link का रंग मोबाइल पर भी रहे */
    .logout-link {
        color: #dc3545 !important;
    }
    .logout-link:hover {
        background: rgba(220, 53, 69, 0.1) !important;
        color: #dc3545 !important;
    }

    /* ----- 7. अन्य टाइपोग्राफी ----- */
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section { padding: 60px 0; }
}

/* ===== छोटे मोबाइल (≤ 576px) ===== */
@media (max-width: 576px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 1.8rem; }
    .footer-container { grid-template-columns: 1fr; }
    .service-card { height: 220px; }
    .floating-btn { width: 50px; height: 50px; font-size: 20px; }
    .support-content { max-width: 95%; }
}
