:root {
    --primary-white: #ffffff;
    --light-grey: #f4f4f4;
    --medium-grey: #e0e0e0;
    --dark-grey: #333333;
    --accent-red: #bb2233;
    --footer-bg: #2c2c2c;
    --footer-text: #d3d3d3;
    --font-main: 'My_Lato_reg', sans-serif;
    --font-bold: 'My_Lato_bold', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.2s linear; 
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 16px;
    font-family: var(--font-main);
    color: var(--dark-grey);
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary-white);
    line-height: 1.6;
}


h1 {
    font-family: 'My_Lato_bold';
    
}




@font-face {
    font-family: 'My_Lato';
    src: url(fonts/Lato/Lato-Black.ttf) format(truetype);
}
@font-face {
    font-family: 'My_Lato_reg';
    src: url(fonts/Lato/Lato-Regular.ttf) format(truetype);
}
@font-face {
    font-family: 'My_Lato_bold';
    src: url(fonts/Lato/Lato-Bold.ttf) format(truetype);
}
@font-face {
    font-family: 'My_Lato_italic';
    src: url(fonts/Lato/Lato-LightItalic.ttf);
}
@font-face {
    font-family: 'My_Lato_thin';
    src: url(fonts/Lato/Lato-Thin.ttf);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px; /* Thinner SCI-style height */
    padding: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--primary-white);
    border-bottom: 1px solid var(--medium-grey); /* Subtle SCI-style border */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header.shrink {
    height: 60px;
    padding: 0 2%;
}

#logo {
    width: 180px; /* Increased logo size */
    height: auto;
    max-height: 60px; /* Fits comfortably within 70px header */
    border: 1px solid var(--medium-grey);
    transition: all 0.3s ease;
    display: block;
}

.header.shrink #logo {
    width: 160px;
    max-height: 50px;
}

.home_button {
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 30px; /* Balanced spacing */
}

.navbar a {
    font-family: var(--font-bold); /* Montserrat for links */
    font-size: 0.95rem; /* Precise SCI-style size */
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase; /* SCI-style caps */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--accent-red);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-white);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    border: 1px solid var(--medium-grey);
    border-top: none;
}

.dropdown-menu li a {
    color: var(--dark-grey);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    margin: 0;
    font-size: 0.85rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
}

.dropdown-menu li a:hover {
    background-color: var(--light-grey);
    color: var(--accent-red);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-grey);
    transition: all 0.3s ease;
}

.lang_button {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lang_button button {
    padding: 6px 12px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--medium-grey);
    border-radius: 2px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    color: var(--dark-grey);
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang_button button:hover {
    background: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}

.lang_button button img {
    width: 20px;
    height: auto;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
}

.flags {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flags img {
    width: 20px;
    height: auto;
    cursor: pointer;
    border: 1px solid var(--medium-grey);
    display: block;
    border-radius: 2px;
}

.general {
    margin-top: 70px; /* Exact offset for the new header height */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    background-image: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1)), url(images/fac5new.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 5%;
    position: relative;
}

.general_text {
    text-align: right;
    color: var(--dark-grey);
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-right: 5px solid var(--accent-red);
}

#quality {
    font-family: 'My_Lato_italic';
    color: var(--accent-red);
    text-decoration: none;
    font-style: italic;
}

.quote {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 44, 44, 0.8);
    color: var(--primary-white);
    padding: 20px 5%;
    text-align: left;
    z-index: 10;
}

blockquote {
    font-size: 1rem;
    font-family: var(--font-main);
    margin-top: 5px;
    color: var(--footer-text);
}

.info_board {
    padding: 60px 5%;
    min-height: auto;
    background-color: var(--primary-white);
    color: var(--dark-grey);
}

.info-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-lists p {
    font-family: var(--font-main);
    font-size: 1.1rem;
    padding: 10px;
    border-bottom: 1px solid var(--medium-grey);
}

#dad {
    width: 100%;
    max-width: 400px;
    height: auto;
    float: none;
    margin: 20px auto;
    display: block;
    border: 3px solid var(--primary-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#mail, #map {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: bold;
}

#mail:hover, #map:hover {
    text-decoration: underline;
}

.customers {
    padding: 60px 5%;
    background-color: var(--light-grey);
    text-align: center;
}

.customer-section {
    margin: 40px 0;
}

.customer-section h3 {
    color: var(--dark-grey);
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-family: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.customer-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.logo-item {
    background: var(--primary-white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    width: 180px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--medium-grey);
}

.logo-item:hover {
    transform: scale(1.05);
    border-color: var(--accent-red);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

.customer-logo-grid.end-users .logo-item {
    width: 150px;
    height: 80px;
}

.certifications {
    padding: 60px 5%;
    background-color: var(--primary-white);
    text-align: center;
}
.certifications h2 {
    color: var(--accent-red);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--medium-grey);
    padding-bottom: 10px;
}

.solar-section {
    padding: 80px 5%;
    background-color: var(--footer-bg);
    color: var(--primary-white);
}

.solar-content h2 {
    color: var(--primary-white);
    margin-bottom: 20px;
    font-size: 2rem;
    border-left: 5px solid var(--accent-red);
    padding-left: 20px;
}

.solar-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.8;
}

