/* Modern About Page Styles */
:root {
    --primary-color: #0A2342;      /* Kept dark blue for primary */
    --secondary-color: #2CA4D6;    /* Kept blue for secondary */
    --accent-color: #2CA4D6;       /* Changed to match logo's red color */
    --text-color: #333333;         /* Kept dark gray for text */
    --background-color: #F4F4F4;   /* Kept light gray for background */
    --white: #FFFFFF;              /* White */
    --light-gray: #EEEEEE;         /* New light gray for container backgrounds */
    --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Added shadow for header definition */
}

.FutureTense {
	font-family: FutureTense;
    font-weight: 100;
    text-transform: lowercase;
}

main {
    width: auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    line-height: 1.6;
    color: var(--text-color);
}

header {
    background-color: var(--white); /* Changed from primary-color to white */
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Added subtle shadow for definition */
}

.site-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.site-logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}

.logo-text {
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-subtext {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-top: -5px;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

header nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav ul li {
    margin: 0 15px;
    font-size: 1.30rem;
}

header nav ul li a {
    color: var(--primary-color); /* Changed from white to primary color */
    text-decoration: none;
    font-weight: 100;
    transition: color 0.3s ease;
    position: relative;
}

.site-logo img {
    max-height: 60px; /* Adjust based on your logo size */
    width: auto;
}

header nav ul li a:hover, header nav ul li a.active {
    color: var(--accent-color);
}

header nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.company-story {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 5px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.company-story h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 100;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.company-story h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.story-content {
    line-height: 1.9;
    color: var(--text-color);
}

.story-content p {
    margin-bottom: 25px;
    text-align: justify;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

.story-content p.image-caption {
    text-align: center;
}

.story-content p:first-child {
    font-weight: 600;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* Stiluri pentru galeria de imagini */
.image-gallery {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.gallery-item {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    transition: transform 0.3s ease;
}

.gallery-item-empty {
    flex: 0.5;
}

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

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    object-position: top;
}

.clickable-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable-image:hover {
    opacity: 0.9;
}

.image-caption {
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(240, 240, 240, 0.8);
    margin: 0;
}

/* Stiluri pentru lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 10px 0;
    height: 150px;
    font-size: 1.1rem;
}

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

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

/* Animație pentru lightbox */
.lightbox-content, #lightbox-caption {  
    animation-name: zoom;
    animation-duration: 0.6s;
}

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

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--white); /* Changed from primary-color to white */
    color: var(--primary-color); /* Changed text color */
    border-top: 1px solid rgba(0, 0, 0, 0.1); /* Added subtle top border */
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

@media (max-width: 1168px) {
    .site-logo {
        position: static;
        text-align: center;
        margin-bottom: 10px;
        transform: none;
    }

    header {
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    header nav ul li {
        margin: 10px 0;
    }

    .company-story {
        margin: 20px 15px;
        padding: 25px;
    }

    .company-story h1 {
        font-size: 2rem;
    }
    
    .image-gallery {
        flex-direction: column;
    }
    
    .lightbox-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .company-story {
        padding: 20px;
    }

    .company-story h1 {
        font-size: 1.8rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

.product-details {
    margin-top: 40px;
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 8px;
}

.product-details h2 {
    color: var(--primary-color);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.kit-components {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.kit-components li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.kit-components li::before {
    content: '●';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.system-functionality, .important-notes {
    margin-top: 25px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 8px;
}

.system-functionality h3, .important-notes h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.product-details p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-img {
    max-height: 45px;
    width: auto;
    margin-bottom: 10px;
}

.accent-text {
    color: var(--accent-color);
    font-weight: 600;
}

.footer-accent-text {
    color: var(--primary-color);
    font-weight: 600;
}
