/* CSS Variables & Reset */
:root {
    --bg-color: #FDFBF7;
    --text-color: #4A4A4A;
    --accent-color: #E6C9C9;
    /* Light Blush */
    --accent-dark: #D4B0B0;
    --secondary-color: #8D7B68;
    /* Soft Brown */
    --gold: #C5A059;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    --transition: all 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
}

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

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

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

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

.loading-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
    letter-spacing: 2px;
}

.line {
    width: 0;
    height: 2px;
    background: var(--gold);
    margin: 10px auto 0;
    animation: expandLine 2s ease-in-out forwards;
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    background: rgba(253, 251, 247, 0.8);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Navbar height */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.4;
    filter: blur(80px);
    z-index: -1;
    animation: floatShape 10s infinite alternate;
}

@keyframes floatShape {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-30px, 40px);
    }
}

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

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.highlight {
    color: var(--accent-color);
    background: linear-gradient(120deg, var(--accent-color) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    color: #555;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(141, 123, 104, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(141, 123, 104, 0.4);
}

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

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image .img-wrapper {
    width: 400px;
    height: 500px;
    border-radius: 200px 200px 20px 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    background-color: #f0ebe4;
    /* Placeholder visual */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
#about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.signature {
    width: 150px;
    margin-top: 20px;
    opacity: 0.7;
}

.signature-placeholder {
    font-family: 'Playfair Display', cursive;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--secondary-color);
    opacity: 0.7;
    margin-top: 20px;
}


/* Gallery Section */
#gallery {
    padding: 100px 0;
    background-color: var(--white);
}

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

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    aspect-ratio: 4/5;
    background: #fdfdfd;
}

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

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(141, 123, 104, 0.7);
    /* Soft Brown semi-transparent */
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay h3 {
    transform: translateY(0);
}

/* Philosophy Section */
#philosophy {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/photo_6084551418468568626_y.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.4) blur(3px);
    z-index: -1;
}

.philosophy-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px 60px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
}

.philosophy-card::before,
.philosophy-card::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.5s ease;
}

.philosophy-card::before {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.philosophy-card::after {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.philosophy-card:hover::before,
.philosophy-card:hover::after {
    width: 100%;
    height: 100%;
    border-color: rgba(255, 255, 255, 0.1);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 30px;
    display: block;
}

#philosophy blockquote p {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.citation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.citation cite {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-style: normal;
}

.citation .line {
    height: 1px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.4);
}

/* Responsive adjustment for philosophy */
@media (max-width: 768px) {
    #philosophy blockquote p {
        font-size: 1.8rem;
    }

    .philosophy-card {
        padding: 50px 30px;
    }
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background-color: #faf9f6;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fdfdfd;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(230, 201, 201, 0.2);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    display: flex;
    overflow: hidden;
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content img {
    width: 60%;
    object-fit: cover;
}

.modal-details {
    width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.modal-details span {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

/* Animations Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Placeholder Styles */
.placeholder-img {
    width: 100%;
    height: 100%;
    background-color: #EFEBE7;
    position: relative;
    overflow: hidden;
}

.placeholder-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

.placeholder-img.portrait {
    background-color: #E6C9C9;
}

.placeholder-img.landscape {
    height: 400px;
    border-radius: 10px;
    background-color: #D4B0B0;
}

.placeholder-img.art-piece {
    height: 100%;
}

.placeholder-img.featured-art {
    height: 100%;
    background-color: #C5A059;
    border-radius: 10px;
    min-height: 400px;
}

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

    .hero-image {
        display: none;
    }

    /* Hide hero image on smaller mobile or adjust */
    .about-grid,
    .featured-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .modal-content {
        flex-direction: column;
        width: 95%;
        margin: 10% auto;
    }

    .modal-content img {
        width: 100%;
        height: 300px;
    }

    .modal-details {
        width: 100%;
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    /* Hamburger menu implementation in JS */
    .hamburger {
        display: block;
    }
}