@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-main: #666666;
    --text-dark: #232529;
    --text-light: #aaaaaa;
    --accent: #1659a3;
    --accent-hover: #124a87;
    --font-main: 'Source Sans Pro', sans-serif;
    --container-width: 1200px;
    --header-height: 80px; /* Reverted to stable height */
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 600;
}

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

@keyframes logoPulse {
    0%, 90%, 100% { transform: scale(1); }
    95% { transform: scale(1.05); }
}

.reveal { opacity: 0; }
.reveal.active { animation: fadeInUp 1s ease forwards; }

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px; /* Margins for legibility */
}

section {
    padding: 60px 0;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 55px; /* Stable size */
    max-width: 100%;
    object-fit: contain;
    animation: logoPulse 60s infinite;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Hero Slider - Reduced height to minimize white space */
.hero-slider {
    width: 100%;
    height: auto;
    aspect-ratio: 1825 / 800;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* Intro Text */
.intro-text {
    padding: 40px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro-text p {
    margin-bottom: 25px;
    font-size: 1.15rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.intro-text strong {
    color: #000;
    font-weight: 500;
}

.highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.highlight-item {
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--accent);
    font-weight: 600;
}

/* Portfolio Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 130px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-btn i {
    font-size: 1.4rem;
    color: #999;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.load-more-btn {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.load-more-btn:hover {
    background: var(--accent);
    color: #fff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    border-radius: 8px;
    background: #eee;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

/* Lightbox Refined */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox-container {
    position: relative;
    display: inline-flex;
}

#lightbox .lightbox-img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border: 3px solid var(--accent);
    background: #000;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 2px;
}

@media (min-width: 769px) {
    #lightbox .lightbox-img {
        max-width: 90vw;
        max-height: 700px;
    }
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

#lightbox .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 1.8rem;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

/* Contact Form - Restored Design */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: #fff;
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

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

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

.submit-btn {
    background: var(--accent);
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-size: 1rem;
}

.contact-info-panel h3 {
    margin-bottom: 20px;
}

/* Message Modal */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
}

.message-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 3px solid var(--accent);
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.message-modal-content p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.message-modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
}

.message-modal-content .close-btn:hover {
    color: var(--accent);
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 20px 0;
    text-align: center;
}

.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .mobile-toggle {
        display: block;
    }

    header {
        height: 70px; /* Smaller for mobile */
    }

    .logo img {
        height: 45px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        text-align: center;
        margin: 10px 0;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-slider {
        height: auto;
        aspect-ratio: 1825 / 800;
    }

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

    .filter-btn i {
        display: none; /* Icons hidden on mobile */
    }

    .filter-btn {
        min-width: 90px;
        padding: 10px;
    }
}
