/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Courier Prime", "Courier New", monospace;
    background-color: #fff5f7;
    color: #4a3645;
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #e8a5b8;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

p {
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid #f8d7e3;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    transition: color 0.3s;
}

nav a:hover {
    color: #e8a5b8;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

section {
    padding: 4rem 0;
    background-color: #ffe8fc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 200 200'%3E%3Cpolygon fill='%23F9EEFA' points='100 0 0 100 100 100 100 200 200 100 200 0'/%3E%3C/svg%3E");
}

#home {
    padding: 5rem 0;
}

.hero-content {
    max-width: 48rem;
}

.hero-content p {
    color: #8b6b7f;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    cursor: pointer;
}

.image-wrapper {
    position: relative;
    aspect-ratio: 1;
    background: white;
    border-radius: 1rem;
    border: 2px solid #f8d7e3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

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

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

.hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s;
}

.image-wrapper:hover .hover-overlay {
    background-color: rgba(255, 255, 255, 0.5);
}

.gallery-item p {
    color: #8b6b7f;
}

/* About Section */
.about-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 2px solid #f8d7e3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portrait-frame {
    position: relative;
    max-width: 24rem;
    margin: 0 auto;
    width: 100%;
}

.frame-bg-1 {
    position: absolute;
    inset: -1rem;
    background: linear-gradient(to bottom right, #e8a5b8, #ffc4d6, #ffe4ed);
    border-radius: 1.5rem;
    transform: rotate(3deg);
}

.frame-bg-2 {
    position: absolute;
    inset: -1rem;
    background: white;
    border-radius: 1.5rem;
    transform: rotate(-2deg);
}

.frame-inner {
    position: relative;
    background: white;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 4px solid #e8a5b8;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.frame-inner img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

.about-text p {
    color: #8b6b7f;
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
#contact {
    margin-bottom: 3rem;
}

.contact-card {
    max-width: 48rem;
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 2px solid #f8d7e3;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-intro {
    color: #8b6b7f;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
}

.contact-info .label {
    color: #8b6b7f;
}

.contact-info a {
    color: #e8a5b8;
    transition: all 0.3s;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 87%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 72rem;
    max-height: 100%;
}

.lightbox-image-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 4px solid #e8a5b8;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.lightbox-image-wrapper img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 1rem;
    display: block;
}

.lightbox-info {
    text-align: center;
    margin-top: 1rem;
    color: white;
}

.lightbox-info h3 {
    color: white;
    margin-bottom: 0.25rem;
}

.lightbox-info p {
    color: #8b6b7f;
}

.lightbox-info p:last-child {
    font-size: 0.875rem;
    opacity: 0.75;
    margin-top: 0.5rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: color 0.3s;
    padding: 0.5rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #e8a5b8;
}

.lightbox-close {
    top: -3rem;
    right: 0;
}

.lightbox-prev {
    left: -4rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -4rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #e8a5b8;
    color: white;
    border: 4px solid white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 500;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: #ffc4d6;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.5);
    border-top: 2px solid #f8d7e3;
    padding: 2rem 0;
    margin-top: auto;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

footer p {
    color: #8b6b7f;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #8b6b7f;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e8a5b8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav ul {
        gap: 1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
}
