
/* User Display Responsive Enhancements */
@media (max-width: 480px) {
    .nav-menu.active .user-info {
        width: 100%;
        justify-content: center;
        margin-top: 18px;
    }
    .nav-menu.active .user-display {
        width: 90%;
        max-width: 320px;
        justify-content: center;
        padding: 12px 18px;
        gap: 14px;
        border-radius: 30px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        box-shadow: 0 2px 10px rgba(102,126,234,0.12);
        border: 1.5px solid #fff;
    }
    .nav-menu.active .user-avatar {
        width: 28px;
        height: 28px;
        background: #fff;
        border: 2px solid #fff;
        box-shadow: 0 1px 6px rgba(102,126,234,0.12);
    }
    .nav-menu.active .logout-btn {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        background: rgba(255,255,255,0.18);
        color: #fff;
        box-shadow: 0 1px 4px rgba(102,126,234,0.10);
    }
    .nav-menu.active .logout-btn:hover {
        background: #fff;
        color: #667eea;
        box-shadow: 0 2px 8px rgba(102,126,234,0.18);
    }
}

/* Enhanced responsive user area styles */
@media (max-width: 1024px) {
    .user-display {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        border: 1.5px solid #fff;
        box-shadow: 0 2px 10px rgba(102,126,234,0.12);
        color: #fff;
    }
    .user-avatar {
        background: #fff;
        border: 2px solid #fff;
        box-shadow: 0 1px 6px rgba(102,126,234,0.12);
    }
    .user-name {
        color: #fff;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(102,126,234,0.18);
    }
    .logout-btn {
        background: rgba(255,255,255,0.18);
        color: #fff;
        box-shadow: 0 1px 4px rgba(102,126,234,0.10);
    }
    .logout-btn:hover {
        background: #fff;
        color: #667eea;
        box-shadow: 0 2px 8px rgba(102,126,234,0.18);
    }
}

