/* ===========================
   AA Photography Portfolio
   Dark Minimalist Aesthetic
   =========================== */

:root {
    --bg: #0a0a0a;
    --bg-elevated: #121212;
    --bg-card: #1a1a1a;
    --text: #f0f0f0;
    --text-dim: #888888;
    --text-faint: #555555;
    --accent: #c9a96e;
    --accent-glow: rgba(201, 169, 110, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Manrope', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-faint); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===========================
   Loader
   =========================== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-family: var(--serif);
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--accent);
    display: flex;
    gap: 0.3em;
}

.loader-text span {
    opacity: 0;
    animation: loaderFade 0.6s var(--ease) forwards;
}

.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.3s; }

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

.loader-bar {
    width: 120px;
    height: 1px;
    background: var(--border);
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: translateX(-100%);
    animation: loaderBar 1.5s var(--ease) forwards;
    animation-delay: 0.4s;
}

@keyframes loaderBar {
    to { transform: translateX(0); }
}

/* ===========================
   Custom Cursor
   =========================== */
.cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s var(--ease);
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s var(--ease);
}

.cursor.hovering {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
    background: var(--accent-glow);
}

@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
}

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-logo-mark {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text);
    line-height: 1;
}

.nav-logo-sub {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-dim);
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    z-index: 1001;
}

.nav-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

.nav-menu-btn.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-menu-btn.active span:nth-child(2) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; cursor: pointer; }
    .nav-inner { padding: 0 24px; }
}

/* ===========================
   Mobile Menu
   =========================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    margin: 32px 0;
}

.mobile-menu a {
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text);
    letter-spacing: 0.05em;
    transition: color 0.3s var(--ease);
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ===========================
   Hero
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    animation: heroZoom 20s var(--ease) infinite alternate;
}

@keyframes heroZoom {
    to { transform: scale(1.2); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.6) 0%,
        rgba(10, 10, 10, 0.3) 40%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-tag .line {
    width: 48px;
    height: 1px;
    background: var(--accent);
}

.hero-tag span:last-child {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.hero-title span {
    display: inline-block;
    margin-right: 0.2em;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 480px;
    margin-bottom: 64px;
    letter-spacing: 0.02em;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scrollDown 2s var(--ease) infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

@media (max-width: 768px) {
    .hero-content { padding: 0 24px; }
    .hero-subtitle { margin-bottom: 48px; }
}

/* ===========================
   Reveal Animations
   =========================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-side {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal-side.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero reveal on load */
.hero .reveal-up,
.hero .reveal-text {
    opacity: 0;
}

.hero.loaded .reveal-up,
.hero.loaded .reveal-text {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Stats
   =========================== */
.stats {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

@media (max-width: 768px) {
    .stats-inner {
        flex-wrap: wrap;
        gap: 24px;
        padding: 0 24px;
    }
    .stat-item { flex: 1 1 40%; }
    .stat-divider { display: none; }
    .stat-num { font-size: 2.2rem; }
}

/* ===========================
   Section Headers
   =========================== */
.section-num {
    display: block;
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 480px;
}

/* ===========================
   Work / Gallery
   =========================== */
.work {
    padding: 120px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

.work .section-header {
    margin-bottom: 64px;
    text-align: center;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    padding: 10px 24px;
    cursor: none;
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.filter-btn.active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: none;
    background: var(--bg-card);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
    filter: brightness(0.85) contrast(1.05);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.5) contrast(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
    background: linear-gradient(to top, rgba(10,10,10,0.9), transparent 60%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-cat {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.gallery-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 4px;
}

.gallery-loc {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 10px;
    }
    .gallery-item-tall { grid-row: span 1; }
    .gallery-item-wide { grid-column: span 2; }
    .work { padding: 80px 24px; }
    .gallery-filters { gap: 6px; }
    .filter-btn { padding: 8px 16px; font-size: 0.75rem; }
}

/* ===========================
   Lightbox
   =========================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

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

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--border);
}

.lightbox-info {
    text-align: center;
    margin-top: 20px;
}

.lightbox-info h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 4px;
}

.lightbox-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    cursor: none;
    color: var(--text-dim);
    z-index: 10000;
    transition: color 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent);
}

.lightbox-close {
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 1.5px;
    background: currentColor;
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
}

.lightbox-prev { left: 32px; }
.lightbox-next { right: 32px; }

.lightbox-prev::before {
    content: '';
    width: 20px;
    height: 20px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}

.lightbox-next::before {
    content: '';
    width: 20px;
    height: 20px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-close { top: 16px; right: 16px; }
}

/* ===========================
   About
   =========================== */
.about {
    padding: 120px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: grayscale(0.3) contrast(1.05);
    position: relative;
    z-index: 2;
}

.about-image-frame {
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    border: 1px solid var(--accent);
    z-index: 1;
    transition: all 0.6s var(--ease);
}

.about-image:hover .about-image-frame {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
}

.about-lead {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 32px;
}

.about-body {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.about-tags span {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.about-tags span:hover {
    color: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .about { padding: 80px 0; }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }
    .about-image { max-width: 320px; margin: 0 auto; }
}

/* ===========================
   Contact
   =========================== */
.contact {
    padding: 160px 0;
    text-align: center;
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact .section-num { text-align: center; }

.contact-lead {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    display: inline-block;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.01em;
    position: relative;
    transition: color 0.3s var(--ease);
    margin-bottom: 64px;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border);
    transition: background 0.3s var(--ease);
}

.contact-email:hover {
    color: var(--accent);
}

.contact-email:hover::after {
    background: var(--accent);
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
}

.social-link:hover {
    color: var(--accent);
}

.social-link span {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .contact { padding: 100px 0; }
    .contact-inner { padding: 0 24px; }
    .contact-socials { gap: 20px; }
}

/* ===========================
   Footer
   =========================== */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.footer-credit {
    font-style: italic;
    font-family: var(--serif);
    font-size: 0.85rem;
    color: var(--text-faint);
}
