:root {
    --bg-color: #f4f4f0;
    --text-main: #000;
    --text-muted: #222;
    
    --red-primary: #ff3333;
    --red-light: #ffeb3b; 
    
    --blue-primary: #00e5ff;
    --blue-light: #ff6600;
    
    --comic-border: 4px solid #000;
    --comic-shadow: 8px 8px 0px #000;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* comic halftone background pattern */
    background-image: radial-gradient(#ccc 15%, transparent 16%), radial-gradient(#ccc 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

h1, h2, h3, .badge, strong {
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

/* Split Layout */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.split-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Red side - Tow Truck */
.tow-truck {
    background-color: #ffeb3b;
    border-right: 8px solid #000;
}

/* Blue side - Trailer */
.trailer {
    background-color: #00e5ff;
}

.content-wrapper {
    max-width: 600px;
    width: 100%;
    padding: 60px 40px;
}

/* Portal Hero Sections */
.split-hero {
    position: relative;
    width: 100%;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: white;
    border-bottom: 8px solid #000;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 0;
    font-size: 20px;
    margin-bottom: 24px;
    background: #fff;
    color: #000;
    border: var(--comic-border);
    box-shadow: 4px 4px 0px #000;
    text-transform: uppercase;
    transform: rotate(-3deg);
}

.badge-blue {
    transform: rotate(3deg);
}

h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px #000, -2px -2px 0px #000, 2px -2px 0px #000, -2px 2px 0px #000;
}

h1 span {
    color: #ffeb3b;
}

.trailer h1 span {
    color: #ff6600;
}

.subtitle {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 800;
    background: #000;
    padding: 10px 15px;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 4px 4px 0px #ff3333;
    transform: rotate(-1deg);
}

.trailer .subtitle {
    box-shadow: 4px 4px 0px #ff6600;
    transform: rotate(1deg);
}

/* Contact Box */
.contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    padding: 20px 30px;
    border: var(--comic-border);
    box-shadow: var(--comic-shadow);
    margin-bottom: 40px;
    transform: rotate(-1deg);
    transition: transform 0.2s ease;
}

.contact-box:hover {
    transform: rotate(0deg) scale(1.05);
}

.contact-box-blue {
    transform: rotate(1deg);
}

.contact-box i {
    font-size: 50px;
    color: #000;
}

.contact-box span {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

.contact-box strong {
    font-size: 32px;
    color: var(--red-primary);
    text-shadow: 1px 1px 0 #000;
}

.contact-box-blue strong {
    color: var(--blue-primary);
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.spec-item {
    background: #fff;
    padding: 20px;
    border: var(--comic-border);
    box-shadow: 6px 6px 0px #000;
    text-align: center;
    transform: rotate(1deg);
}
.spec-item:nth-child(even) {
    transform: rotate(-1deg);
}

.spec-item i {
    font-size: 40px;
    color: #000;
    margin-bottom: 10px;
}

.spec-item span {
    display: block;
    font-size: 16px;
    font-family: 'Bangers', cursive;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.spec-item strong {
    font-size: 20px;
    color: var(--red-primary);
    line-height: 1.2;
    text-shadow: 1px 1px 0px #000;
}

.trailer .spec-item strong {
    color: var(--blue-primary);
}

/* Pricing Card */
.pricing-card {
    background: #fff;
    padding: 30px;
    border: var(--comic-border);
    box-shadow: var(--comic-shadow);
    margin-bottom: 40px;
    transform: rotate(-0.5deg);
}

.pricing-card h3 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #00e5ff;
}

.pricing-card ul {
    list-style: none;
}

.pricing-card ul li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 3px dashed #000;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li span {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: #000;
}

.pricing-card ul li strong {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    color: var(--red-primary);
    text-shadow: 1px 1px 0px #000;
}

.extra-fees {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 4px solid #000;
    text-align: center;
    background: #ffeb3b;
    padding: 15px;
    border: 3px solid #000;
    transform: rotate(1deg);
}

.extra-fees p {
    font-weight: 800;
    font-size: 16px;
    color: #000;
}

.extra-fees .small {
    font-size: 12px;
    margin-top: 5px;
}

/* Gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    padding: 10px;
}

.gallery img {
    width: 46%; 
    height: 200px;
    object-fit: cover;
    background: #fff;
    padding: 6px; /* White border like a photo/panel */
    border: var(--comic-border);
    box-shadow: 6px 6px 0px #000;
    filter: contrast(1.1) saturate(1.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, z-index 0s;
    cursor: pointer;
    position: relative;
}

.gallery img:nth-child(1) { transform: rotate(-3deg) translateY(10px); z-index: 1; }
.gallery img:nth-child(2) { transform: rotate(4deg) translateY(-5px) translateX(-10px); z-index: 2; width: 50%; }
.gallery img:nth-child(3) { transform: rotate(2deg) translateY(-15px); z-index: 3; width: 55%; }
.gallery img:nth-child(4) { transform: rotate(-5deg) translateY(-10px) translateX(-20px); z-index: 4; width: 42%; }
.gallery img:nth-child(5) { transform: rotate(1deg) translateY(-25px); z-index: 5; width: 85%; }

.gallery img:hover {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 20;
    box-shadow: 12px 12px 0px #000;
}

.gallery-large .full-width {
    width: 95% !important;
    height: 320px;
    transform: rotate(-2deg) translateY(0) translateX(0) !important;
    margin-bottom: 10px;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #ff6600 !important;
    color: #fff;
    border: var(--comic-border);
    box-shadow: 6px 6px 0px #000;
    font-family: 'Bangers', cursive;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
    cursor: pointer;
    transition: all 0.1s;
}

.btn-submit:hover {
    background: #ffeb3b !important;
    color: #000;
    text-shadow: none;
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0px #000;
}

.btn-submit:active {
    transform: translate(6px, 6px);
    box-shadow: 0px 0px 0px #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }
    .split-section {
        border-right: none;
        border-bottom: 8px solid #000;
    }
    h1 {
        font-size: 3.5rem;
    }
    .gallery img {
        height: 200px;
    }
    .gallery-large .full-width {
        height: 250px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.8rem;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: 1fr;
    }
    .gallery img {
        height: auto;
        aspect-ratio: 4/3;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border: 8px solid #fff;
    box-shadow: 15px 15px 0px #ff6600;
    transform: scale(0.9) rotate(-1deg);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1) rotate(0deg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-family: 'Bangers', cursive;
    cursor: pointer;
    background: none;
    border: none;
    text-shadow: 2px 2px 0 #000;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.form-section {
    width: 100%;
    max-width: 700px;
    background: #00e5ff;
    padding: 40px;
    border: 6px solid #000;
    box-shadow: 15px 15px 0px #ff6600;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) rotate(1deg);
    transition: transform 0.3s ease;
}

.modal-overlay.active .form-section {
    transform: scale(1) rotate(0deg);
}

.form-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #fff;
}

.form-section p {
    text-align: center;
    color: #000;
    font-weight: 800;
    margin-bottom: 30px;
    background: #fff;
    border: 2px solid #000;
    padding: 10px;
    box-shadow: 4px 4px 0px #000;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 20px;
    font-family: 'Bangers', cursive;
    color: #000;
    letter-spacing: 1px;
}

.form-group input, .form-group textarea {
    padding: 14px 16px;
    border: 3px solid #000;
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 4px 4px 0px #000;
    transition: transform 0.1s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #ff6600;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    font-family: 'Bangers', cursive;
    color: #000;
    cursor: pointer;
    background: #ffeb3b;
    border: 3px solid #000;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    box-shadow: 3px 3px 0px #000;
}

.modal-close:hover {
    background: #ff3333;
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 40px 20px;
    font-size: 14px;
    border-top: 8px solid #ff6600;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    background: #222 !important;
    border: 3px solid #444;
    padding: 20px !important;
    box-shadow: 6px 6px 0px #ff3333;
    transform: rotate(-1deg);
}
.footer-col:nth-child(2) {
    box-shadow: 6px 6px 0px #ffeb3b;
    transform: rotate(1deg);
}
.footer-col:nth-child(3) {
    box-shadow: 6px 6px 0px #00e5ff;
    transform: rotate(-0.5deg);
}

.footer-col h4 {
    font-family: 'Bangers', cursive;
    font-size: 24px;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 3px dashed #444;
    text-align: center;
    font-family: 'Bangers', cursive;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Comic Hero Classes with Animation */
.hero-bg-left::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background-image: url('comic_tow.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: comicPan 20s infinite alternate ease-in-out;
}

.hero-bg-right::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%; right: -10%; bottom: -10%;
    background-image: url('comic_trailer.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: comicPan 25s infinite alternate-reverse ease-in-out;
}

@keyframes comicPan {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(-2%, 2%); }
}
