:root {
    --bg-color: #f8f9fa;
    --text-color: #333333;
    --accent-color: #ff6600;
    --accent-gradient: linear-gradient(135deg, #ff6600 0%, #ff9933 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-bg: #ffffff;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header / Hero */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, #e0f7fa, #ffffff);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Bright, airy window image */
    background: url('assets/hero-bg.jpg') no-repeat center center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #222;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.4rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--accent-gradient);
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 168, 204, 0.5);
}

/* Carousel Section */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    background: #fff;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: contain;
    background-color: #f8f9fa;
    /* Match body bg to blend in, or use black for contrast. Let's start with a subtle bg */
    display: block;
    transition: transform 0.5s;
}

.carousel-slide:hover img {
    transform: scale(1.03);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Lightbox Navigation Buttons */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 2100;
    /* Above lightbox content */
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.prev-lightbox {
    left: 30px;
}

.next-lightbox {
    right: 30px;
}

/* Logo Image Styling */
.logo img {
    height: 90px;
    /* Maximized size */
    width: auto;
    vertical-align: middle;
}

/* Lightbox */
.lightbox {
    display: none;
    position: absolute;
    /* Changed from fixed */
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #333;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2200;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* Features Section */
.section {
    position: relative;
    /* Added relative positioning for referencing */
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 5rem;
    color: #222;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    border: 1px solid #eee;
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Location Section */
#location {
    background: #f0f4f8;
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.address-box p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.map-placeholder {
    width: 100%;
    max-width: 900px;
    height: 450px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Detailed Contact Form */
footer {
    padding: 100px 0 50px;
    text-align: center;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 4rem;
    text-align: left;
    background: #fff;
    padding: 2rem;
    /* Optional: box shadow if you want it to pop, but clean is good too */
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9f9f9;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.socials {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #999;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .carousel-slide img {
        height: 350px;
    }
}

/* Lightbox Caption */
.lightbox {
    /* Main container is already flex centered from previous styles (display:none -> flex in JS) */
    align-items: center;
    justify-content: center;
}

.lightbox-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 80vh;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.8);
    /* Optional background for the whole card */
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-content {
    /* Image */
    max-width: 60%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: none;
    /* Reset previous shadow */
    transform: none;
    /* Reset previous transform */
}

.lightbox.active .lightbox-content {
    transform: none;
}

.lightbox-caption {
    /* Text */
    margin-top: 0;
    color: #fff;
    font-size: 1.1rem;
    text-align: left;
    background: transparent;
    padding: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease 0.3s;
    max-width: 40%;
    line-height: 1.6;
}

.lightbox.active .lightbox-caption {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .lightbox-body {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 50vh;
    }

    .lightbox-caption {
        max-width: 100%;
        text-align: center;
        transform: translateY(20px);
    }

    .lightbox.active .lightbox-caption {
        transform: translateY(0);
    }
}