/* =================================
   CSS RESET & BASE STYLES
   ================================= */

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

:root {
    --btn-color: #fdfdfd;
    --btn-bg: #ff3333;
    --primary-text-color: #ff4444;
    --secondary-color: #cc0000;
    --header-link-hover: #ff5555;
    --input-hover-bd-color: #ff4444;
    --body-bg-dark: #1a1f26;
    --bg-dark: rgba(26, 31, 38, 0.600);
    --bg-dark-alt: rgb(33, 40, 53, 0.700);
    --border-dark: rgb(58, 68, 82, 0.600);
    --text-white: #ffffff;
    --text-gray-200: #e5e7eb;
    --text-gray-300: #d1d5db;
    --text-gray-400: #9ca3af;
}

html {
    scroll-behavior: smooth;
    font-family: "Goldman", "Kantumruy Pro", ui-monospace, "Tahoma", "Verdana", sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--body-bg-dark);
    color: var(--text-white);
    margin: 0;
}

/* =================================
   BACKGROUND IMAGE OVERLAY
   ================================= */

body::before {
    content: "";
    position: fixed; /* Keeps image fixed while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Placeholder path - replace with your specific image file */
    background-image: url('../media/img/background.webp'); 
    
    background-size: cover; /* Ensures image covers the whole screen */
    background-position: center;
    background-repeat: no-repeat;
    
    /* Very low opacity so it blends with the dark theme */
    opacity: 0.05; 
    
    /* Layers: 0 puts it above the body color, but we need to make sure content is higher */
    z-index: 0; 
    
    /* Crucial: ensures the image doesn't block clicks on links/buttons */
    pointer-events: none; 
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* =================================
   HEADER STYLES
   ================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 5%;
    background-color: rgba(24, 27, 32, 0.95);
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

h2 span {
    color: var(--primary-text-color);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
}

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

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-white);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--header-link-hover);
    background-color: rgba(216, 8, 8, 0.1);
}

/* Hamburger hidden on desktop */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-white);
    border-radius: 2px;
}

/* =================================
   MAIN CONTENT & SECTIONS
   ================================= */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 60px;
    padding-top: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.5s ease-out;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =================================
   INTRO SECTION
   ================================= */

.intro-section {
    min-height: 80vh;
    padding: 3rem 5%;
    background: linear-gradient(135deg, rgba(24, 27, 32, 0.95), rgba(0, 0, 0, 0.8));
    gap: 2rem;
    /* Make intro content and video sit side-by-side on wide screens */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* allow stacking on small screens */
}

.intro-content {
    /* allow this column to take available space but not shrink too small */
    flex: 0 0 60%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 1rem;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-gray-300);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.video-container {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

.garage-video {
    /* fill its container horizontally */
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(216, 8, 8, 0.3);
}

/* =================================
   SERVICES SECTION
   ================================= */

.services-preview {
    min-height: 70vh;
    padding: 4rem 5%;
    background-color: var(--bg-dark);
    gap: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.service-item {
    background: var(--border-dark);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-dark);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(216, 8, 8, 0.2);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-text-color);
    box-shadow: 0 8px 20px rgba(216, 8, 8, 0.4);
}

.service-icon {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 5%;
}

.learn-more {
    margin-top: 2rem;
    text-align: center;
}

.learn-more-link {
    color: var(--primary-text-color);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.learn-more-link:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

/* =================================
   REVIEWS SECTION
   ================================= */

.reviews-section {
    min-height: 70vh;
    padding: 4rem 5%;
    background-color: var(--bg-dark);
    gap: 2rem;
}

.reviews-section .section-title {
    margin-bottom: 2rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.review-card {
    background: linear-gradient(135deg, var(--bg-dark-alt), var(--border-dark));
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(216, 8, 8, 0.2);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-text-color);
    box-shadow: 0 8px 20px rgba(216, 8, 8, 0.4);
}

.customer-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0;
}

