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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.hai {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.main {
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.navbar {
    max-width: 1200px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 0 0 15px 15px;
}

.icon {
    display: flex;
    align-items: center;
}

.logo {
    color: #dc3545;
    font-size: 28px;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo::after {
    content: " CAR";
    color: #333;
}

.menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

ul li {
    list-style: none;
}

ul li a {
    text-decoration: none;
    color: #333;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

ul li a:hover {
    color: #dc3545;
    background: #f8f9fa;
    transform: translateY(-2px);
}
.hero-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .highlight {
    color: #dc3545;
}

.hero-content .par {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-content .cn {
    background: #dc3545;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content .cn:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

.hero-content .cn a {
    text-decoration: none;
    color: white;
}

.form {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.form h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #dc3545;
}

.form input {
    width: 100%;
    height: 50px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #333;
    font-size: 16px;
    padding: 0 15px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
}

.form input:focus {
    outline: none;
    border-color: #dc3545;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

::placeholder {
    color: #999;
    font-family: 'Segoe UI', sans-serif;
}

.btnn {
    width: 100%;
    height: 50px;
    background: #dc3545;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btnn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

.form .link {
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    padding-top: 20px;
    text-align: center;
    color: #666;
}

.form .link a {
    text-decoration: none;
    color: #dc3545;
    font-weight: 600;
}

.liw{
    padding-top: 15px;
    padding-bottom: 10px;
    text-align: center;
}

.icon a{
    text-decoration: none;
    color: #fff;
}

.icon ion-icon{
    color:#fff;
    font-size: 30px;
   
    padding-left: 5px;
    padding-top: 5px;
    transition: 0.3s ease;

}

.icon ion-icon:hover{
    color: #ff7200;
}

.liw{
    color: #fff;
}




.adminbtn {
    background: #333;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adminbtn:hover {
    background: #dc3545;
    transform: translateY(-2px);
}

.adminbtn a {
    text-decoration: none;
    color: white;
}

/* Cars Section */
.cars-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.car-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f8f9fa;
}

.car-info {
    padding: 25px;
}

.car-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.car-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.car-detail {
    font-size: 14px;
    color: #666;
}

.car-detail strong {
    color: #333;
}

.car-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 20px;
}

.book-btn {
    width: 100%;
    background: #dc3545;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.book-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.book-btn a {
    text-decoration: none;
    color: white;
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.mobile-menu-toggle.active {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content .par {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-content .cn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .navbar {
        height: 80px;
        padding: 0 15px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
        padding: 20px 0;
    }
    
    ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }
    
    ul li:last-child {
        border-bottom: none;
    }
    
    ul li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-radius: 0;
        font-size: 16px;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    ul li a:hover {
        background: #f8f9fa;
        color: #dc3545;
        transform: none;
    }
    
    .adminbtn {
        width: calc(100% - 40px);
        margin: 10px 20px;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
        background: #dc3545;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .adminbtn:hover {
        background: #333;
        transform: none;
    }
    
    .adminbtn a {
        display: block;
        width: 100%;
        color: white;
        text-decoration: none;
        font-weight: 600;
    }
    
    .form {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    
    .form h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .form input {
        height: 45px;
        padding: 0 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        margin-bottom: 15px;
    }
    
    .btnn {
        height: 45px;
        font-size: 16px;
    }
    
    .car-card {
        margin: 0 5px;
        border-radius: 15px;
    }
    
    .car-image {
        height: 180px;
    }
    
    .car-info {
        padding: 20px;
    }
    
    .car-name {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .car-details {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .car-price {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .book-btn {
        padding: 12px;
        font-size: 14px;
    }
}
/* 
Additional animations and effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.form {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.car-card {
    animation: fadeInUp 0.6s ease-out both;
}

.car-card:nth-child(1) { animation-delay: 0.1s; }
.car-card:nth-child(2) { animation-delay: 0.2s; }
.car-card:nth-child(3) { animation-delay: 0.3s; }
.car-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Improved button interactions */
.book-btn:active, .btnn:active, .cn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.2);
}

/* Better focus states for accessibility */
.form input:focus,
.book-btn:focus,
.btnn:focus,
.cn:focus,
.adminbtn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-section {
        padding: 30px 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-content .par {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-content .cn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .navbar {
        padding: 10px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    ul li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .adminbtn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .form {
        padding: 20px 15px;
        margin: 15px 5px;
    }
    
    .form h2 {
        font-size: 1.5rem;
    }
    
    .form input {
        height: 42px;
        padding: 0 10px;
        margin-bottom: 12px;
    }
    
    .btnn {
        height: 42px;
        font-size: 14px;
    }
    
    .cars-grid {
        gap: 15px;
        padding: 0 5px;
    }
    
    .car-card {
        margin: 0;
        border-radius: 12px;
    }
    
    .car-image {
        height: 160px;
    }
    
    .car-info {
        padding: 15px;
    }
    
    .car-name {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .car-price {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .book-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* Print styles */
@media print {
    .navbar, .form, .book-btn, footer {
        display: none;
    }
    
    .car-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
/*
 Car Image Gallery Styles */
.car-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.car-image.active {
    opacity: 1;
}

.image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-image-container:hover .image-nav {
    opacity: 1;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #dc3545;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(220, 53, 69, 0.8);
}

/* Car Details Image Gallery Styles */
.car-detail-gallery {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.car-detail-gallery .car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.car-detail-gallery .car-image.active {
    opacity: 1;
}

.car-detail-gallery .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.car-detail-gallery:hover .image-nav {
    opacity: 1;
}

.car-detail-gallery .nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.car-detail-gallery .nav-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.car-detail-gallery .image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.car-detail-gallery .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.car-detail-gallery .dot.active {
    background: #dc3545;
    transform: scale(1.3);
}

.car-detail-gallery .dot:hover {
    background: rgba(220, 53, 69, 0.8);
}/* Light
box Modal Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-info {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.lightbox-counter {
    font-size: 1rem;
    opacity: 0.8;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px 0;
}

.lightbox-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: #dc3545;
    transform: scale(1.1);
}

.lightbox-thumb:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Make car images clickable */
.car-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.car-image:hover {
    transform: scale(1.02);
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: -60px;
    }
    
    .lightbox-next {
        right: -60px;
    }
    
    .lightbox-close {
        top: -40px;
        width: 40px;
        height: 40px;
        font-size: 25px;
    }
    
    .lightbox-thumbnails {
        bottom: -100px;
        max-width: 90%;
    }
    
    .lightbox-thumb {
        width: 50px;
        height: 35px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}/* Log
o Image Styles */
.logo-img {
    height: 45px;
    width: 140px;
    object-fit: cover;
    object-position: center;
}

.admin-logo-img {
    height: 35px;
    width: 110px;
    object-fit: cover;
    object-position: center;
}

.signup-logo-img {
    height: 50px;
    width: 160px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
        width: 110px;
    }
    
    .admin-logo-img {
        height: 30px;
        width: 90px;
    }
    
    .signup-logo-img {
        height: 40px;
        width: 130px;
    }
}