/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Darker, inspired Color Palette */
:root {
    --dark-background: #251c1a;
    --card-background: #3e302e;
    --text-primary: #ede0d9;
    --text-secondary: #8a7b78;
    --accent: #e09253;
}

body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 20px;
    background-color: var(--dark-background);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--text-primary);
}

header {
    background-color: var(--card-background);
    border-radius: 25px;
    padding: 20px;
    width: clamp(300px, 90%, 1000px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    box-sizing: border-box;
}

header h1 {
    font-size: clamp(2.5em, 5vw, 4em);
    color: var(--accent);
    letter-spacing: -2px;
    margin: 0 auto;
}

.description p {
    font-size: clamp(0.9em, 2vw, 1.1em);
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

.main-content-grid {
    display: grid;
    width: clamp(300px, 90%, 1000px);
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto auto;
    gap: 20px;
    box-sizing: border-box;
}

.main-photo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-background);
    height: 100%;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.about {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background-color: var(--card-background);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.about h2 {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.about-information p {
    font-size: clamp(0.9em, 1.5vw, 1em);
    line-height: 1.6;
    text-align: justify;
    color: var(--text-primary);
    margin-bottom: 20px;
    height: 100%;
}

.links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    margin: auto;
}

.link {
    background-color: var(--dark-background);
    border: 1px solid var(--text-secondary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    color: var(--text-primary);
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.link:hover {
    background-color: var(--accent);
    color: var(--dark-background);
}

.contact {
    background-color: var(--card-background);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;

    /* 🔑 Add this line to match widths with other sections */
    width: clamp(300px, 90%, 1000px);
}


.contact h2 {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 15px;
}

.contact p {
    font-size: clamp(0.9em, 1.5vw, 1em);
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid var(--text-secondary);
    font-family: inherit;
    font-size: 1em;
    background-color: var(--dark-background);
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 146, 83, 0.35);
    /* accent glow */
}

.contact-form button {
    padding: 12px 20px;
    background-color: var(--accent);
    color: var(--dark-background);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
    background-color: var(--text-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}


/* Works Section */
.works {
    width: clamp(300px, 90%, 1000px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    /* cleaner edges */
}

/* Responsive YouTube embed */
.media-video {
    background-color: var(--card-background);
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    padding: 12px;
}

.media-video iframe {
    width: 100%;
    display: block;
    border: 0;
    border-radius: 16px;

    /* more height without breaking layout */
    height: clamp(320px, 56vw, 680px);
}

/* Bento grid (3 tiles) */
.bento {
    display: grid;
    gap: 20px;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 180px;
    grid-template-areas:
        "a b"
        "a c";
}

.bento-item {
    background-color: var(--card-background);
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    position: relative;
    isolation: isolate;
}

.bento-item::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 25px;
    pointer-events: none;
    transition: border-color 200ms ease;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 240ms ease, filter 240ms ease;
    will-change: transform;
}

.bento-item:hover img {
    transform: scale(1.04);
    filter: contrast(1.03) saturate(1.05);
}

.bento-item:hover::after {
    border-color: var(--accent);
}

/* Areas */
.bento .a {
    grid-area: a;
}

.bento .b {
    grid-area: b;
}

.bento .c {
    grid-area: c;
}

/* Lightbox (fullscreen) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    /* toggled by JS */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 4vmin;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}

.lb-btn {
    position: absolute;
    background: rgba(37, 28, 26, .6);
    /* uses your dark bg tone vibe */
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
    border-radius: 12px;
    padding: .6rem .8rem;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: background 150ms ease, transform 150ms ease;
}

.lb-btn:hover {
    background: var(--card-background);
    transform: scale(1.05);
}

.lb-close {
    top: 20px;
    right: 20px;
}

.lb-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lb-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Footer Styles */
.footer {
    width: clamp(300px, 90%, 1000px);
    background-color: var(--dark-background);
    color: var(--text-primary);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1em;
    padding: 0 15px;
    transition: color 0.3s ease;
}

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

.footer-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9em;
    line-height: 1.2;
    color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .main-photo {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 300px;
    }

    .about {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .contact {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        grid-template-areas:
            "a"
            "b"
            "c";
    }
}

@media (max-width: 500px) {
    body {
        padding: 15px;
        gap: 15px;
    }

    header,
    .main-content-grid,
    .works {
        width: 100%;
    }

    .about,
    .contact {
        padding: 15px;
        border-radius: 15px;
    }

    .main-photo {
        height: 200px;
    }

    .media-video {
        padding: 8px;
        border-radius: 15px;
    }

    .media-video iframe {
        border-radius: 10px;
    }

    .lb-btn {
        padding: .45rem .6rem;
        font-size: 1rem;
    }

    .bento {
        gap: 12px;
    }

    .bento-item {
        border-radius: 15px;
    }
}