.stars {
    font-size: 1.25rem;
    color: var(--primary-text-color);
    letter-spacing: 0.25rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-gray-300);
    line-height: 1.8;
    margin: 0;
}

/* =================================
   SERVICE DETAILS SECTION (Page 2)
   ================================= */

.service-details {
    min-height: auto;
    padding: 4rem 5%;
    background-color: var(--bg-dark);
    gap: 2rem;
}

.service-hero-image {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(216, 8, 8, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.service-details article {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2rem;
}

.service-details .service-item {
    background: linear-gradient(135deg, var(--bg-dark-alt), var(--border-dark));
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-dark);
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-white);
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 12px rgba(216, 8, 8, 0.2);
}

.service-details .service-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-text-color);
    box-shadow: 0 8px 20px rgba(216, 8, 8, 0.4);
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    color: var(--text-gray-300);
    line-height: 1.8;
    margin: 0;
}

/* =================================
   SERVICES TABLE SECTION (Page 2)
   ================================= */

.services-table-section {
    min-height: auto;
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(24, 27, 32, 0.9), rgba(0, 0, 0, 0.7));
    gap: 2rem;
}

.services-table {
    width: 100%;
    max-width: 1200px;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 8px 24px rgba(216, 8, 8, 0.2);
    border-radius: 0.75rem;
    overflow: hidden;
}

.services-table thead {
    background-color: var(--secondary-color);
}

.services-table th {
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    border-bottom: 2px solid var(--border-dark);
}

.services-table td {
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-gray-300);
    border-bottom: 1px solid var(--border-dark);
    background-color: var(--bg-dark-alt);
}

.services-table tbody tr {
    transition: all 0.3s ease;
}

.services-table tbody tr:hover {
    background-color: rgba(216, 8, 8, 0.1);
    border-left: 6px solid var(--primary-text-color);
    padding-left: 0.5rem;
}

.services-table tbody tr:last-child td {
    border-bottom: none;
}

/* =================================
   CONTACT & LOCATION INFO
   ================================= */

.contact-info {
    min-height: 60vh;
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(24, 27, 32, 0.9), rgba(0, 0, 0, 0.7));
    gap: 2rem;
}

.contact-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.info-box {
    background-color: var(--bg-dark-alt);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-dark);
}

.info-box h3 {
    font-size: 1.5rem;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
}

.info-box p {
    color: var(--text-gray-300);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.info-box a {
    color: var(--primary-text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: var(--text-white);
}

.social-link {
    color: var(--primary-text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--text-white);
}

/* =================================
   CONTACT FORM SECTION (Page 4)
   ================================= */

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 500px;
}

.content-left-title {
    margin-bottom: 1rem;
}

.content-left-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.content-left-title hr {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-text-color) 0%, transparent 100%);
    margin-top: 0.5rem;
}