@media (max-width: 768px) {
    .nav-menu.active .user-display {
        width: 90%;
        max-width: 340px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 1.5px solid #fff;
        box-shadow: 0 2px 10px rgba(102,126,234,0.12);
        color: #fff;
        padding: 14px 22px;
        gap: 12px;
    }
    .nav-menu.active .user-avatar {
        background: #fff;
        border: 2px solid #fff;
        box-shadow: 0 1px 6px rgba(102,126,234,0.12);
        width: 28px;
        height: 28px;
    }
    .nav-menu.active .user-name {
        color: #fff;
        font-size: 1rem;
        font-weight: 600;
        text-shadow: 0 1px 3px rgba(102,126,234,0.18);
        max-width: none;
    }
    .nav-menu.active .logout-btn {
        background: rgba(255,255,255,0.18);
        color: #fff;
        box-shadow: 0 1px 4px rgba(102,126,234,0.10);
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    .nav-menu.active .logout-btn:hover {
        background: #fff;
        color: #667eea;
        box-shadow: 0 2px 8px rgba(102,126,234,0.18);
    }
}

/* Responsive user area in navbar */
@media (max-width: 1024px) {
    .user-display {
        width: 90%;
        max-width: 360px;
        padding: 12px 24px;
        gap: 12px;
    }
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    .user-name {
        font-size: 0.95rem;
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .logout-btn {
        padding: 6px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu.active .user-info {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }
    .nav-menu.active .user-display {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 2px solid #fff;
        box-shadow: 0 2px 10px rgba(102,126,234,0.12);
        color: #fff;
        padding: 10px 12px;
        gap: 12px;
        border-radius: 24px;
        min-width: 0;
        max-width: 220px;
        width: 100%;
        justify-content: center;
        transition: box-shadow 0.3s, border 0.3s;
    }
    .nav-menu.active .user-name {
        display: block !important;
        max-width: none;
    }
    .nav-menu.active .user-avatar {
        width: 24px;
        height: 24px;
    }
    .nav-menu.active .logout-btn {
        width: 22px;
        height: 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }
    .user-avatar {
        width: 22px;
        height: 22px;
    }
    .user-display {
        padding: 6px 8px;
        gap: 7px;
    }
}

/* Enhanced Hero Cards Responsive */
@media (min-width: 1200px) {

    .hero{
        min-height: 70vh;
    }
    .hero-image {
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (min-width: 1400px) {
    .hero-image {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-card {
        width: 300px;
        height: 240px;
    }
    
    .hero-card img {
        width: 220px;
        height: 160px;
    }
}

@media (min-width: 1600px) {
     .hero-image {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-card {
        width: 340px;
        height: 270px;
    }
    
    .hero-card img {
        width: 260px;
        height: 180px;
    }
}

/* Desktop/Laptop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-image {
        gap: 15px;
        padding: 0 10px;
    }
    
    .hero-card {
        width: 220px;
        padding: 12px;
    }
    
    .hero-card img {
        width: 170px;
        height: 125px;
    }
}

@media(max-width: 820px){
      .hero-image {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-card {
        width: 200px;
        min-height: 180px;
        padding: 12px;
    }
    
    .hero-card img {
        width: 150px;
        height: 110px;
        margin-bottom: 8px;
    }
    
    .hero-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-card h3 {
        font-size: 1.1rem;
    }

    .hero-title{
        font-size: 2.3rem;
    }

    .hero-subtitle{
        font-size: 0.9rem;
    }
    
    .feature-title{
        font-size: 2rem;
    }
} 

/* Tablet (768px to 1024px) */
@media (max-width: 1024px) {
    .hero-image {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-card {
        width: 200px;
        min-height: 180px;
        padding: 12px;
    }
    
    .hero-card img {
        width: 150px;
        height: 110px;
        margin-bottom: 8px;
    }
    
    .hero-card i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .hero-card h3 {
        font-size: 1.1rem;
    }
    
    /* .hero-card:nth-child(3) {
        grid-column: auto;
        max-width: 280px;
        margin: 10px auto 0;
    } */
    
      .hero{
min-height: 42vh;
    }
}



/* Responsive Design - Tablet (768px) */
@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        overflow-x: hidden;
        padding: 0 15px;
    }

    .hero {
        overflow-x: hidden;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        grid-template-columns: 1fr 1fr;
        max-width: 700px;
    }

    .hero-card {
        width: 300px;
        min-height: 222px;
        padding: 10px;
        margin-bottom: 5px;
    }

    .hero-card img {
        width: 233px;
        height: 150px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .hero-card h3 {
        font-size: 1.5rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 2 1fr;
    }

    .feature-title{
        font-size: 2rem;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar {
        max-width: none;
    }

    .filter-buttons {
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        /* text-align: center; */
    }

    /* Page Headers */
    .page-header h1 {
        font-size: 2rem;
    }

    /* Admin */
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
    }

    .sidebar-nav {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }

    .sidebar-nav .nav-item {
        white-space: nowrap;
        min-width: 120px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-table-container {
        overflow-x: scroll;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    /* Testimonials Responsive */
    .testimonial-card {
        padding: 30px 20px;
        margin: 0 5px;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .testimonial-author img {
        width: 50px;
        height: 50px;
    }
    
    .testimonial-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .testimonial-navigation {
        gap: 15px;
        margin-top: 20px;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }

    /* Contact Page Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .method-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .business-hours {
        padding: 20px;
    }
    
    .hours-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .map-placeholder i {
        font-size: 3rem;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }

    /* About Page Responsive */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Auth Responsive */
    .auth-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .demo-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .toggle-password {
        width: 32px;
        height: 32px;
        right: 6px;
    }
    
    .toggle-password i {
        font-size: 14px;
    }
    
    input[type="password"],
    input[type="text"] {
        padding-right: 46px !important;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .hero-image {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 15px;
    }
    
    .hero-card {
        width: 300px;
        min-height: 222px;
        padding: 10px;
        margin-bottom: 5px;
    }

    .hero-card img {
        width: 233px;
        height: 150px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .hero-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .hero-card h3 {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .hero-card:hover {
        transform: translateY(-5px);
    }
    
    .hero-card:hover img {
        transform: scale(1.05);
    }
}

/* Responsive Design - Mobile (480px) */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-title{
        font-size: 1rem;
    }

    .hero-card {
        width: 300px;
        min-height: 222px;
        padding: 10px;
        margin-bottom: 5px;
    }

    .hero-card img {
        width: 233px;
        height: 150px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .hero-card h3 {
        font-size: 1.3rem;
    }

    /* Admin Mobile */
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    /* Testimonials Mobile */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Contact Mobile */
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .contact-form h2 {
        font-size: 1.5rem;
    }
    
    .business-hours {
        padding: 15px;
    }
    
    .method-info h3 {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .map-placeholder {
        height: 250px;
    }

    /* About Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .process-step {
        padding: 30px 20px;
    }

    /* Auth Mobile */
    .auth-logo h2 {
        font-size: 2rem;
    }
    
    .auth-form h3 {
        font-size: 1.5rem;
    }
    
    .input-group input {
        padding: 10px 45px 10px 40px;
        font-size: 0.95rem;
    }
    
    .toggle-password {
        right: 5px;
        width: 30px;
        height: 30px;
    }
    
    .toggle-password i {
        font-size: 13px;
    }
}

/* Additional Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* User Display Mobile Support */
@media (max-width: 768px) {
    .user-display {
        padding: 5px 10px;
        gap: 8px;
    }
    
    .user-name {
        font-size: 0.85rem;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .user-avatar {
        width: 26px;
        height: 26px;
    }
    
    .logout-btn {
        width: 24px;
        height: 24px;
        padding: 4px;
    }
    
    .logout-btn i {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .user-display {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .logout-btn {
        width: 22px;
        height: 22px;
    }
}

/* Mobile menu mein user display */
@media (max-width: 768px) {
    .nav-menu.active .user-info {
        margin-top: 15px;
        justify-content: center;
    }
    
    .nav-menu.active .user-name {
        display: block !important;
        max-width: none;
    }
}




