/* Root Variables and General Styles */
:root {
    --primary-color: #63bb67;
    --primary-light: #8cd590;
    --background-green: #28902D;
    --text-color: #1e293b;
    --inner-box-bg: #63bb67;
    --inner-text-color: #ffffff;
    --stat-value-color: #ffd700;
    --header-bg: #28902D;
    --header-border: #f7208c;
    --accent-color: #d51274;
    --header-text: #40e8b7;
    --background-light: #63bb67;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0; 
    padding: 0; 
    background: var(--background-green);
    background-image: radial-gradient(circle at center, var(--primary-color) 0%, var(--background-green) 100%);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header and Navigation */
.navbar { 
    background: var(--header-bg);
    border: 2px solid var(--header-border);
    width: calc(100% - 4rem);
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 1rem;
    height: 80px;
}

.logo {
    height: 70px;
    width: auto;
    margin-right: 15px;
}

.navbar a { 
    color: var(--inner-text-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.navbar a:hover { 
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Logo and Text in Header */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.logo-text h4 {
    font-size: 1rem;
    color: var(--header-text);
    margin: 0 !important;
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--header-border);
    margin: 5px !important;
    text-shadow: 1px 1px 0 var(--accent-color);
}

/* Status Container */
.status-container {
    background: var(--inner-box-bg) !important;
    border-radius: 1rem;
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0rem;
}

/* Content and Layout */
.content {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 20px;
}

.three-column-layout {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 5px;
    width: 100%;
}

.column {
    flex: 1;
    min-width: 0;
}

/* Feature Boxes */
.feature-box {
    background: var(--inner-box-bg);
    border: 1px solid rgba(99, 187, 103, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    color: var(--inner-text-color);
    margin: 10px 0 0 0;
}

.feature-box h2 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: center;
}

.feature-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-box ul li {
    padding: 8px 5px 5px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features */
.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    background: var(--inner-box-bg);
    padding: 1rem;
    border-radius: 8px;
}

.feature h3 {
    color: var(--inner-text-color) !important;
    font-size: 1.2rem;
    margin-top: 0;
}

/* Statistics */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 15px;
}

.statistics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.statistics-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(99, 187, 103, 0.1);
}

.stat-label {
    color: var(--inner-text-color);
}

.stat-value {
    color: var(--stat-value-color);
    font-weight: 500;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.display-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.display-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Spools Info */
.spools-info {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.spool-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--inner-box-bg);
    border: 1px solid rgba(99, 187, 103, 0.2);
    border-radius: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--inner-box-bg);
    padding: 2rem 0;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section {
    color: var(--inner-text-color);
}

.footer-section h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-section p {
    color: var(--inner-text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--inner-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-2px);
}

.social-icon.bmc-icon {
    width: auto;
    height: 32px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--inner-text-color);
    font-size: 0.9rem;
}

/* General Elements */
p {
    font-size: 1rem;
    color: var(--inner-text-color);
}

a {
    color: var(--inner-text-color);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

/* Lightbox Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--header-bg);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: modalPop 0.3s ease-out;
    border: 2px solid var(--header-border);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

@keyframes modalPop {
    from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--inner-text-color);
    background: var(--header-bg);
    padding: 12px 20px;
    margin: 0 auto;
    width: fit-content;
    border-radius: 8px;
    font-weight: bold;
    border: 1px solid var(--header-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(10px);
    animation: captionSlide 0.3s ease-out forwards;
}

@keyframes captionSlide {
    to {
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: var(--inner-text-color);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: var(--header-bg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--header-border);
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Add cursor pointer to gallery images */
.gallery-image,
.display-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-image:hover,
.display-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media only screen and (max-width: 700px) {
    .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .three-column-layout {
        flex-direction: column;
    }
    
    .column {
        width: 100%;
    }
    
    .display-images {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4 {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Language Selector */
.language-selector {
    margin-right: 10px;
}

.language-selector a {
    margin: 0;
    padding: 0;
}

.lang-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
}

.lang-link.active {
    color: #000;
    font-weight: bold;
}

.lang-separator {
    color: #666;
    margin: 0;
    padding: 0;
}