.contact-inputs {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: var(--bg-dark-alt);
    border: 2px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-inputs:focus {
    border-color: var(--primary-text-color);
    background-color: rgba(33, 40, 53, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.contact-inputs::placeholder {
    color: var(--text-gray-400);
}

textarea.contact-inputs {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.contact-left button { /* styled like .btn but a bit different */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.contact-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(216, 8, 8, 0.3);
    object-fit: cover; /* ensures image covers the container */
    opacity: 0.8;
}

/* =================================
   BUTTON STYLES
   ================================= */

.btn {
    padding: 12px 24px;
    width: max-content;
    border-radius: 24px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: inline-flex;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
}

.btn img {
    width: 20px;
    height: 20px;
}

.btn:hover {
    transform: scaleX(1.05);
    box-shadow: 0 6px 20px rgba(216, 8, 8, 0.4);
}

.btn:active {
    transform: scaleX(0.98);
}

.btn-white {
    background-color: white;
    color: var(--secondary-color);
}

.btn-white:hover {
    background-color: var(--text-gray-200);
}

/* =================================
   GALLERY STYLES (Page 3)
   ================================= */

.gallery-intro {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(24, 27, 32, 0.95), rgba(0, 0, 0, 0.8));
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-intro .intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.gallery-photos {
    padding: 2rem 5%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.gallery-block {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-dark-alt), var(--border-dark));
    border-radius: 1rem;
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 24px rgba(216, 8, 8, 0.2);
    transition: all 0.3s ease;
}

.gallery-block:hover {
    border-color: var(--primary-text-color);
    box-shadow: 0 12px 32px rgba(216, 8, 8, 0.3);
}

.gallery-block-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-block-text {
    font-size: 1rem;
    color: var(--text-gray-300);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.horizontal-scroll-container {
    display: flex;
    flex-wrap: nowrap; /* Forces items to stay in a single line */
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding: 1rem 0.5rem; /* Add vertical padding for shadow */
    
    /* Vital for mobile: prevents container from stretching the page */
    width: 100%; 
    max-width: 100%;
    
    /* Smooth scrolling experience */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; /* Snaps images into place */
    scrollbar-width: none; /* Firefox: Hide scrollbar for cleaner look */
}

/* Chrome/Safari/Edge: Hide scrollbar */
.horizontal-scroll-container::-webkit-scrollbar {
    display: none; 
}

.horizontal-scroll-container .photo-card {
    /* Flex-shrink 0 prevents squashing. Basis sets the width. */
    flex: 0 0 280px; 
    height: auto;
    scroll-snap-align: center; /* Works with scroll-snap-type above */
    background: var(--bg-dark); /* Prevents transparent gaps */
    border-radius: 0.5rem;
    overflow: hidden; /* Clips the image if it tries to overflow the card */
    border: 1px solid var(--border-dark); /* Adds definition */
}

.horizontal-scroll-container .photo-card img {
    width: 100%;
    height: 200px; /* Fixed height ensures uniformity */
    object-fit: cover; /* Prevents image stretching/distortion */
    display: block;
}

.photo-card {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Video Gallery Styles */
.gallery-videos {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(24, 27, 32, 0.9), rgba(0, 0, 0, 0.7));
    display: grid;
    gap: 2rem;
}

.gallery-intro-text {
    text-align: center;
    color: var(--text-gray-300);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.video-card {
    background: linear-gradient(135deg, var(--bg-dark-alt), var(--border-dark));
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(216, 8, 8, 0.2);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-dark);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin-bottom: 0.75rem;
}

.video-text {
    color: var(--text-gray-300);
    font-size: 0.95rem;
    line-height: 1.7;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 2rem auto;
}

.reference-box {
    background: var(--bg-dark-alt);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-dark);
    text-align: left;
    transition: all 0.3s ease;
}

.reference-box h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.reference-box p {
    color: var(--text-gray-400);
    font-size: 0.95rem;
    line-height: 1.6;
}

.reference-box a {
    color: var(--text-gray-300);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =================================
   FOOTER STYLES
   ================================= */

footer {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 3rem 5%;
    background-color: var(--bg-dark-alt);
    color: var(--text-white);
    border-top: 1px solid var(--border-dark);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-text {
    flex: 1;
    text-align: center;
    color: var(--text-gray-400);
    padding: 1rem;
}

.footer-link {
    color: var(--primary-text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 1rem;
}

.footer-link:hover {
    color: var(--text-white);
}

.social-group {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Adds a little space between the two icons */
}

.social-icon {
    display: flex;
    padding: 0.5rem;
    width: auto;
    height: 50px;
}

/* =================================
   ANIMATIONS
   ================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =================================
   UTILITY CLASSES
   ================================= */

.gradient-text {
    background: linear-gradient(93deg, rgb(209, 14, 14) 32%, #8f0d0d 69%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.primary-text-color {
    color: var(--primary-text-color);
}

.opacity-0 {
    opacity: 0 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

.reveal-up {
    opacity: 0;
    transform: translateY(100%);
}

/* =================================
   INPUT STYLES
   ================================= */

.input {
    padding: 10px 15px;
    background-color: transparent;
    border-radius: 25px;
    min-width: 100px;
    border: 2px solid #818080;
    color: var(--text-white);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.input:active,
.input:focus,
.input:focus-within {
    border: 2px solid var(--input-hover-bd-color);
    outline: none;
}

/* =================================
   RESPONSIVE STYLES - TABLET
   ================================= */

@media (max-width: 1024px) {
    header {
        padding: 0 3%;
    }

    .nav-list {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem;
    }

    .intro-section {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 3%;
    }

    .intro-title {
        font-size: 2rem;
    }

    .video-container {
        max-width: 100%;
    }

    .services-preview {
        padding: 3rem 3%;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .service-item {
        padding: 1.5rem;
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 3rem 3%;
    }

    .contact-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-section {
        padding: 3rem 3%;
    }

    .reviews-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .service-details {
        padding: 3rem 3%;
    }

    .service-details .service-item {
        padding: 2rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .services-table-section {
        padding: 3rem 3%;
    }

    .services-table th,
    .services-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .contact-container {
        gap: 2rem;
        padding: 3rem 3%;
    }

    .content-left-title h2 {
        font-size: 2rem;
    }

        .gallery-intro {
        padding: 3rem 3%;
    }

    .gallery-photos {
        padding: 2rem 3%;
    }

    .gallery-block-title {
        font-size: 1.75rem;
    }

    .photo-card img {
        height: 220px;
    }

    .gallery-videos {
        padding: 3rem 3%;
    }

    footer {
        padding: 2rem 3%;
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* =================================
   RESPONSIVE STYLES - MOBILE
   ================================= */

@media (max-width: 768px) {
    header {
        padding: 0 3%;
        height: 50px;
    }

    .logo {
        height: 40px;
        width: 40px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block; /* Show button on mobile */
        z-index: 100;
    }

    /* Turn the hamburger into an X when active */
    .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);
    }

    /* Hide the normal navbar and position it absolutely */
    .navbar {
        position: absolute;
    }

    .nav-list {
        position: fixed;
        left: -100%; /* Hide off-screen */
        top: 50px; /* Height of your header */
        gap: 0;
        flex-direction: column;
        background-color: rgba(24, 27, 32, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        height: calc(100vh - 50px); /* Full height minus header */
    }

    .nav-list.active {
        left: 0; /* Slide in */
    }

    .nav-link {
        display: block; /* Full width clickable area */
        margin: 1rem 0;
        font-size: 1.2rem;
    }

    main {
        margin-top: 50px;
    }

    .intro-section {
        min-height: 60vh;
        padding: 2rem 4%;
    }

    .intro-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .video-container {
        max-width: 100%;
    }

    .garage-video {
        width: 100%;
        height: auto;
    }

    .services-preview {
        min-height: auto;
        padding: 2rem 4%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 0.75rem;
    }

    .service-item {
        padding: 1.25rem;
        font-size: 1rem;
    }

    .contact-info {
        min-height: auto;
        padding: 2rem 4%;
    }

    .contact-boxes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-box {
        padding: 1.5rem;
    }

    .info-box h3 {
        font-size: 1.25rem;
    }

    .reviews-section {
        min-height: auto;
        padding: 2rem 4%;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-card {
        padding: 1.5rem;
    }

    .customer-name {
        font-size: 1.1rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    .service-details {
        min-height: auto;
        padding: 2rem 4%;
    }

    .service-details .service-item {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .services-table-section {
        padding: 2rem 4%;
    }

    .services-table {
        font-size: 0.9rem;
    }

    .services-table th,
    .services-table td {
        padding: 0.75rem;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 2rem 4%;
    }

    .contact-left,
    .contact-right {
        max-width: 100%;
        width: 100%;
    }

    .content-left-title h2 {
        font-size: 1.75rem;
    }

    .contact-inputs {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    textarea.contact-inputs {
        min-height: 120px;
    }

    .contact-left button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .gallery-intro {
        padding: 2rem 4%;
    }

    .gallery-intro .intro-text {
        font-size: 0.95rem;
    }

    .gallery-photos {
        padding: 1.5rem 4%;
    }

    .gallery-block {
        margin-bottom: 3rem;
        padding: 1.5rem 0;
    }

    .gallery-block-title {
        font-size: 1.5rem;
    }

    .gallery-block-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .photo-card img {
        height: 200px;
    }

    .photo-card figcaption {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .gallery-videos {
        padding: 2rem 4%;
    }

    .gallery-intro-text {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .video-card {
        padding: 1.25rem;
    }

    .video-title {
        font-size: 1.25rem;
    }

    .video-text {
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem 4%;
        gap: 1rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* to keep icons side-by-side */
    .social-group {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-link {
        padding: 0.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .references-grid {
        /* Forces single column on mobile to prevent scrolling */
        grid-template-columns: 1fr; 
        gap: 1.5rem;
        width: 100%; /* Ensures it stays within container */
    }
}

/* =================================
   RESPONSIVE STYLES - SMALL MOBILE
   ================================= */

@media (max-width: 480px) {
    header {
        height: 45px;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .logo {
        height: 35px;
        width: 35px;
    }

    .site-title {
        font-size: 1rem;
    }

    .nav-list {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    main {
        margin-top: 45px;
    }

    .intro-section {
        min-height: 50vh;
        padding: 1.5rem 3%;
    }

    .intro-title {
        font-size: 1.4rem;
    }

    .intro-text {
        font-size: 0.9rem;
    }

    .services-preview {
        padding: 1.5rem 3%;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .service-item {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .contact-info {
        padding: 1.5rem 3%;
    }

    .info-box h3 {
        font-size: 1.1rem;
    }

    .info-box p {
        font-size: 0.9rem;
    }

    .reviews-section {
        padding: 1.5rem 3%;
    }

    .reviews-container {
        gap: 1rem;
    }

    .review-card {
        padding: 1.25rem;
    }

    .customer-name {
        font-size: 1rem;
    }

    .stars {
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.85rem;
    }

    .service-details {
        padding: 1.5rem 3%;
    }

    .service-details .service-item {
        padding: 1.25rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-description {
        font-size: 0.9rem;
    }

    .services-table-section {
        padding: 1.5rem 3%;
    }

    .services-table th,
    .services-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .services-table th {
        font-size: 0.9rem;
    }

    .contact-container {
        padding: 1.5rem 3%;
    }

    .content-left-title h2 {
        font-size: 1.5rem;
    }

    .contact-inputs {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    textarea.contact-inputs {
        min-height: 100px;
    }

    .contact-left button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .contact-left button img {
        width: 16px;
        height: 16px;
    }

    .gallery-intro {
        padding: 1.5rem 3%;
    }

    .gallery-intro .section-title {
        font-size: 1.25rem;
    }

    .gallery-intro .intro-text {
        font-size: 0.9rem;
    }

    .gallery-photos {
        padding: 1rem 3%;
    }

    .gallery-block {
        margin-bottom: 2.5rem;
        padding: 1rem 0;
    }

    .gallery-block-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .gallery-block-text {
        font-size: 0.9rem;
    }

    .horizontal-scroll-container .photo-card {
        flex: 0 0 85vw; /* Card takes up 85% of screen width on mobile */
    }

    .photo-card img {
        height: 180px;
    }

    .photo-card figcaption {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    .gallery-videos {
        padding: 1.5rem 3%;
    }

    .gallery-intro-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .video-card {
        padding: 1rem;
    }

    .video-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .video-text {
        font-size: 0.85rem;
    }

    footer {
        padding: 1rem 3%;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

}