@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Miniver&family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --white-color: #fff;
    --dark-color: #252525;
    --primary-color: #05245a;
    --secondary-color: #f5ede0;
    --light-pink-color: #faf4f5;
    --accent-color: #d4af37; /* Added a subtle gold accent */
    
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.5rem;

    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --site-max-width: 1300px;
    
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents fixed header from covering section titles */
}

body {
    background-color: var(--white-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { width: 100%; display: block; }

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

/* --- Typography & Titles --- */
.section-title {
    text-align: center;
    padding: 20px 0;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: "";
    width: 70px;
    height: 4px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--accent-color);
}

.section-title-sm {
    margin: 20px 0 10px;
    text-transform: uppercase;
    font-size: var(--font-size-m);
    color: /*var(--primary-color)*/ #1f294f;
    font-weight: 600;
}

.section-title-sm::after {
    content: "";
    width: 50px;
    height: 3px;
    display: block;
    margin-top: 5px;
    border-radius: var(--border-radius-s);
    background: var(--accent-color);
}

.text-sm {
    line-height: 1.8;
    margin-bottom: 15px;
    color: /*#555*/ var(--primary-color);
}

/* --- Header --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: rgba(5, 36, 90, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    padding: 15px 20px;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo .logo-text {
    color: var(--white-color);
    font-size: var(--font-size-xxl);
    font-family: 'Great Vibes', cursive;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    padding: 8px 18px;
    color: var(--white-color);
    font-size: var(--font-size-n);
    border-radius: var(--border-radius-m);
    transition: var(--transition);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
    background: #fff;
}

.nav-logo .logo-text {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;
    position: absolute;
    top: -7px;
    left: 0px;
}

.lang-link {
    font-weight: 700;
    border: 1px solid #fff;
}

#menu-close-button, #menu-open-button {
    display: none;
    color: var(--white-color);
    font-size: var(--font-size-l);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-details .title {
    font-size: var(--font-size-xxl);
    color: #fff;
    /* font-family: "Miniver", sans-serif; */
}

.hero-details .subtitle {
    margin-top: 10px;
    max-width: 600px;
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--white-color);
}

.hero-details .description {
    max-width: 600px;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
    color: #d1d5db;
}

.hero-details .buttons {
    display: flex;
    gap: 20px;
}

.hero-details .button {
    padding: 12px 30px;
    border-radius: var(--border-radius-m);
    background: #fff;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-details .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--white-color);
}

.hero-image-wrapper {
    max-width: 450px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.floating {
    animation: float 4s ease-in-out infinite;
}

/* --- About Section --- */
.about-section {
    padding: 100px 0;
    position: relative;
    /* background: #fff; */
}

.about-section .section-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius-m);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about-details {
    flex: 1;
}

/* --- Products Section --- */
.products-section {
    padding: 80px 0;
    background: #6d7591;
}

.product-container {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px; */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch; /* This ensures all cards stretch to equal height */
    margin: 0 15px;
}

.product-item {
    /* display: flex;
    flex-direction: column;
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee; */

    display: flex;
    flex-direction: column;
    height: 100%; /* Full height of the grid cell */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(5, 36, 90, 0.15);
}

.product-info {
    /* padding: 25px;
    background: var(--primary-color);
    color: var(--white-color); */

    flex-shrink: 0; /* Prevent shrinking */
    background: #0a2463;
    color: white;
    padding: 20px;
    height: 250px;
}

.product-info h3 {
    font-size: var(--font-size-l);
    margin-bottom: 15px;
    color: #fff;
}

.product-item-img {
    /* padding: 20px;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1; */

    flex: 1; /* Takes remaining space */
    height: 280px; /* FIXED HEIGHT - same for all products */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    flex-shrink: 0; /* Prevents the image section from shrinking */
}

.product-image {
    /* max-height: 220px;
    width: auto;
    object-fit: contain;
    transition: var(--transition); */

    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Ensures image fits without distortion */
    object-position: center;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

/* --- Updated Product Card Styling --- */
/* .product-item {
    display: flex;
    flex-direction: column;
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border: 1px solid #eee;
    height: 100%;  Ensures all cards in a grid row stretch to match the tallest card 
}

.product-info {
    padding: 25px;
    background: var(--primary-color);
    color: var(--white-color);
    No fixed height here, allowing it to grow naturally with text/tables 
}

.product-item-img {
    height: 280px; 🔑 FIXED HEIGHT: Guarantees all image areas are exactly the same size 
    padding: 20px;
    background: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 🔑 PREVENTS SHRINKING: Stops the image box from getting squished by longer text above it 
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  Keeps the image perfectly proportional and fully visible without cropping 
    transition: var(--transition);
}

.product-item:hover .product-image {
    transform: scale(1.05);
} */

/* --- Mobile Adjustment --- */
/* @media screen and (max-width: 640px) {
    .product-item-img {
        height: 240px;  Slightly smaller fixed height for mobile screens 
    }
} */

/* Modern Table Styling */
.product-table {
    /* width: 100%; */
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    width: 100%;
    margin-top: 10px;
}

.product-table th, .product-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.product-table th {
    color: #fff;
    font-weight: 600;
    font-size: var(--font-size-s);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-table td {
    color: var(--white-color);
    font-size: var(--font-size-n);
}

.product-table tr:last-child td {
    border-bottom: none;
}

/* --- Contact Section --- */
.contact-section {
    padding: 80px 0 40px;
    /* background: var(--primary-color); */
    background: #1F294F;
    color: var(--white-color);
}

.footer-col h4 {
    font-size: var(--font-size-l);
    margin-bottom: 25px;
    position: relative;
    color: #fff;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    background-color: var(--accent-color);
    height: 3px;
    width: 40px;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info i {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 4px;
}

.contact-info p {
    color: #d1d5db;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media screen and (max-width: 900px) {
    #menu-close-button, #menu-open-button {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px;
        background: var(--white-color);
        transition: left 0.4s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

    body.show-mobile-menu .nav-menu {
        left: 0;
    }

    body.show-mobile-menu::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .nav-link {
        color: var(--dark-color);
        font-size: var(--font-size-l);
        margin-bottom: 15px;
        width: 100%;
    }

    .nav-link:hover, .nav-link.active {
        background: var(--light-pink-color);
        color: var(--primary-color);
    }

    .hero-section .section-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }

    .hero-details .subtitle, .hero-details .description {
        max-width: 100%;
    }

    .hero-details .buttons {
        justify-content: center;
    }

    .about-section .section-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 640px) {
    :root {
        --font-size-xl: 1.6rem;
        --font-size-xxl: 2rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
}