/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    background-color: #f0f0f0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Navigation */
nav {
    background-color: #0A3561;
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav .container {
    display: flex;
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #ff6347;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 50px;
    width: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section styles */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.section-container {
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Hero section */
.hero {
    background-image: url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    color: rgba(19, 32, 76, 1);
    text-align: center;
    position: relative;
}

.hero .section-container {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    color: rgba(19, 32, 76, 1);
    backdrop-filter: blur(10px);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.responsive-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 45px;
    width: 500px;
}

/* About section */
.about {
    background-image: url('../images/about2.webp');
    background-size: cover;
    background-position: center;
}

.about .section-container {
    display: flex;
    align-items: stretch;
    background-color: #0A3561;
    padding: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 2rem auto;
}

.about-image {
    flex: 1;
    min-height: 400px;
    background-image: url('../images/Mel-Etsebeth.webp');
    background-size: cover;
    background-position: center;
}

.about-content {
    flex: 1;
    padding: 2rem;
    color: white;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* Button styles */
.btn {
    background-color: #ff6347;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    margin-block: 2px;
    display: inline-block;
    text-decoration: none;
}

.btn:hover {
    background-color: #ff7f50;
    transform: translateY(-2px);
}

/* Solutions section */
.solutions {
    background-color: #0A3561;
    background-image: url('../images/about2.webp');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
}

.solutions .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #0A3561;
}

.solutions h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
}

.service-card {
    background-color: #185B9E;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    perspective: 1000px;
    height: 320px;
    aspect-ratio: 3 / 3;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.2s;
    transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
    color: #fff;
}

.service-card-front {
    background-color: #ff6347;
}

.service-card-back {
    background-color: #0056b3;
    transform: rotateY(180deg);
}

.service-card h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
    width: 100%;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.service-card-back ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.service-card-back li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.2em;
}

.service-card-back li::before {
    content: '•';
    position: absolute;
    left: 0.5em;
    color: #F58220;
}

/* Catalogues section */
.catalogues {
    background-image: url('../images/about2.webp');
    background-size: cover;
    background-position: center;
}

.catalogues .section-container {
    background-color: #0A3561;
    width: min(100%, 1040px);
    padding: 1.5rem;
}

.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(4, 220px);
    justify-content: center;
    gap: 1rem;
}

.catalogue-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: .9 / 1.2;
    max-width: 220px;
    margin: 0 auto;
}

.catalogue-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.catalogue-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.catalogue-card:hover img {
    transform: scale(1.03);
}

.catalogue-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.catalogue-card:hover .card-content {
    transform: translateY(0);
}

.catalogue-card .download-text {
    font-weight: bold;
    margin-bottom: 0.3rem;
    cursor: pointer;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.catalogue-card .download-text:hover {
    color: #8DCF00;
}

.catalogue-card .download-text:visited {
    color: #2062AF;
}

.catalogue-card .file-size {
    font-size: 0.8em;
    opacity: 0.8;
}

/* Logo grid */
.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.logo-grid img {
    height: 45px;
    width: auto;
    max-width: 140px;
    margin: 1.5rem;
    transition: transform 0.3s ease;
}

.logo-grid img:hover {
    transform: scale(1.1);
}

.logo-grid img.logo-barron {
    height: 70px;
    max-width: 180px;
}

/* Contact section */
.contact {
    background-image: url('../images/contact.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.contact .section-container {
    background-color: #0A3561;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
    background-color: #ff6347;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.3);
    border-color: #ff6347;
}

.contact-card i {
    font-size: 28px;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2);
}

.contact-card span {
    font-weight: 500;
    font-size: 1.1rem;
}



.contact h2,
.catalogues h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    font-size: 2.5rem;
}

.contact-form {
    max-width: 500px;
    margin: 1.1rem auto;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #20B2AA;
    box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.contact-form .btn {
    background-color: #ff6347;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .btn:hover {
    background-color: #FF7F50;
    transform: translateY(-2px);
}

#whatsapp-link {
    position: relative;
    display: inline-block;
}

.qr-code {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-code img {
    max-width: 100%;
    margin: 4px;
    height: auto;
    width: 150px;
    transition: transform 0.3s ease;
}

.qr-code img:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.4s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
    }
}

/* ... (previous CSS remains the same) ... */

/* Media Queries */
@media (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .solutions-grid,
    .catalogues-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1100px) {
    .catalogues-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-container {
        max-width: 95%;
        font-size: 14px;
    }

    h2,
    h3 {
        font-size: 1.8em;
    }

    .catalogues-grid {
        grid-template-columns: 1fr;
    }

    .catalogue-card {
        max-width: 250px;
        margin: 0 auto;
    }

    .solutions .section-container {
        padding: 1rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: auto;
        width: 240px;
    }

    .service-card-inner {
        transform-style: flat;
    }

    .service-card:hover .service-card-inner {
        transform: none;
    }

    .service-card-front,
    .service-card-back {
        position: relative;
        backface-visibility: visible;
    }

    .service-card-back {
        display: none;
    }

    .service-card:hover .service-card-front {
        display: none;
    }

    .service-card:hover .service-card-back {
        display: flex;
    }

    .about .section-container {
        flex-direction: column;
    }

    .about-image {
        min-height: 300px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0A3561;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0.5rem 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-card {
        width: 100%;
        max-width: 300px;
    }

    .contact-item.phone-number {
        margin: 10px 0;
    }
}
