/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #000;
    padding-top: 80px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: #d4af37;
    color: #000;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: #b8860b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #fff;
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #d4af37;
    margin: 10px auto;
}

.section .subheading {
    text-align: center;
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s ease-in-out, transform 6s linear;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-heading {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.hero-subheading {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
    color: #d4af37;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Wizards Section */
.wizards {
    background-color: #111;
    color: #fff;
}

/* Wizard card row */
.wizards .card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Wizard card base */
.wizards .card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at top left, #202020, #101010 55%, #060606 100%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(244, 208, 63, 0.12);
    min-height: 260px;
    color: #f9f9f9;
}

.wizards .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.15), transparent 55%);
    opacity: 0.7;
    pointer-events: none;
}

.wizards .card-inner {
    position: relative;
    width: 200%;
    height: 100%;
    display: flex;
    transform: translateX(0%);
    transition: transform 0.55s cubic-bezier(0.21, 0.61, 0.35, 1);
}

.wizards .card.is-vehicle .card-inner {
    transform: translateX(-50%);
}

.wizards .card-side {
    width: 50%;
    display: flex;
    align-items: stretch;
    position: relative;
}

.wizards .card-side--profile,
.wizards .card-side--vehicle {
    padding: 18px;
}

/* Left media panel */
.wizards .card-media {
    flex: 0 0 42%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #222, #111);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
}

.wizards .card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.6s ease;
}

.wizards .card:hover .card-image {
    transform: scale(1.08);
}

.wizards .card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 55%);
    mix-blend-mode: multiply;
}

.wizards .card-media--accent {
    background: radial-gradient(circle at center, rgba(244, 208, 63, 0.18), rgba(10, 10, 10, 0.95));
    border-radius: 14px;
    border: 1px solid rgba(244, 208, 63, 0.28);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.9),
        0 18px 40px rgba(0, 0, 0, 0.9);
}

.wizards .card-media--accent .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
}

/* Right content panel */
.wizards .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 18px;
}

.wizards .card-text {
    padding-bottom: 12px;
}

.wizards .card-name {
    font-size: 1.15rem;
    margin: 0 0 4px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.wizards .card-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #f4d03f;
    margin: 0 0 10px;
}

.wizards .card-dialogue {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d5d5d5;
}

.wizards .card-cta {
    align-self: center;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #f4d03f, #d4af37);
    color: #111;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow:
        0 4px 14px rgba(244, 208, 63, 0.4),
        0 0 0 1px rgba(0, 0, 0, 0.72);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease,
        background 0.18s ease;
}

.wizards .card-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow:
        0 6px 18px rgba(244, 208, 63, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.85);
}

.wizards .card-cta:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        0 2px 10px rgba(244, 208, 63, 0.35),
        0 0 0 1px rgba(0, 0, 0, 0.9);
}

.wizards .card-cta:focus-visible {
    outline: 2px solid #f4d03f;
    outline-offset: 2px;
}

/* Vehicle layout */
.wizards .card-layout--vehicle {
    display: flex;
    width: 100%;
    gap: 18px;
}

.wizards .card-content--vehicle {
    padding-right: 2px;
}

.wizards .vehicle-title {
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: #ffffff;
}

.wizards .vehicle-specs {
    margin: 0 0 8px;
    padding: 0;
}

.wizards .vehicle-spec {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.78rem;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(244, 208, 63, 0.18);
}

.wizards .vehicle-spec:last-child {
    border-bottom: none;
}

.wizards .vehicle-spec dt {
    font-weight: 600;
    color: #f7e7a8;
}

.wizards .vehicle-spec dd {
    margin: 0;
    color: #e2e2e2;
    text-align: right;
}

/* Responsive tweaks for wizard cards */
@media (max-width: 960px) {
    .wizards .card {
        max-height: none;
    }
}

@media (max-width: 720px) {
    .wizards .card {
        min-height: auto;
    }

    .wizards .card-inner {
        height: auto;
    }

    .wizards .card-side {
        flex-direction: column;
    }

    .wizards .card-side--profile,
    .wizards .card-side--vehicle {
        padding: 16px;
    }

    .wizards .card-media {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
        margin-bottom: 12px;
    }

    .wizards .card-content {
        padding-left: 0;
    }

    .wizards .card-layout--vehicle {
        flex-direction: column-reverse;
    }

    .wizards .vehicle-spec {
        font-size: 0.82rem;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 700px;
    height: 500px;
    background: #222;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-left {
    width: 45%;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-driver-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #d4af37;
    margin-bottom: 20px;
}

.modal-vehicle-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.modal-right {
    width: 55%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.customer-rating {
    margin-bottom: 20px;
    position: relative;
    min-height: 180px;
}

.customer-rating h3 {
    color: #d4af37;
    margin-bottom: 10px;
}

.customer-name {
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 5px;
}

.stars {
    color: #d4af37;
    font-size: 20px;
    margin-bottom: 10px;
}

.review-text {
    color: #ccc;
    font-style: italic;
    line-height: 1.5;
}

.rate-form h3 {
    color: #d4af37;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #ccc;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #333;
    color: #fff;
}

.form-group textarea {
    height: 80px;
    resize: none;
}

.rate-btn {
    background: #d4af37;
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.rate-btn:hover {
    background: #c19b2e;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #d4af37;
    font-size: 24px;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.7);
    color: #1a1a1a;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #d4af37;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Choose Your Wizard Section */
.choose-wizard {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../images/choose-wizard-bg.jpg') center/cover no-repeat fixed;
    color: #fff;
    position: relative;
}

.wizard-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.selection-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.wizard-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.option-card h3 {
    color: #d4af37;
    margin-bottom: 10px;
}

.option-card p {
    color: #ccc;
}

.confirm-btn {
    width: 100%;
    background: #d4af37;
    color: #000;
    font-weight: 600;
    padding: 15px;
}

.animation-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.car-animation {
    position: relative;
    width: 300px;
    height: 150px;
}

.car {
    position: absolute;
    width: 100px;
    height: 50px;
    background: #d4af37;
    border-radius: 10px;
    top: 50px;
    left: 0;
    animation: drive 5s linear infinite;
}

.car::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 20px;
    background: #b8860b;
    top: -20px;
    left: 10px;
    border-radius: 5px 5px 0 0;
}

.wheel {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    bottom: -10px;
}

.wheel-front {
    right: 10px;
}

.wheel-back {
    left: 10px;
}

.road {
    position: absolute;
    width: 100%;
    height: 10px;
    background: #555;
    bottom: 30px;
    border-top: 2px dashed #d4af37;
    animation: roadMove 2s linear infinite;
}

@keyframes drive {
    0% {
        left: -100px;
    }
    100% {
        left: 300px;
    }
}

@keyframes roadMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 0;
    }
}

/* Footer */
.footer {
    background: #000;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: #d4af37;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #999;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    border-radius: 50%;
    color: #d4af37;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 0.9rem;
}

/* Fade-in on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-heading {
        font-size: 3rem;
    }
    
    .hero-subheading {
        font-size: 1.3rem;
    }
    
    .modal-content {
        width: 90%;
        height: auto;
        flex-direction: column;
    }
    
    .modal-left, .modal-right {
        width: 100%;
    }
    
    .modal-left {
        height: 300px;
    }
    
    .wizard-options {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .wizards-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .wizard-selection {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-heading {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .wizard-options {
        grid-template-columns: 1fr;
    }
}
