/* --- Global & Root Styles --- */
:root {
    --bg: #F9F7F5; /* A soft, elegant off-white */
    --text: #333333; /* A dark charcoal gray */
    --primary: #fff;
    --accent: #B38F5F; /* A rich, warm gold for a classic feel */
    --transition: 0.4s ease;
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-track {
    background: transparent;
}
body::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 0.3);
    border-radius: 4px;
}
body.dark::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Header & Navigation --- */
header {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Removed: max-width: 1100px; */
    margin: 0 auto;
    padding: 1rem 1.5rem;
    height: 70px;
    box-sizing: border-box;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end; /* This aligns the links to the right */
}

.logo {
    height: 270px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    color: #1a1a1a;
    padding-bottom: 2px;
    transition: color 0.3s;
}

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

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* --- Homepage Intro Section --- */
.intro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    flex-wrap: wrap;
    border-radius: 20px;
    background: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.6s ease;
}

.intro-text {
    flex: 1 1 45%;
    max-width: 600px;
    padding: 2rem; /* Increased padding */
}

.subtitle {
    font-size: 1rem; /* Increase size for better visibility */
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif; /* A classic, elegant font */
    font-size: 3rem; /* Increase size for more impact */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0288a6;
}

.intro-image {
    flex: 1 1 45%;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.intro-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* --- Gallery Styles --- */
.gallery-section {

    margin: 2rem auto;
    padding: 2rem;
}

.quote-section {
    text-align: center;
    padding: 2rem 1rem;
    font-style: italic;
    font-size: 1.2rem;
}

.gallery {
    column-count: 3;
    column-gap: 1rem;
    padding: 1rem;
}

.gallery a {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
}

.gallery img {
    width: 100%;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --- Contact Page Styles --- */
.contact-section {

    margin: 4rem auto;
    padding: 3rem 2rem;
    background: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    animation: fadeInUp 0.6s ease;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    outline: none;
}

.contact-button {
    background-color: var(--accent);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.contact-button:hover {
    background-color: #0288a6;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}

.contact-button-wrapper {
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    background: var(--primary);
    color: var(--text);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.social-links a {
    color: var(--text);
    margin: 0 1rem;
    font-size: 1.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

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

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        text-align: center;
    }

    .intro-text, .intro-image {
        flex: 1 1 100%;
    }

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

    .description {
        font-size: 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }
}

@media (max-width: 600px) {
    .gallery {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .header-top {
        flex-direction: column;
        height: auto;
    }

    .header-top nav {
        margin-top: 1rem;
    }

    nav a {
        margin: 5px 10px;
        font-size: 0.95rem;
    }

    .logo {
        height: 100px;
    }
}

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

/* Dark Mode Overrides (Optional) */
body.dark {
    --bg: #121212;
    --text: #f5f6fa;
    --primary: #1e1e1e;
}

/* --- SLIDING PROFILE GALLERY STYLES --- */

/* This replaces the old .intro-image img styling */
.intro-image img {
    display: none; /* Hide the original static image if it's still there */
}

/* The main gallery container, which acts as the frame */
.profile-gallery {
    width: auto;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    justify-content: center;
    align-items: center;
}

/* The track that holds and moves all the images */
.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Controls the slide animation speed */
}

/* Each individual image slide */
.slide {
    min-width: 100%;
    height: auto;
}

/* This crops the image to fill the frame */
.slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Navigation buttons styling */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10;
}

.nav-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Buttons are invisible by default */
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Show buttons when hovering over the gallery */
.profile-gallery:hover .nav-btn {
    opacity: 1;
}

.nav-btn:hover {
    background-color: white;
}