:root {
    /* Color Palette */
    --color-primary: #5B7C99;
    /* Dusty Blue */
    --color-secondary: #A8A29E;
    /* Warm Gray */
    --color-accent: #FDFAF5;
    /* Cream */
    --color-text: #2D3748;
    /* Dark Slate */
    --color-text-light: #718096;
    --color-white: #FFFFFF;
    --color-success: #48BB78;
    --color-error: #F56565;

    /* Typography */
    --font-primary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
}

/* API Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    background-color: #9d8161;
    overflow-x: hidden;
}

/* Base background setup for the triptych effect */
body::before,
body::after {
    content: "";
    position: fixed;
    top: 0;
    height: 100vh;
    width: calc(50vw - 600px);
    /* Adjusted for 1200px center (50vw - 1200/2) */
    background-image: url('../assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(40px) brightness(0.7);
    z-index: -2;
}

/* Left Mirrored Side */
body::before {
    left: 0;
    transform: scaleX(-1);
}

/* Right Mirrored Side */
body::after {
    right: 0;
    transform: scaleX(-1);
}

/* Central Main Image */
.main-bg-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    /* Perfectly centered */
    width: 1200px;
    /* Matching the main container width (max-width: 1200px) */
    height: 100vh;
    background-image: url('../assets/background.jpg');
    background-size: cover;
    /* Changed from contain to cover to eliminate gaps */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.6);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Utility Classes */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn:hover {
    background-color: #4A657D;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section {
    padding: var(--spacing-lg) 0;
    background-color: rgba(253, 250, 245, 0.65);
    /* Made more transparent to see the photo better */
    backdrop-filter: blur(4px);
}

#contact {
    background-color: rgba(91, 124, 153, 0.65);
    /* Lowered opacity for contact section too */
    color: var(--color-white);
}

#contact h2,
#contact h3,
#contact h4,
#contact p {
    color: var(--color-white);
}

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

.text-warm {
    color: var(--color-secondary);
}

/* Components */

/* Navbar */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    /* More transparent navbar */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

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

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

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-accent) 0%, #E6E6FA 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Features/Services */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid var(--color-secondary);
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    /* Adjust based on timeline border padding */
    top: 0.2rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--color-secondary);
    border-radius: 50%;
    border: 2px solid var(--color-white);
    /* Add a border for cleaner look */
    box-shadow: 0 0 0 2px var(--color-secondary);
    /* Double border effect */
}

.timeline-item:first-child .timeline-dot {
    background-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Contact */
.contact-form {
    display: grid;
    gap: 1rem;
    text-align: left;
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

/* Placeholder for images */
.img-placeholder {
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.9rem;
}

/* Location Section */
.location-container {
    margin-top: 5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4rem 5%;
    text-align: left;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.location-grid {
    display: grid;
    grid-template-columns: 0.5fr 2.5fr;
    gap: 4rem;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.location-map {
    height: 100%;
    min-height: 400px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.location-map iframe {
    border: 0;
    min-height: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, or would strictly need a hamburger menu */
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--spacing-md) 0;
    }

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

    .location-container {
        padding: 2rem 1.5rem;
    }

    /* Adjust background for mobile */
    .main-bg-container {
        left: 0 !important;
        width: 100vw !important;
    }

    body::before,
    body::after {
        display: none;
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Artwork Gallery Grid */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.artwork-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: zoom-in;
    background: #f8fafc;
}

.artwork-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artwork-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.artwork-item:hover img {
    transform: scale(1.1);
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    /* Squircle for Instagram, slightly rounded for FB */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Facebook Brand Style */
.social-icon.facebook:hover {
    background-color: #1877F2;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Instagram Brand Style */
.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(214, 36, 159, 0.4);
}

/* Animations */
/* Animations */
.reveal {
    /* opacity: 0; Temporarily disabled for visibility safety */
    /* transform: translateY(30px); */
    transition: all 0.8s ease-out;
}

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

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

.blog-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.blog-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.read-more {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.9rem;
}