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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.01em;
}

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

/* Navigation */
.navbar {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 20px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 2px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.15em;
    color: #1a1a1a;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    cursor: pointer;
    background-color: #f8f8f8;
    border-radius: 2px;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.gallery-item:hover .overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.zoom-icon {
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .zoom-icon {
    opacity: 1;
}

/* Instructions */
.instructions {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 60px;
}

.instructions h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.instructions p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.instructions ol {
    font-size: 14px;
    color: #666;
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
}

.instructions code {
    background-color: #e5e5e5;
    padding: 2px 6px;
    border-radius: 2px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
}

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 0.6;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
}

.close:hover {
    opacity: 0.6;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.nav-btn {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
    pointer-events: all;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.6;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .main-content {
        padding: 40px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .instructions {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
}



/* Video Placeholder Styles */
.video-placeholder {
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder-content {
    text-align: center;
    color: white;
}

.play-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.video-placeholder-content p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.video-placeholder-content small {
    font-size: 12px;
    opacity: 0.7;
}

/* Video in lightbox */
#lightbox-video {
    max-width: 100%;
    max-height: 100%;
}

/* Code block styling */
pre {
    background-color: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin-top: 12px;
}

pre code {
    background-color: transparent;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
}


/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.about-text h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 32px 0 16px 0;
    color: #1a1a1a;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #4a4a4a;
}

.specializations {
    list-style: none;
    padding: 0;
}

.specializations li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #4a4a4a;
}

.specializations li:last-child {
    border-bottom: none;
}

.credentials {
    background-color: #f9f9f9;
    padding: 24px;
    border-radius: 8px;
    margin-top: 32px;
}

.credentials p {
    margin-bottom: 12px;
    font-size: 15px;
}

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

.about-image {
    text-align: center;
}

.portrait {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.image-caption {
    margin-top: 20px;
}

.image-caption p {
    font-style: italic;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #4a4a4a;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.contact-item a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #666;
}

.availability h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.availability p {
    font-size: 15px;
    margin-bottom: 12px;
    color: #4a4a4a;
}

.availability ul {
    list-style: none;
    padding: 0;
}

.availability li {
    padding: 6px 0;
    color: #4a4a4a;
    font-size: 14px;
}

.availability li:before {
    content: "•";
    color: #1a1a1a;
    margin-right: 12px;
}

/* Contact Form Styles */
.contact-form-container {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
    color: #1a1a1a;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

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

.submit-btn {
    background-color: #1a1a1a;
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    background-color: #333;
}

.form-note {
    font-size: 12px;
    color: #666;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Responsive Design for About and Contact */
@media (max-width: 768px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-container {
        padding: 24px;
    }
    
    .about-text h2,
    .contact-info h2 {
        font-size: 24px;
    }
}


/* Video Gallery Items */
.gallery-item.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.video-item:hover video {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.gallery-item.video-item .overlay .zoom-icon {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Video in lightbox styling */
#lightbox-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Ensure video thumbnails autoplay on hover */
.gallery-item.video-item:hover video {
    opacity: 0.9;
}

/* Enhanced Mobile Video Responsiveness */
@media screen and (max-width: 768px) {
    .gallery-item.video-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .gallery-item.video-item {
        /* Remove fixed height - let it use the same aspect-ratio as photos */
        aspect-ratio: 4/5;
        overflow: hidden;
    }
    
    .gallery-item.video-item:hover video {
        transform: scale(1.02);
        transition: transform 0.2s ease;
    }
    
    /* Optimize video overlay for mobile */
    .gallery-item.video-item .overlay .zoom-icon {
        font-size: 20px;
    }
    
    /* Lightbox video mobile optimization */
    #lightbox-video {
        max-width: 95%;
        max-height: 80%;
        object-fit: contain;
    }
    
    .lightbox-content {
        padding: 10px;
        width: 95%;
        height: 95%;
    }
}

@media screen and (max-width: 480px) {
    .gallery-item.video-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .gallery-item.video-item {
        /* Maintain same aspect ratio as photos on small screens */
        aspect-ratio: 4/5;
    }
    
    .gallery-item.video-item .overlay .zoom-icon {
        font-size: 18px;
    }
    
    /* Further optimize for very small screens */
    #lightbox-video {
        max-width: 98%;
        max-height: 75%;
    }
}


/* Mobile Touch Video Preview Enhancements */
@media screen and (max-width: 768px) {
    .gallery-item.video-item {
        position: relative;
    }
    
    /* Add subtle hint for mobile video interaction */
    .gallery-item.video-item::after {
        content: "Hold to preview";
        position: absolute;
        bottom: 8px;
        left: 8px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 500;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 10;
    }
    
    /* Show hint on first touch */
    .gallery-item.video-item.show-hint::after {
        opacity: 1;
    }
    
    /* Enhanced touch feedback */
    .gallery-item.video-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Video playing state indicator */
    .gallery-item.video-item.playing::before {
        content: "●";
        position: absolute;
        top: 8px;
        right: 8px;
        color: #ff4444;
        font-size: 12px;
        z-index: 10;
        animation: pulse 1s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
    
    /* Improve touch target size */
    .gallery-item.video-item .overlay {
        min-height: 44px; /* iOS recommended touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop-specific enhancements */
@media screen and (min-width: 769px) {
    .gallery-item.video-item:hover::after {
        content: "Hover to preview";
        position: absolute;
        bottom: 8px;
        left: 8px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 500;
        opacity: 0.8;
        pointer-events: none;
        z-index: 10;
    }
}


/* Apple-style video loading and buffering states */
.gallery-item.video-item.buffering {
    position: relative;
}

.gallery-item.video-item.buffering::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced touch feedback */
.gallery-item.video-item.touch-active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Buffering hint for users */
.gallery-item.video-item.buffering::after {
    content: 'Loading...';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    z-index: 11;
    pointer-events: none;
}

/* Optimized video performance */
.gallery-item.video-item video {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Enhanced playing state indicator */
.gallery-item.video-item.playing::before {
    content: '●';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff4444;
    font-size: 12px;
    animation: pulse 1s infinite;
    z-index: 10;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Mobile-specific optimizations */
@media screen and (max-width: 768px) {
    .gallery-item.video-item.buffering::before {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
        border-width: 1.5px;
    }
    
    .gallery-item.video-item.buffering::after {
        font-size: 9px;
        padding: 3px 6px;
        bottom: 8px;
    }
    
    /* Faster transitions for mobile */
    .gallery-item.video-item {
        transition: transform 0.08s ease;
    }
    
    /* Optimize video rendering on mobile */
    .gallery-item.video-item video {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* Preloading hint for first-time users */
.gallery-item.video-item.show-hint::after {
    content: 'Hold to preview';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    z-index: 12;
    pointer-events: none;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* Performance optimizations for smooth scrolling */
.gallery-grid {
    contain: layout style paint;
}

.gallery-item {
    contain: layout style paint;
}

