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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #1a1a1a;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.nav-right {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #1a1a1a;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 1px;
    background: #1a1a1a;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: white;
    opacity: 0.6;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.2; }
}

/* Section Styles */
.section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    text-align: center;
    color: #1a1a1a;
}

/* Biography Section */
.biography-section {
    background: white;
}

.content-wrapper {
    text-align: center;
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* Portfolio Section */
.portfolio-section {
    background: #fafafa;
    padding: 6rem 0;
}

.portfolio-section .section-container {
    max-width: 1200px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.portfolio-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: white;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 3rem 2rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Albums Grid Layout */
.albums-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    position: static !important;
    height: auto !important;
}

.album-item {
    position: relative !important;
    cursor: pointer;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    left: auto !important;
    top: auto !important;
    width: auto !important;
}

.album-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.album-cover {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    transform: translateY(15px);
    transition: transform 0.3s ease;
}

.album-item:hover .album-overlay {
    transform: translateY(0);
}

.album-overlay h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}

.album-overlay p {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* Masonry Grid Layout */
.masonry-grid {
    position: relative;
    width: 100%;
}

.masonry-item {
    position: absolute;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.masonry-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay h4 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Portfolio Header */
.portfolio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #1a1a1a;
}

.back-to-albums-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.back-to-albums-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Thoughts Section */
.thoughts-section {
    background: white;
}

.thoughts-content {
    max-width: 600px;
    margin: 0 auto;
}

.thought-item {
    margin-bottom: 4rem;
    text-align: left;
}

.thought-item h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.thought-item p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    font-weight: 300;
    margin-bottom: 1rem;
}

.thought-item time {
    font-size: 0.9rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-section {
    background: #fafafa;
}

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

.contact-info p {
    font-size: 1.1rem;
    color: #4a4a4a;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-link {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.social-links {
    margin-top: 2rem;
}

.social-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

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

/* Footer */
.main-footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    color: #888;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: calc(100vw - 160px);
    height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(250, 250, 250, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-right.mobile-active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-container {
        padding: 0 1rem;
        height: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-container {
        padding: 4rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        aspect-ratio: 1;
    }

    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .portfolio-header h3 {
        font-size: 1.3rem;
    }
    
    .bio-content p,
    .contact-info p,
    .thought-item p {
        font-size: 1rem;
    }
    
    .thought-item h3 {
        font-size: 1.3rem;
    }
    
    .lightbox-content {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        padding: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-caption {
        bottom: 10px;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-container {
        padding: 3rem 1rem;
    }
    
    .portfolio-grid {
        gap: 1rem;
    }

    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .album-overlay h3 {
        font-size: 1rem;
    }

    .album-overlay p {
        font-size: 0.75rem;
    }

    .lightbox-content {
        width: calc(100vw - 20px);
        height: calc(100vh - 80px);
        padding: 10px;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}