.solar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.solar-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.1);
}

.cert-grid {
    display: flex;
    justify-content: center;
...
    gap: 40px;
    flex-wrap: wrap;
}

.cert-item {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 300px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: scale(1.03);
}

.cert-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cert-item p {
    font-family: var(--font-bold);
    color: var(--dark-grey);
    font-size: 1rem;
    margin: 0;
}

.products {
    padding: 60px 5%;
    background-color: var(--primary-white);
}

.products h2 {
    color: var(--accent-red);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--medium-grey);
    padding-bottom: 10px;
}

.auto_images, .air_images, .littleparts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}

.product-item {
    flex: 1 1 250px;
    max-width: 300px;
    text-align: center;
    background: var(--primary-white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--light-grey);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Changed to contain for product parts to avoid cropping */
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: #fcfcfc;
}

.product-item img.portrait-img {
    transform: rotate(-90deg);
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-item p {
    font-family: var(--font-bold);
    color: var(--dark-grey);
    font-size: 0.95rem;
    margin: 0;
}
/* About.html Section */

.story {
    min-height: 40vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url(images/g30.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 100px 10% 40px; /* Added 100px top padding for header space */
    margin-top: 0; /* Removed 80px margin to allow blending with transparent header */
}

#story-title {
    color: var(--primary-white);
    font-size: 3rem;
    font-family: var(--font-bold);
}

.about {
    padding: 80px 10%;
    background-color: var(--primary-white);
    line-height: 1.8;
}

#about_p1 {
    color: var(--dark-grey);
    font-family: var(--font-bold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.about p, .about ul {
    color: var(--dark-grey);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.list-title {
    color: var(--accent-red);
    margin: 40px 0 20px;
    font-family: var(--font-bold);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--medium-grey);
    padding-bottom: 10px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.equipment-item {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-red);
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.equipment-item h3 {
    font-size: 1.1rem;
    color: var(--dark-grey);
    margin-bottom: 10px;
}

.equipment-item .qty {
    font-size: 1.2rem;
    font-family: var(--font-bold);
    color: var(--accent-red);
    margin-bottom: 5px;
}

.equipment-item .brands {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.equipment-item.total {
    background: var(--footer-bg);
    border-left-color: var(--accent-red);
}

.equipment-item.total h3 {
    color: var(--primary-white);
}

.equipment-item.total .qty {
    color: var(--primary-white);
}

.spotlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 10%;
    background-color: var(--light-grey);
}

.spotlight img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

footer {
    width: 100%;
    padding: 80px 5% 20px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: var(--font-main);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 50px;
}

.footer-logo {
    display: block;
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%) brightness(1.5);
}

.social-links a:hover img {
    transform: translateY(-5px);
    filter: grayscale(0%) brightness(1);
}

.footer-container h3 {
    color: var(--primary-white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-family: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-red);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-contact a {
    color: var(--accent-red);
    text-decoration: none;
}

.footer-cert-img {
    width: 100%;
    max-width: 120px;
    border-radius: 4px;
    opacity: 0.9;
    filter: brightness(0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand, .footer-links, .footer-contact, .footer-cert {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

#mailkeing {
    color: blue;
}
#mailkeing:hover {
    color: cornflowerblue;
}
/**********************/
/* Gallery.html Section*/

.introduction {
    margin-top: 80px;
    min-height: 50vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(images/butterflynew.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.introduction h1 {
    color: var(--primary-white);
    font-size: 4rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.gallery {
    padding: 60px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.carousel, .carousel2, .carousel3, .carousel4 {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    animation: fade 24s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 8s; }
.slide:nth-child(3) { animation-delay: 16s; }

.slide5img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    animation: fade2 40s infinite;
}

.slide5img:nth-child(1) { animation-delay: 0s; }
.slide5img:nth-child(2) { animation-delay: 8s; }
.slide5img:nth-child(3) { animation-delay: 16s; }
.slide5img:nth-child(4) { animation-delay: 24s; }
.slide5img:nth-child(5) { animation-delay: 32s; }

@keyframes fade {
    0%, 30% { opacity: 1; }   
    40%, 100% { opacity: 0; }
}

@keyframes fade2 {
    0% { opacity: 0; }
    10%, 20% { opacity: 1; }
    30%, 100% { opacity: 0; }
}

.image_container {   
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 0;
}

.image_container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/****************************/
/*** Product.html section ***/

.select {
    margin-top: 80px;
    min-height: 60vh;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/Factory_Website_Images/Spare\ parts\ together.webp);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 5%;
}

#proh1 {
    color: var(--primary-white);
    margin-bottom: 30px;
}

.category {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category a {
    color: var(--dark-grey);
    font-size: 1.2rem;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category a:hover {
    background-color: var(--accent-red);
    color: var(--primary-white);
}

/***************************/
/*** Automotive.html ***/

.slideshow {
    margin-top: 100px;
    padding: 40px 5%;
    background: var(--primary-white);
}

.grid, .grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid img, .grid2 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.grid img:hover, .grid2 img:hover {
    transform: scale(1.05);
}

/***************************/
/*** Contacts.html section ***/

.card {
    margin-top: 100px;
    padding: 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--primary-white);
}

.card_info {
    padding: 40px;
    background: var(--light-grey);
    border-radius: 12px;
    border-left: 5px solid var(--accent-red);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: left; /* Keep text left-aligned inside the centered card */
}

.card_info img {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
}

.card_info h2 {
    margin-bottom: 20px;
    color: var(--accent-red);
    text-align: center;
}

.card_info h3 {
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .card {
        padding: 40px 20px;
    }
    
    .card_info {
        padding: 20px;
    }
}

/* Services Request Section */

.submission_form {
    padding: 100px 5% 60px;
    background: var(--primary-white);
}

.form {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: var(--light-grey);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form_group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form_group input, .form_group select, .form_group textarea {
    flex: 1;
    min-width: 250px;
    padding: 12px;
    border: 1px solid var(--medium-grey);
    border-radius: 6px;
    font-family: var(--font-main);
}

#feedback {
    width: 100%;
    min-height: 150px;
}

#subby {
    background: var(--accent-red);
    color: var(--primary-white);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.header.transparent {
    background: rgba(255, 255, 255, 0);
    box-shadow: none;
    border-bottom: none;
}

.header.transparent .navbar a,
.header.transparent .header-right .lang_button button {
    color: var(--primary-white);
    background-color: transparent;
    border-color: rgba(255,255,255,0.5);
}

.header.transparent .navbar a:hover {
    color: var(--accent-red);
}

.header.transparent .header-right .lang_button button:hover {
    background: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}

.header.transparent.shrink .navbar a:hover {
    color: var(--accent-red);
}

.header.transparent.shrink .header-right .lang_button button:hover {
    background: var(--accent-red);
    color: var(--primary-white);
    border-color: var(--accent-red);
}
/* Ensure links are dark when mobile menu is active on transparent header */
@media (max-width: 768px) {
    .header.transparent .nav-container.active .navbar a,
    .header.transparent .nav-container.active .header-right .lang_button button {
        color: var(--dark-grey);
    }
}

.header.transparent .hamburger .line {
    background-color: var(--primary-white);
}

/* Ensure dropdown links stay visible (dark) even when header is transparent */
.header.transparent .dropdown-menu li a {
    color: var(--dark-grey);
}

.header.transparent.shrink {
    background: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--medium-grey);
}

.header.transparent.shrink .navbar a,
.header.transparent.shrink .header-right .lang_button button,
.header.transparent.shrink .hamburger .line {
    color: var(--dark-grey);
    border-color: var(--medium-grey);
}

/* Image Modal Styles */
.modal {
    display: none; /* Keep hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--primary-white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
}

.close:hover {
    color: var(--accent-red);
}

#caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--primary-white);
    font-family: var(--font-bold);
    padding: 10px;
}

/***************************/

/* Thankyou.html */

.thankyou {
    margin-top: 144px;
    min-height: 80vh;
}

.thankyou_component {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    

}

/***************************/

/* Responsive Media Queries */

@media (max-width: 1024px) {
    .navbar {
        gap: 15px;
    }
    
    .navbar a {
        font-size: 1rem;
    }

    #logo {
        width: 140px;
    }

    .about, .gallery, .products, .info_board, .customers, .submission_form, .solar-section, .certifications {
        padding: 40px 5%;
    }
    
    .spotlight {
        padding: 40px 5%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 5%;
        position: fixed;
        height: 70px;
    }

    .close {
        top: 10px;
        right: 15px;
    }

    .carousel3, .carousel4 {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-container {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--primary-white);
        flex-direction: column;
        padding: 40px 5%;
        gap: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* Hidden by default */
        z-index: 999;
    }

    .nav-container.active {
        display: flex; /* Shown when hamburger clicked */
        animation: slideDown 0.3s ease-out;
    }

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

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
    }

    .navbar a {
        font-size: 1.1rem;
        width: 100%;
        padding: 5px 0;
        border-bottom: 1px solid var(--light-grey);
    }

    .dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: block; /* Always show inside mobile menu */
        box-shadow: none;
        border: none;
        padding-left: 20px;
        margin-top: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: flex-start;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid var(--light-grey);
    }

    .lang_button {
        display: flex;
    }

    .general {
        margin-top: 70px;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 50vh;
        padding: 40px 5%;
    }

    .general_text {
        text-align: center;
        border-right: none;
        border-bottom: 5px solid var(--accent-red);
        padding-bottom: 20px;
        margin-bottom: 30px;
        width: 100%;
    }

    .quote {
        position: static;
        width: 100%;
        background-color: rgba(44, 44, 44, 0.9);
        padding: 30px 5%;
    }

    .introduction h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 5px 2%;
    }

    #logo {
        width: 120px;
    }

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 1rem;
    }

    .lang_button button {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .flags {
        gap: 10px;
    }

    .flags img {
        width: 24px;
    }
}


