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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f4f4f4;
}

/* Visible focus indicators */
*:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    display: flex;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    padding: 30px 20px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e0e0e0;
}

.profile-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.sidebar h1 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: #2c3e50;
}

.sidebar .subtitle {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 25px;
}

.sidebar nav {
    flex: 1;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
    text-align: center;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #555;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.sidebar nav ul li {
    margin-bottom: 10px;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.sidebar nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.sidebar nav ul li a:hover {
    color: #667eea;
    background-color: #f8f9fa;
    transform: scale(1.05);
}

.sidebar nav ul li a:hover::after {
    width: 80%;
}

.video-container {
    width: 180px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid #f0f0f0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    margin-left: 250px;
    padding: 0;
    width: calc(100% - 250px);
    background-color: #f8f9fa;
}

.content section {
    padding: 30px 40px;
    border-bottom: 1px solid #e0e0e0;
}

.content section:last-of-type {
    border-bottom: none;
}

h2 {
    margin-bottom: 5px;
    font-size: 1.5em;
    color: #2c3e50;
}

section > p {
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.95em;
}

/* Image gallery container with scroll controls */
.gallery-container {
    position: relative;
    margin: 0 -40px;
    padding: 0 40px;
}

.gallery-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

.gallery-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.gallery-scroll-wrapper::-ms-overflow-style {
    display: none;
}

.image-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-template-rows: 1fr;
    gap: 15px;
    width: max-content;
    padding: 0 25px;
}

.image-grid img,
.image-grid video {
    width: 200px;
    height: 180px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.image-grid img:hover,
.image-grid video:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.video-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.video-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    pointer-events: none;
    z-index: 2;
}

/* Elegant scroll navigation buttons - bigger, only show when needed */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 180px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #555;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
}

.gallery-nav.visible {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.gallery-nav:hover {
    color: #667eea;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.gallery-nav:hover::after {
    width: 70%;
}

.gallery-nav.left {
    left: 0;
}

.gallery-nav.right {
    right: 0;
}

.commissions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.commission-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.commission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.commission-card h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.commission-card .price {
    color: #667eea;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 12px;
}

.commission-card p {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin-top: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    list-style: none;
    position: relative;
    padding-right: 50px;
    transition: all 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
    color: #667eea;
    background-color: #f8f9fa;
}

.faq-item p {
    padding: 20px;
    color: #555;
    line-height: 1.7;
    margin: 0;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item[open] summary {
    border-bottom: 1px solid #e0e0e0;
}

.contact-form {
    max-width: 550px;
    margin-top: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95em;
    font-family: inherit;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.lightbox .close:hover {
    color: #667eea;
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 3rem;
    text-decoration: none;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s, transform 0.3s, opacity 0.3s;
    z-index: 1001;
    opacity: 1;
}

.lightbox .nav.flash {
    animation: flashArrows 1.5s ease-in-out;
}

@keyframes flashArrows {
    0%, 100% {
        color: #fff;
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        color: #667eea;
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
}

.lightbox .nav:hover {
    color: #667eea;
    transform: translateY(-50%) scale(1.1);
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

#lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-media img,
#lightbox-media video,
#lightbox-media iframe {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 4px;
}

#lightbox-media iframe {
    width: 90vw;
    height: 75vh;
    border: none;
}

#lightbox-media video {
    object-fit: contain;
}

/* Zoom button */
.zoom-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1001;
}

.zoom-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    transform: scale(1.1);
}

.zoom-btn.active {
    background: #667eea;
    border-color: #667eea;
}

/* Zoomed state for lightbox media */
.lightbox-content.zoomed #lightbox-media img,
.lightbox-content.zoomed #lightbox-media video {
    cursor: zoom-out;
    max-width: none;
    max-height: none;
    transform: scale(2);
    transition: transform 0.3s ease;
}

.lightbox-content.zoomed #lightbox-media {
    overflow: auto;
    max-width: 100vw;
    max-height: 85vh;
}

/* Spinner/loader for lightbox */
.lightbox-loader {
    display: none;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.lightbox-loader.active {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-info {
    margin-top: 15px;
    color: #fff;
    text-align: center;
    max-width: 800px;
}

.lightbox-info h3 {
    font-size: 1.3em;
    margin-bottom: 6px;
}

.lightbox-info p {
    color: #ccc;
    font-size: 0.95em;
}

.lightbox-link {
    display: none;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #fff;
    color: #667eea;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lightbox-link.visible {
    display: inline-flex;
}

.lightbox-link:hover {
    color: #667eea;
    background-color: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

footer {
    text-align: center;
    padding: 15px 50px;
    font-size: 0.85em;
    color: #95a5a6;
    background-color: #f8f9fa;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }
    
    .content {
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px 15px;
    }
    
    .profile-placeholder {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .sidebar h1 {
        font-size: 1.1em;
    }
    
    .sidebar .subtitle {
        font-size: 0.75em;
        margin-bottom: 15px;
    }
    
    .sidebar nav {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .sidebar nav ul {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .sidebar nav ul li {
        margin-bottom: 0;
    }
    
    .sidebar nav ul li a {
        font-size: 0.85em;
        padding: 6px 12px;
    }

    .social-links {
        gap: 10px;
        margin-bottom: 15px;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .video-container {
        width: 120px;
        height: 80px;
        margin-top: 10px;
    }
    
    .content {
        margin-left: 0;
        width: 100%;
    }
    
    .content section {
        padding: 25px 15px;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    section > p {
        font-size: 0.9em;
    }
    
    .gallery-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        grid-template-rows: repeat(2, 1fr);
        gap: 10px;
        padding: 0 20px;
    }
    
    .image-grid img,
    .image-grid video {
        width: 140px;
        height: 140px;
    }
    
    .gallery-scroll-wrapper {
        mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
    }
    
    .gallery-nav {
        width: 40px;
        height: 140px;
        font-size: 1.2rem;
    }
    
    .commissions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-container {
        margin-top: 15px;
    }

    .faq-item summary {
        padding: 12px 15px;
        padding-right: 45px;
        font-size: 0.95em;
    }

    .faq-item p {
        padding: 0 15px 15px 15px;
        font-size: 0.9em;
    }

    .contact-form {
        max-width: 100%;
    }
    
    /* Hide arrows on mobile, keep close button */
    .lightbox .nav {
        display: none;
    }
    
    .lightbox .close {
        font-size: 2.5rem;
        top: 15px;
        right: 20px;
    }
    
    #lightbox-media iframe,
    #lightbox-media video {
        width: 95vw;
        height: 55vh;
    }
    
    #lightbox-media img {
        max-height: 70vh;
    }
    
    .lightbox-info {
        margin-top: 10px;
        padding: 0 15px;
    }
    
    .lightbox-info h3 {
        font-size: 1.1em;
    }
    
    .lightbox-info p {
        font-size: 0.85em;
    }
    
    footer {
        padding: 15px 20px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
        padding: 0 15px;
    }
    
    .image-grid img,
    .image-grid video {
        width: 120px;
        height: 120px;
    }
    
    .video-item::before {
        width: 40px;
        height: 40px;
    }
    
    .video-item::after {
        border-left-width: 12px;
        border-top-width: 8px;
        border-bottom-width: 8px;
    }
    
    .gallery-scroll-wrapper {
        mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
    }
    
    .gallery-nav {
        width: 36px;
        height: 120px;
        font-size: 1rem;
    }
    
    .lightbox .close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    #lightbox-media iframe,
    #lightbox-media video {
        width: 98vw;
        height: 50vh;
    }
    
    #lightbox-media img {
        max-height: 60vh;
    }
}
