* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
  
}

/* Navigation Bar */
.navbar {
    background-color:#304259; /* light black / dark transparent background for menu */
    padding: 0.8rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-container {
    float:left;
 
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    float:right;
}

.nav-menu li {
    list-style: none;
}

.nav-menu a {
    color: #fff; /* white text on dark background */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.25s, transform 0.15s;
}

.nav-menu a:hover {
    color: #00bcd4;
}

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 72px); /* full height minus navbar */
    padding-top: 72px; /* offset for fixed navbar */
    display: flex;
    align-items: center;
    justify-content: center; /* main centering; inner content shifts left with padding */
    background: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)), 
                url('esileht.jpg') center/cover no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.14);
    backdrop-filter: contrast(0.95) brightness(1.02);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center; /* center content */
    width: 100%;
    height: 100%;
    padding-left: 0; /* no manual horizontal shift */
}

.content-box {
    background: rgba(255, 255, 255, 0.384);
    padding: 3.5rem 3.5rem;
    border-radius: 6px;
    max-width: 680px;
    width: calc(100% - 60px);
    text-align: center;
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
    border: 2px solid rgba(0,0,0,0.35);
}

.content-box h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.8rem;
    color: #2b2b2b;
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.content-box p {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

.cta-button {
    background-color: #3fc1ff;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.12s;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #2aa0cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(46,153,173,0.28);
}

.cta-button:active {
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.section h2 {
    font-size: 2rem;
    color: #2d2d2d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact {
    background-color: #f5f5f5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00bcd4;
    box-shadow: 0 0 5px rgba(0,188,212,0.2);
}

.contact-form button {
    background-color: #00bcd4;
    color: white;
    border: none;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.contact-form button:hover {
    background-color: #0097a7;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #3fc1ff;
}

.gallery-overlay p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
    margin: 0;
    color: white;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 85%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(63, 193, 255, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #3fc1ff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(63, 193, 255, 0.8);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 2001;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #3fc1ff;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-title {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: #3fc1ff;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    max-width: 80%;
}

.lightbox-desc {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    opacity: 0.9;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #3fc1ff;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 60vh;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }

    .lightbox-title {
        font-size: 1.3rem;
        bottom: 100px;
    }

    .lightbox-desc {
        font-size: 0.85rem;
        bottom: 60px;
    }
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        float: none;
        padding: 0 1rem; /* smaller side padding on mobile */
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .nav-menu {
        flex-direction: row;
        justify-content: center;
        gap: 0.6rem;
        flex-wrap: nowrap; /* keep items on one horizontal line */
        float: none;
    }

    .nav-menu a {
        font-size: 0.7rem;
        letter-spacing: 0.4px;
        padding: 0.1rem 0.3rem;
        white-space: nowrap; /* prevent text from breaking to vertical */
    }

    .hero {
        margin-left: 0;
        height: 100vh;
        min-height: 100vh;
        padding-top: 64px; /* offset for top navbar on mobile */
        padding-bottom: 0;
        margin-bottom: 0;
        background-position: center bottom; /* align background to bottom */
    }
    
    .hero-overlay {
        bottom: 0; /* ensure overlay reaches footer */
    }

    .hero-content {
        justify-content: center;
        padding-left: 0;
    }

    .content-box {
        padding: 2rem;
        margin: 0 20px;
    }

    .content-box h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 1rem;
        font-size: 0.85rem;
        margin: 0;
        z-index: 999;
    }

    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
}
