/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
}

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

/* Header styles */
.header {
    background: #fafafa;
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.title {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: #0f0f0f;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-feature-settings: 'liga' 1, 'kern' 1;
}

.subtitle {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 1.1rem;
    color: #666666;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-feature-settings: 'liga' 1, 'kern' 1;
    margin-bottom: 1.5rem;
}

.header-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.experience-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f0f0f;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.experience-link:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Main content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px); /* Ensure footer stays at bottom */
}

/* Footer styles */
.footer {
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.copyright {
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 0.85rem;
    color: #666666;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0;
}

/* Gallery grid - Masonry style */
.gallery {
    columns: 4;
    column-gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666666;
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    cursor: zoom-in;
    transition: transform 0.3s ease;
    transform-origin: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Better handling for horizontal images */
.modal-image.horizontal {
    max-width: 90vw;
    max-height: 85vh;
}

/* Better handling for vertical images */
.modal-image.vertical {
    max-width: 70vw;
    max-height: 90vh;
}

.modal-image.zoomed {
    cursor: grab;
    transform: scale(2);
}

.modal-image.zoomed:active {
    cursor: grabbing;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    margin: 0 20px;
    position: relative;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* When image is zoomed, adjust button positions */
.modal-image.zoomed ~ .modal-nav {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

/* Responsive design */
@media (max-width: 1200px) {
    .gallery {
        columns: 3;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2.2rem;
        letter-spacing: -0.01em;
    }
    
    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }
    
    .gallery {
        columns: 2;
        column-gap: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0 10px;
    }
    
    .close-btn {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    /* Mobile improvements for horizontal images */
    .modal-image.horizontal {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .modal-image.vertical {
        max-width: 85vw;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .gallery {
        columns: 1;
        column-gap: 0.5rem;
    }
    
    .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 1.8rem;
        letter-spacing: -0.005em;
    }
    
    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }
    
    /* Small screen improvements */
    .modal-content {
        padding: 10px;
    }
    
    .modal-image.horizontal {
        max-width: 98vw;
        max-height: 75vh;
    }
    
    .modal-image.vertical {
        max-width: 90vw;
        max-height: 80vh;
    }
    
    .footer {
        padding: 1rem 0;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
}

/* Smooth animations for gallery items */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for gallery items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }


 