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

body {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #1a4d4d;
    color: #f0f0f0;
    min-height: 100vh;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Landing Page */
.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background-image: url('newBack.jpg');
    background-size: cover;
    background-position: center;
}

.landing-logo {
    max-width: 360px;
    width: 80%;
    height: auto;
    cursor: pointer;
    padding: 3%;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
    transition: transform 0.4s ease-out;
    transform: scale(1);
}

.landing-logo:hover {
    transform: scale(1.15);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.01);
    }
}

/* Gallery Page */
.gallery-page {
    display: none;
}

.gallery-page.active {
    display: block;
    padding-bottom: 0;
    margin-bottom: 0;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding-top: 1.47rem;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 0.98rem;
    margin-top: 0;
    margin-bottom: 0;
    border-bottom: 3px solid #ff6b35;
}

.logo {
    max-width: 325px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0) 100%);
}

.face-img {
    max-width: 300px;
    width: 60%;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    background: linear-gradient(135deg, #4a6fa5 0%, #5a4fa5 100%);
    padding: 10px;
    box-shadow: 0 4px 20px rgba(74, 111, 165, 0.5);
    aspect-ratio: 1;
    object-fit: cover;
}

header h1 {
    font-size: 4.212rem;
    margin: 0;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
    text-align: center;
    flex: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.description {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.description p {
    font-size: 1rem;
    color: #f0f0f0;
    font-style: normal;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.description .commission {
    color: #ff8c5a;
    font-weight: 700;
    margin-top: 1rem;
}

.description .email {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Bio Section */
.bio-section {
    background: linear-gradient(135deg, rgba(57, 24, 83, 0.95) 0%, rgba(26, 77, 77, 0.9) 100%);
    padding-top: 4.32rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0;
    border-top: 3px solid #ff6b35;
    position: relative;
    overflow: hidden;
}

.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 111, 165, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bio-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bio-image {
    position: relative;
}

.bio-portrait {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 8px rgba(255, 107, 53, 0.2),
        0 0 0 16px rgba(255, 107, 53, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    aspect-ratio: 1;
    object-fit: cover;
}

.bio-portrait:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 8px rgba(255, 107, 53, 0.4),
        0 0 0 16px rgba(255, 107, 53, 0.2);
}

.bio-content {
    padding: 1rem 0;
}

.bio-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ff6b35;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.bio-subtitle {
    font-size: 1.5rem;
    color: #ff8c5a;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.bio-description {
    margin-bottom: 2rem;
    font-weight: 700;
}

.bio-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.bio-description .highlight {
    color: #ff6b35;
    font-weight: 700;
    position: relative;
}

.bio-tagline {
    font-style: italic;
    color: #b0b0b0;
    font-size: 1rem;
    margin-top: 1.5rem;
}

.bio-status {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 107, 53, 0.15);
    border: 2px solid #ff6b35;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.6);
    }
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.status-text {
    color: #ff6b35;
    font-weight: 700;
    font-size: 1.1rem;
}

.bio-contact {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    border: 3px solid #ff6b35;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.contact-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
}

.gallery-header {
    text-align: center;
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}


/* Footer */
footer {
    text-align: left;
    padding: 3rem 0 3rem 0;
    background-color: #391853;
    border-top: 3px solid #ff6b35;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

footer .face-img {
    max-width: 200px;
    width: 200px;
    margin: 0;
    flex-shrink: 0;
    background: none;
    padding: 0;
    box-shadow: none;
}

footer .description {
    max-width: 800px;
    margin: 0;
    flex: 1;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Gallery Grid - Masonry/Chaotic Layout */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #1a1a1a;
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

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

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.site-footer .version {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    user-select: none;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    user-select: none;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-btn.prev {
    left: 20px;
}

.nav-btn.next {
    right: 20px;
}

/* Caption */
.caption {
    display: none;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
}

.scroll-to-top:active {
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .gallery-item {
        margin-bottom: 1rem;
    }

    .landing-logo {
        max-width: 500px;
        width: 85%;
    }

    .logo {
        max-width: 234px;
        width: 39%;
    }

    .face-img {
        max-width: 250px;
        width: 70%;
    }

    footer .face-img {
        max-width: 150px;
        width: 150px;
    }

    .footer-container {
        gap: 1.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .description p {
        font-size: 0.95rem;
    }

    .nav-btn {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .close {
        font-size: 30px;
        right: 20px;
        top: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    /* Bio Section Responsive */
    .bio-section {
        padding: 3rem 1.5rem;
    }

    .bio-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .bio-title {
        font-size: 2.5rem;
        letter-spacing: -2px;
    }

    .bio-subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .bio-description p {
        font-size: 1rem;
    }

    .status-text {
        font-size: 1rem;
    }

    .contact-button {
        font-size: 1rem;
        padding: 0.85rem 1.75rem;
    }

    .gallery-header {
        font-size: 2rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 0;
        margin-bottom: 0;
        gap: 1rem;
    }

    .logo {
        max-width: 260px;
    }

    header h1 {
        font-size: 2.34rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
        column-gap: 0.5rem;
    }

    .gallery-item {
        margin-bottom: 0.5rem;
    }

    .landing-logo {
        max-width: 400px;
        width: 90%;
    }

    .logo {
        max-width: 140px;
        width: 42%;
    }

    .face-img {
        max-width: 200px;
        width: 80%;
    }

    footer .face-img {
        max-width: 120px;
        width: 120px;
    }

    footer {
        padding: 2rem 0 2rem 0;
    }

    .footer-container {
        padding: 0 1rem;
        text-align: left;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    footer .description {
        flex: none;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .description {
        padding: 0.5rem;
    }

    .description p {
        font-size: 0.85rem;
    }

    .description .email {
        font-size: 0.95rem;
    }

    .nav-btn.prev {
        left: 10px;
    }

    .nav-btn.next {
        right: 10px;
    }

    /* Bio Section Small Screen */
    .bio-section {
        padding: 2rem 1rem;
    }

    .bio-container {
        gap: 1.5rem;
    }

    .bio-image {
        max-width: 250px;
    }

    .bio-title {
        font-size: 2rem;
        letter-spacing: -1px;
        text-align: center;
    }

    .bio-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
        text-align: center;
    }

    .bio-description {
        text-align: center;
    }

    .bio-description p {
        font-size: 0.9rem;
    }

    .bio-tagline {
        font-size: 0.85rem;
    }

    .bio-status {
        text-align: center;
    }

    .status-badge {
        padding: 0.6rem 1.2rem;
    }

    .status-text {
        font-size: 0.9rem;
    }

    .bio-contact {
        text-align: center;
    }

    .contact-button {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }

    .gallery-header {
        font-size: 1.75rem;
    }

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .bio-contact {
        justify-content: center;
        gap: 1rem;
    }

    header {
        flex-direction: column;
        padding-top: 1.25rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-bottom: 0;
        margin-bottom: 0;
        gap: 0.75rem;
    }

    .logo {
        max-width: 208px;
    }

    header h1 {
        font-size: 1.638rem;
    }
}
