/* CSS Custom Properties - Dark Theme Only */
:root {
    --bg: #0a0a0a;
    --fg: #ffffff;
    --muted: #666666;
    --accent: #333333;
    --border: #1a1a1a;
    --overlay: rgba(0, 0, 0, 0.6);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Smooth scrolling with CSS */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

body {
    font-family: var(--font-stack);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Clean Modern Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--fg);
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.logo:hover img {
    opacity: 0.7;
}

.logo:focus {
    outline: none;
    opacity: 0.7;
}

.logo:focus img {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--fg);
    border-bottom-color: var(--fg);
}

.nav-links a:focus {
    outline: none;
    color: var(--fg);
    border-bottom-color: var(--fg);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: var(--transition);
}

.burger-line {
    width: 24px;
    height: 2px;
    background: var(--fg);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links.mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 0;
    margin: 0;
}

.nav-links.mobile.active {
    right: 0;
}

.nav-links.mobile a {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    padding: 1rem 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, #1a1a1a, #0a0a0a);
    z-index: 1;
    will-change: transform;
}

.hero-camera-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: auto;
    opacity: 0.25;
    filter: grayscale(100%);
    z-index: 1;
    will-change: transform;
}

@media (max-width: 768px) {
    .hero-camera-bg {
        width: 100%;
        height: 100vh;
        object-fit: cover;
        object-position: center;
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 100;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    opacity: 0;
    color: #ffffff;
    position: relative;
    animation: fadeInUp 1.2s ease 0.5s forwards;
    will-change: transform;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, transparent, #ffffff, transparent);
    transition: width 0.8s ease;
}

.hero-title.show-line::after {
    width: 80%;
}

.hero-title.scroll-fade {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title.scroll-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-title.scroll-fade::after {
    opacity: 0;
}

.hero-title.scroll-visible::after {
    opacity: 1;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fadeInUp 1s ease 1.2s forwards;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-10px); }
    60% { transform: rotate(45deg) translateY(-5px); }
}

/* Gallery Sections */
.gallery-section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 100;
    letter-spacing: 3px;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--muted);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Default center top */
    transition: var(--transition);
    filter: grayscale(100%);
}

/* Specific cropping for different gallery sections */
.portraits-gallery .gallery-item img {
    object-position: center top;
}

.street-gallery .gallery-item img {
    object-position: center center;
}

.landscape-gallery .gallery-item img {
    object-position: center center;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-item:focus {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

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

.gallery-info h3 {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Highlight of the Month Section */
.highlight-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.01) 0%, 
        rgba(255, 255, 255, 0.03) 100%);
}

.highlight-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.highlight-image {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-height: 500px;
}

.highlight-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.highlight-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    transition: var(--transition);
}

.highlight-image:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease 0.2s;
}

.highlight-overlay.animate {
    opacity: 1;
}

.highlight-content {
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.highlight-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 100;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--fg);
}

.highlight-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

@media (max-width: 768px) {
    .highlight-section {
        padding: 4rem 0;
    }
    
    .highlight-container {
        padding: 0 1rem;
    }
    
    .highlight-image {
        margin-bottom: 2rem;
    }
    
    .highlight-content {
        padding: 1rem;
    }
}

/* About Section */
.about-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 100;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 100;
    color: var(--fg);
    display: block;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Section */
.rotating-text {
    position: relative;
    height: 1.5em; 
    overflow: hidden;
    margin-bottom: 2rem;
}

.rotating-text::after {
    display: none; 
}

.text-option {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    white-space: nowrap;
    font-size: clamp(1.5rem, 4vw, 3rem);
    max-width: 90vw;
    text-align: center;
}

.text-option:not(.active) {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
}

.text-option.slide-out {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
}

/* Remove underline from section-title when it has rotating-text class */
.section-title.rotating-text::after {
    display: none;
}

/* Add responsive font sizing for mobile */
@media (max-width: 768px) {
    .text-option {
        font-size: clamp(1.2rem, 5vw, 2rem);
        white-space: normal;
        line-height: 1.2;
    }
    
    .rotating-text {
        height: auto;
        min-height: 2.5em;
    }
}

.contact-section {
    padding: 8rem 0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-link {
    position: relative;
    color: var(--muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--fg);
    border-color: var(--fg);
    transform: translateY(-5px);
}

.contact-link:focus {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

/* Footer */
.footer {
    padding: 2rem 1.2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

body.lightbox-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--fg);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close:focus,
.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .header.scrolled {
        padding: 0.8rem 0;
    }

    .nav {
        padding: 0 1.5rem;
    }

    .nav-links:not(.mobile) {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .contact-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev {
        left: 15px;
    }

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

@media (max-width: 480px) {
    .nav-links a {
        font-size: 0.75rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-element {
        display: none;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root {
        --border: rgba(255, 255, 255, 0.3);
        --glass-border: rgba(255, 255, 255, 0.4);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
        background-position: 200% 50%;
    }
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, transparent, #ffffff, transparent);
    transition: width 0.8s ease;
}