/* General Styles */
body { 
    background: #f4f4f9; 
    color: #333;
 }
 
 /* Header Styles */
 header {
    position: relative;
    height: 1014px;
    width: 100%;
    background: #161415 url(../Images/Liam\ Driving.PNG) no-repeat center center;
    background-size: cover !important;
    -webkit-background-size: cover !important;
    text-align: center;
    overflow: hidden;
 }
 
 header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7); /* Dark overlay for better text visibility */
 }
 
 header .banner {
   display: flex;
   justify-content: center;
   align-items: center;
   margin: 0 auto;
   width: 85%;
   height: 100%;
   padding-bottom: 30px;
 }
 
 header .banner-text { 
    width: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
 }
 
 header .banner-text h1 {
   font: 90px/1.1em 'opensans-bold', sans-serif;
   color: #fff;
   letter-spacing: -2px;
   margin: 0 auto 18px auto;
   text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);
 }
 
 /* Project Sections */
 .project-section {
    padding: 80px 0;
    background: #fff;
 }
 
 .section-title {
    font-size: 2.4em;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
 }
 
 .project-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666;
    margin: 0 auto 40px;
    max-width: 800px;
    text-align: center;
 }
 
 /* Hero Image */
 .hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    max-height: 600px;
    overflow: hidden;
 }
 
 .hero-image {
    max-width: 800px;
    width: 100%;
    height: 100%;
    overflow: hidden;
 }
 
 .hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    object-position: center;
 }
 
 /* Technical Specs */
 .tech-specs {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
 }
 
 .tech-specs h2 {
    color: #333;
    margin-bottom: 20px;
 }
 
 .tech-specs ul {
    list-style: none;
    padding: 0;
 }
 
 .tech-specs li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
 }
 
 /* Code Display */
 .code-block {
    background: #2b2b2b;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 30px;
 }
 
 .code-block h2 {
    color: #fff;
    margin-bottom: 20px;
 }
 
 /* Image Gallery */
 .image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
 }
 
 .gallery-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
 }
 
 .gallery-image:hover {
    transform: scale(1.05);
 }
 
 /* Video Section */
 .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
 }
 
 .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
 }
 
 /* Responsive Design */
 @media screen and (max-width: 768px) {
    header {
        height: 60vh;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .tech-specs, .code-block {
        margin: 15px 0;
    }
    
    .process-grid,
    .analysis-grid,
    .testing-grid,
    .specs-grid {
        grid-template-columns: 1fr;
    }
 }
 
 /* Specs Grid */
 .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
 }
 
 .spec-item {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
 }
 
 .spec-item:hover {
    transform: translateY(-5px);
 }
 
 .spec-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
 }
 
 .spec-item li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 1.1em;
    line-height: 1.4;
    text-align: center;
    width: fit-content;
    margin: 10px auto;
 }
 
 .spec-item li:before {
    position: absolute;
    left: 0;
    color: #333;
 }
 
 /* Evolution Section Styles */
 .version-block {
    background: #f8f8f8;
    padding: 30px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 800px; /* Center the container */
 }
 
 .version-block h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
    width: 100%;
 }
 
 .version-block h4 {
    color: #666;
    margin: 15px 0;
    font-size: 1.4em;
    text-align: center;
    width: 100%;
 }
 
 .version-image {
     width: 100%;
     height: 400px;
     border-radius: 8px;
     margin-bottom: 20px;
     object-fit: cover;
     object-position: center;
 }
 
 /* Footer Styles */
 footer {
    background: #161415;
    padding: 20px 0;
    color: #fff;
    text-align: center;
 }
 
 footer .social-links {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
 }
 
 footer .social-links li {
    display: inline-block;
    margin: 0 10px;
 }
 
 footer .social-links li a {
    color: #fff;
    font-size: 1.2em;
    transition: color 0.3s ease;
 }
 
 footer .social-links li a:hover {
    color: #F06000;
 }
 
 footer .copyright {
    list-style: none;
    padding: 0;
    margin: 0;
 }
 
 footer .copyright li {
    display: inline-block;
    margin: 0 10px;
    font-size: 0.9em;
    color: #aaa;
 }
 
 footer .copyright li a {
    color: #aaa;
    transition: color 0.3s ease;
 }
 
 footer .copyright li a:hover {
    color: #fff;
 }
 
 /* Grid Layouts */
 .process-grid,
 .analysis-grid,
 .testing-grid,
 .specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
 }
 
 /* Cards/Items */
 .process-item,
 .analysis-item,
 .test-item,
 .spec-item {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
 }
 
 .process-item:hover,
 .analysis-item:hover,
 .test-item:hover,
 .spec-item:hover {
    transform: translateY(-5px);
 }
 
 /* List Styles */
 .process-item ul,
 .analysis-item ul,
 .test-item ul,
 .spec-item ul,
 .team-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
 }
 
 .process-item li,
 .analysis-item li,
 .test-item li,
 .spec-item li,
 .team-info li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    color: #666;
    font-size: 1.1em;
    line-height: 1.4;
    text-align: center;
    width: fit-content;
    margin: 10px auto;
 }
 
 .process-item li:before,
 .analysis-item li:before,
 .test-item li:before,
 .spec-item li:before,
 .team-info li:before {
    position: absolute;
    left: 0;
    color: #333;
 }
 
 /* Team Section */
 .team-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
 }
 
 /* Images */
 .section-image {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-align: center;
 }
 
 .section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
 }
 
 @media screen and (max-width: 480px) {
    .project-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8em;
    }
 }
 
 /* Center Section Content */
 .project-section .row {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
 }

 /* Benefits Section */
 .benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.benefit-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.benefit-content li {
    margin: 10px 0;
    color: #666;
    font-size: 1.1em;
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-timeline .benefit-card {
    background: #f8f8f8;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.process-timeline .benefit-card:hover {
    transform: translateY(-5px);
}

.process-timeline .section-image {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.process-timeline .section-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.process-timeline .benefit-card:hover .section-image img {
    transform: scale(1.05);
}

/* Section Image with Citation */
.section-image-with-citation {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.section-image-with-citation img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
}

.citation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    max-width: 80%;
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 5px;
}

.section-image-with-citation:hover img {
    filter: brightness(0.5);
}

.section-image-with-citation:hover .citation {
    opacity: 1;
}

/* Regular images without hover effect */
.section-image {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}