/* Brand Voice: Lighthearted, Enthusiastic, Respectful */

@font-face {
    font-family: 'Starborn';
    src: url('assets/other-media/fonts/starborn/Starborn.otf') format('opentype');
}

:root {
    /* Updated Color Palette */
    --bg-color: #FDEABD; /* Cream */
    --text-color: #2C2D50; /* Dark Navy */
    --accent-pink: #FACEE4; /* Light Pink */
    --accent-brown: #3B221C; /* Dark Brown */
    --accent-purple: #5800AB; /* Purple */
    --card-bg: #FFFFFF;
    --nav-width: 250px;
}

body {
    font-family: 'Starborn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    /* Enforce lowercase preference for the font */
    text-transform: lowercase; 
}

/* Side Navigation */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--accent-pink);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.5rem;
    color: var(--text-color);
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: var(--accent-brown);
    transform: scale(1.1) translateX(10px);
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    cursor: pointer;
}

/* Hamburger Menu */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 900;
    color: var(--text-color);
    background-color: var(--accent-pink);
    padding: 5px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Main Content Wrapper */
#main-content {
    padding: 16px;
}

header {
    padding: 40px 20px;
    background-color: var(--accent-pink);
    color: var(--text-color);
    border-bottom-left-radius: 50% 20px;
    border-bottom-right-radius: 50% 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

h1 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
}

.logo {
    height: 80px; /* Adjust as needed */
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

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

header h1 a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

p.tagline {
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: bold;
}

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

section {
    margin-bottom: 60px;
    scroll-margin-top: 80px; /* For smooth scrolling anchor offset */
}

h2 {
    font-size: 2rem;
    color: var(--accent-brown);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow images to wrap to next line */
    gap: 20px;      /* Space between images */
    min-height: 300px;
    background-color: var(--card-bg);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 40px;
    border: 5px dashed var(--accent-pink);
}

/* Gallery Image Styling */
.image-wrapper {
    position: relative;
    display: block;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.gallery img.lazy {
    filter: blur(10px);
    transition: filter 0.3s;
}

.gallery img {
    display: block;
    max-width: 100%;
    height: 100%; /* Fill wrapper */
    object-fit: cover; 
    filter: blur(0px);
    transition: filter 0.3s;
    
    /* Protection against saving/selecting */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Standard */
    pointer-events: none;        /* Ignores clicks/touches, passing them to parent (wrapper) */
}

/* Fallback for non-wrapped images if any */
.gallery > img {
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    
    -webkit-touch-callout: none;
    user-select: none;
    pointer-events: none;
}
.gallery > img:hover {
    transform: scale(1.02);
}

.watermarked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use dynamic URL generated by JS for custom font support */
    background-image: var(--watermark-url); 
    background-repeat: repeat;
    pointer-events: none;
    z-index: 10;
}

.placeholder-emoji {
    font-size: 6rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

/* About Me Section */
#about-me {
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 5px dashed var(--accent-pink);
    box-sizing: border-box;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    margin: 0;
    font-size: 1.1rem;
}

/* Famous People Gallery Section */
#famous-people {
    max-width: 1200px;
    margin: 0 auto 60px;
}

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

.about-image-wrapper {
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 5px dashed var(--accent-pink);
    padding: 20px;
    position: relative;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.about-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-image-tooltip {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    border-radius: 0 0 15px 15px;
    text-transform: none;
}

/* Responsive adjustments for famous people grid */
@media screen and (max-width: 768px) {
    .famous-people-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-image {
        height: 300px;
    }
    
    .about-content {
        padding: 20px 25px;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 600px) {
    .about-content p {
        font-size: 1rem;
    }
}

.commissions-gallery {
    min-height: 0;
    padding: 30px 40px 20px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

#commissions h3 {
    margin-top: 40px;
    margin-bottom: 0;
    font-size: 1.8rem;
    color: var(--accent-brown);
}
 
 /* Intro Container for side-by-side layout */
 .intro-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
 }

 .intro-container > section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0; /* Remove bottom margin since the container has it */
 }
 
 /* Event Map Section */
#events .event-map {
    background-color: var(--card-bg);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    border: 5px dashed var(--accent-pink);
    margin: 0 auto;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#events .event-map:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}

#events .event-map img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Welcome Image Section */
#welcome .welcome-image {
    background-color: var(--card-bg);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 20px;
    border: 5px dashed var(--accent-pink);
    margin: 0 auto 30px;
    max-width: 60%; /* Scaled up 20% from 50% */
}

#welcome .welcome-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}
 
 .socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-brown);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

.social-btn:hover {
    transform: scale(1.1) rotate(-3deg);
    background-color: var(--accent-pink);
    color: var(--text-color);
}

footer {
    background-color: white;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 5px solid var(--accent-pink);
}

.disclaimer {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #888;
    max-width: 800px;
    margin: 20px auto 0;
    padding: 20px;
    border-top: 1px solid #eee;
    text-transform: none; /* Disclaimer can be normal case for readability if needed, but keeping consistent for now */
}

/* Mobile Scaling */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .gallery {
        min-height: 200px;
    }

    .placeholder-emoji {
        font-size: 4rem;
    }

    .social-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}
