* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-layout {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: flex-start;
}

.logo-container {
    flex: 0 0 auto;
    max-width: 200px;
}

.main-logo {
    width: 100%;
    height: auto;
    max-height: 100px;
    display: block;
    object-fit: contain;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.search-container {
    flex: 0 1 300px;
    min-width: 180px;
    display: flex;
    gap: 8px;
}

.search-container input {
    flex: 1;
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

.search-container button {
    padding: 8px 18px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-container button:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.auth-buttons {
    display: flex;
    gap: 8px;
    margin-left: 5px;
}

.login-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.signup-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
}

/* Hero Banner - FILLS ENTIRE SPACE WITHOUT CROPPING IMPORTANT CONTENT */
.hero-banner {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #667eea;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    text-align: center;
    color: white;
    padding: 20px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.hero-text p {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-info {
    padding: 20px;
}

.car-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #333;
}

.car-info .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.car-info .details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.car-info .details span {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #555;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Car Detail Modal */
.car-detail-modal {
    max-width: 900px;
}

.car-detail-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.car-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.car-detail-thumbnails img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-detail-thumbnails img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.car-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.car-detail-grid .detail-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
}

.detail-item strong {
    display: block;
    color: #667eea;
    margin-bottom: 5px;
}

/* Admin Dashboard */
.admin-header {
    background: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.admin-form input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.admin-form input:focus {
    outline: none;
    border-color: #667eea;
}

.file-upload-group {
    grid-column: 1 / -1;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.file-upload-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.file-upload-group input[type="file"] {
    border: none;
    padding: 10px;
    cursor: pointer;
}

.file-upload-group small {
    display: block;
    margin-top: 8px;
    color: #999;
}

.admin-form .submit-btn {
    grid-column: 1 / -1;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.logout-btn {
    padding: 10px 25px;
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c53030;
    transform: scale(1.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.success-message {
    background: #48bb78;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px 20px;
    margin-top: 40px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    color: #555;
    line-height: 1.6;
}

.review {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.review p {
    font-style: italic;
    color: #333;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: white;
}

.call-card .contact-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.whatsapp-card .contact-icon {
    background: #25D366;
}

.email-card .contact-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.location-card .contact-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-number,
.contact-email,
.contact-location {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-action-btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.call-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.whatsapp-btn {
    background: #25D366;
}

.email-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.location-btn {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.contact-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.contact-form-section h2 i {
    color: #667eea;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-submit {
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Reviews Section */
.reviews-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 40px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
}

.reviews-section h2 i {
    color: #fbbf24;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    direction: rtl;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 3px solid #667eea;
    direction: ltr;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.review-stars {
    color: #FFD700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.review-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
    font-style: italic;
    font-size: 0.95rem;
}

.review-author {
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 3px;
}

.review-author strong {
    display: block;
    color: #333;
    font-size: 0.9rem;
    text-align: center;
}

.review-author span {
    display: block;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .header-layout {
        gap: 20px;
    }
    
    .search-container {
        flex: 0 1 250px;
        min-width: 150px;
    }
    
    .car-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 20px 25px;
    }

    .hero-banner {
        height: 400px;
    }
}

/* Tablets and mobile devices */
@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 10px 15px;
    }

    .header-layout {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .logo-container {
        max-width: 150px;
    }

    .main-logo {
        max-height: 80px;
    }

    .nav-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .search-container {
        flex: 1;
        max-width: 100%;
        width: 100%;
    }

    .auth-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .login-btn, .signup-btn {
        font-size: 12px;
        padding: 6px 15px;
    }

    /* Hero Banner */
    .hero-banner {
        height: 350px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    /* Car Grid */
    .car-grid {
        grid-template-columns: 1fr 1fr;
        padding: 15px;
        gap: 15px;
    }

    .car-card img {
        height: 180px;
    }

    .car-info {
        padding: 15px;
    }

    .car-info h3 {
        font-size: 1.1rem;
    }

    .car-info .price {
        font-size: 1.2rem;
    }

    .car-info .details span {
        font-size: 0.8rem;
        padding: 3px 10px;
    }

    /* Modals */
    .modal-content {
        margin: 10% 15px;
        padding: 20px;
    }

    /* Admin */
    .admin-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px 20px;
    }

    .admin-content {
        padding: 0 15px;
    }

    /* Car Detail */
    .car-detail-grid {
        grid-template-columns: 1fr;
    }

    .car-detail-modal .car-detail-main-image {
        height: 250px;
    }

    .car-detail-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .car-detail-thumbnails img {
        height: 80px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }

    .footer {
        padding: 30px 20px 15px;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }

    /* Contact Page */
    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero {
        padding: 40px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 20px;
    }

    /* Reviews */
    .reviews-section {
        padding: 0 15px;
        margin: 20px auto;
    }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
        direction: ltr;
        gap: 15px;
    }

    .reviews-section h2 {
        font-size: 1.6rem;
    }

    .review-card {
        padding: 15px;
    }

    .review-card p {
        font-size: 0.85rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Header */
    .logo-container {
        max-width: 120px;
    }

    .main-logo {
        max-height: 60px;
    }

    .login-btn, .signup-btn {
        font-size: 11px;
        padding: 5px 12px;
    }

    /* Hero */
    .hero-banner {
        height: 280px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Car Grid - Single column */
    .car-grid {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 12px;
    }

    .car-card img {
        height: 180px;
    }

    .car-info {
        padding: 12px;
    }

    .car-info h3 {
        font-size: 1rem;
    }

    .car-info .price {
        font-size: 1.1rem;
    }

    /* Reviews - Single column */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-section h2 {
        font-size: 1.3rem;
    }

    /* Contact - Single column */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 18px;
    }

    /* Footer - Single column */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Admin */
    .admin-form input {
        font-size: 13px;
        padding: 10px;
    }

    .submit-btn, .logout-btn {
        font-size: 14px;
        padding: 10px 20px;
    }

    /* Modals */
    .modal-content {
        padding: 15px;
        margin: 5% 10px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
    }

    /* Car Detail */
    .car-detail-modal .car-detail-main-image {
        height: 200px;
    }

    .car-detail-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .car-detail-thumbnails img {
        height: 60px;
    }

    .car-detail-grid .detail-item {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 24px;
        bottom: 15px;
        left: 15px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .logo-container {
        max-width: 100px;
    }

    .main-logo {
        max-height: 50px;
    }

    .login-btn, .signup-btn {
        font-size: 10px;
        padding: 4px 10px;
    }

    .hero-banner {
        height: 220px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .car-card img {
        height: 150px;
    }

    .car-info h3 {
        font-size: 0.95rem;
    }

    .car-info .price {
        font-size: 1rem;
    }

    .review-card p {
        font-size: 0.8rem;
    }
}