/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

.nav-logo h2 {
    color: #2c5530;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #4a7c59;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #4a7c59;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.lang-toggle-container {
    padding-left: 0rem;
}

.lang-flag {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.lang-flag:hover {
    transform: scale(1.1);
}

.nav-separator {
    align-self: center;
    color: #ddd;
    padding: 0 0.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    opacity: 1;
    transition: opacity 0.5s ease;
    transform: scale(1.3);
}

.hero-image img.loading {
    opacity: 0;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Before/After Hero Slider */
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    will-change: transform;
    transform: scale(1.08) translateY(0);
}
.slider-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s;
}
.slider-before { z-index: 1; }
.slider-after {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
    transition: clip-path 0.4s cubic-bezier(.77,0,.18,1);
}
.slider-handle {
    display: none !important;
}
.slider-handle-bar {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    pointer-events: none;
}
.slider-handle-circle {
    width: 28px; height: 28px;
    background: #fff;
    border: 2px solid #4a7c59;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-handle:active .slider-handle-circle,
.slider-handle:focus .slider-handle-circle {
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.hero-content {
    position: relative;
    z-index: 10;
}
@media (max-width: 768px) {
    .slider-handle { width: 32px; margin-left: -16px; height: 40px; }
    .slider-handle-bar { height: 28px; }
    .slider-handle-circle { width: 20px; height: 20px; }
}

/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5530;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4a7c59, #6b9c7a);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-logo-main {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.about-logo-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: #444;
    text-align: center;
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.member-image {
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.member-image::before {
    content: '👤';
    font-size: 3rem;
    color: #4a7c59;
    opacity: 0.3;
    position: absolute;
    z-index: 1;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    position: relative;
    z-index: 2;
}

.member-image img.loading {
    opacity: 0;
}

.member-image img.error {
    opacity: 0;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.member-role {
    color: #4a7c59;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-statement {
    font-style: italic;
    color: #666;
    line-height: 1.6;
}

/* Progress Section */
.progress {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c5530 0%, #4a7c59 100%);
    color: white;
}

.progress .section-title {
    color: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -39px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-marker.completed {
    background: #4CAF50;
}

.timeline-marker.current {
    background: #FF9800;
    animation: pulse 2s infinite;
}

.timeline-marker.future {
    background: rgba(255, 255, 255, 0.3);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.detail-toggle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.detail-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.detail-content {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.panorama-container {
    margin-top: 1rem;
}

.panorama-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #000;
}

.panorama-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.panorama-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.panorama-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#panorama-viewer {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

#panorama-viewer canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.panorama-description {
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Fullscreen styles */
.panorama-wrapper.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

.panorama-wrapper.fullscreen #panorama-viewer {
    width: 100vw;
    height: 100vh;
}

.fullscreen-exit-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 99999;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.fullscreen-exit-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Show exit button when in fullscreen */
.panorama-wrapper.fullscreen .fullscreen-exit-btn {
    display: flex !important;
}

/* Mobile-specific fullscreen exit button */
@media (max-width: 768px) {
    .fullscreen-exit-btn,
    #panorama-fullscreen {
        display: none !important;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-carousel { display: none; position: relative; }
.carousel-rows { display: grid; grid-template-rows: repeat(4, auto); gap: 10px; position: relative; }
.carousel-row { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 10px; transition: transform 0.35s ease; padding: 0 10px; }
/* Show next/prev peeks by reducing basis */
.carousel-item { flex: 0 0 85%; border-radius: 10px; overflow: hidden; background: #ffffff; box-shadow: none; filter: none; border: 1px solid rgba(0,0,0,0.04); }
.carousel-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
/* Edge fade for elegance */
.carousel-row:before, .carousel-row:after { content: ''; position: absolute; top: 0; bottom: 0; width: 32px; z-index: 2; pointer-events: none; }
.carousel-row:before { left: 0; background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)); }
.carousel-row:after { right: 0; background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0)); }
.carousel-controls { display: none; position: absolute; z-index: 3; top: 50%; left: 0; right: 0; transform: translateY(-50%); justify-content: space-between; padding: 0 6px; }
.carousel-btn { background: rgba(0,0,0,0.55); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }

.gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 48px 64px; /* ensure room for close/arrow buttons */
}
.lightbox.open { display: flex; }
.lightbox-content {
    width: auto;
    height: auto;
}
.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border-radius: 4px;
}
.lightbox-btn {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(6px);
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-btn:hover { transform: scale(1.06); background: rgba(255,255,255,0.25); }
.lightbox-close { top: 24px; right: 28px; font-size: 28px; border: none; }
.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

@media (max-width: 992px) {
    /* Disable lightbox controls on small screens (we don't open it) */
    .lightbox { display: none !important; }
}

@media (max-width: 768px) {
    .gallery-grid { display: none; }
    .gallery-carousel { display: block; }
    .carousel-controls { display: flex; }
}

@media (min-width: 769px) and (max-width: 991px) {
    .gallery-grid { display: none; }
    .gallery-carousel { display: block; }
    .carousel-controls { display: flex; }
}

@media (max-width: 480px) {
    .gallery-grid { display: none; }
    .gallery-carousel { display: block; }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #4a7c59;
    margin-top: 0.2rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c5530;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
}

.btn-primary {
    background: linear-gradient(135deg, #4a7c59, #6b9c7a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 124, 89, 0.3);
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    text-align: center;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #4a7c59;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #4a7c59;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu.active .lang-toggle-container {
        display: flex;
        justify-content: center;
        padding-top: 0;
    }

    .nav-menu.active .nav-separator {
        display: block;
        width: 50%;
        height: 1px;
        background-color: #eee;
        margin: 0 auto;
        padding: 0;
        text-indent: -9999px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-marker {
        left: -24px;
        top: 4px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about,
    .team,
    .progress,
    .contact {
        padding: 60px 0;
    }
}

.panorama-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 5px solid rgba(255,255,255,0.3);
    border-top: 5px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10001;
    background: transparent;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.panorama-wrapper.loading .panorama-spinner {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
    color: #222;
}
.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    color: #4a7c59;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.modal-close:hover {
    color: #e74c3c;
}
@media (max-width: 600px) {
    .modal-content {
        padding: 1.2rem 0.7rem;
        max-width: 95vw;
    }
} 