/* ===== Root & Global Styles ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #ecf0f1;
    --text-color: #333;
    --light-text: #666;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* ===== Navigation ===== */
.navbar {
    background-color: transparent;
    color: var(--white);
    padding: 1.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: none;
    z-index: 100;
}

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

.nav-brand .logo {
    height: 220px;
    margin-bottom: 0.25rem;
    width: auto;
}

.nav-brand .tagline {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-style: italic;
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    background-image: 
        linear-gradient(135deg, rgba(44, 62, 80, 0.4) 0%, rgba(52, 73, 94, 0.4) 100%),
        url('https://silverlightstories-public.s3.ap-southeast-2.amazonaws.com/header_img.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 200px 20px 120px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.1rem !important;
    margin-bottom: 2rem !important;
    color: #ddd !important;
    max-width: 700px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* ===== Section Titles ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

/* ===== Services Section ===== */
.services {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--secondary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.8;
}

/* ===== Gallery Section ===== */
.gallery {
    padding: 80px 20px;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    opacity: 1;
    transition: var(--transition);
}

.gallery-item.hidden {
    display: none;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color) 0%, #bdc3c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.gallery-placeholder.hidden {
    display: none;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
    color: var(--secondary-color);
}

.featured-sessions {
    padding: 80px 20px;
    background-color: #f7f7f7;
}

.featured-sessions .session-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.featured-sessions .session-row h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.featured-sessions .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(44, 62, 80, 0.8);
    color: var(--white);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.featured-sessions .scroll-left {
    left: 0;
}

.featured-sessions .scroll-right {
    right: 0;
}

.featured-sessions .scroll-btn:hover {
    background-color: var(--secondary-color);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox > div {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 10px;
    box-sizing: border-box;
}

.lightbox img {
    max-width: 100%;
    max-height: calc(95vh - 80px);
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-caption {
    margin-top: 16px;
    color: var(--white);
    text-align: center;
    font-size: 1rem;
    max-width: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
    font-size: 1.6rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
    .featured-sessions {
        padding: 60px 15px;
    }

    .featured-sessions .scroll-btn {
        display: none;
    }

    .featured-sessions .session-scroll {
        gap: 1rem;
        padding: 0 0.5rem 10px;
    }
}

.featured-sessions .session-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding: 0 1rem 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.featured-sessions .session-scroll::-webkit-scrollbar {
    display: none;
}

.featured-sessions .session-card {
    flex: 0 0 min(80%, 560px);
    min-width: 280px;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-sessions .session-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.featured-sessions .session-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.featured-sessions .session-card:hover {
    transform: translateY(-4px);
}

.featured-sessions .session-card img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .featured-sessions .session-card img {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .featured-sessions .session-card img {
        height: 400px;
    }
}

/* ===== Contact Section ===== */
.contact {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.info-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--light-text);
    font-size: 1.05rem;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
}

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

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
}

/* Instagram logo variant */
.social-link.social-logo {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.social-logo-img {
    width: 56px;
    height: 56px;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.18s ease;
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.form-note {
    font-size: 0.9rem;
    color: var(--light-text);
    text-align: center;
    margin-top: -0.5rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 80px 20px;
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-card .author {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== About Section ===== */
.about {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.about-text p:first-of-type {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 20px;
    text-align: center;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(44, 62, 80, 0.95);
        padding: 1rem 0;
        gap: 0;
        margin-top: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero {
        padding: 120px 20px 60px;
        min-height: auto;
        background-attachment: scroll;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .featured-sessions .session-row h3 {
        font-size: 1.4rem;
    }

    .featured-sessions .session-card {
        flex: 0 0 min(95%, 500px);
    }

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

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .gallery-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-brand .logo {
        height: 130px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-brand .logo {
        height: 85px;
    }

    .nav-brand .tagline {
        display: none;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .featured-sessions .session-row h3 {
        font-size: 1.1rem;
    }

    .featured-sessions .session-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .featured-sessions .session-scroll {
        gap: 0.75rem;
        padding: 0;
    }

    .services {
        padding: 50px 15px;
    }

    .gallery {
        padding: 50px 15px;
    }

    .contact {
        padding: 50px 15px;
    }

    .contact-wrapper {
        padding: 0 10px;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

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

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}
