/* ============================================================
   COMMON GLOBAL STYLES (USED ON ALL PAGES)
   ============================================================ */
   :root {
    --dark: #0a0a0a;
    --darker: #050505;
    --light: #111;
    --lighter: #1a1a1a;
    --accent: #e63946;
    --secondary: #457b9d;
    --text: #e1e1e1;
    --text-light: #aaa;
    --border: #333;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--dark);
}

/* Header layout used on all pages */
.photographer-header {
    background-color: var(--darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aperture-spin {
    width: 50px;
    height: 50px;
    transition: transform 0.8s ease;
}
.aperture-spin:hover {
    transform: rotate(180deg);
}

.logo-text h1 {
    color: var(--text);
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin: 0;
    font-weight: 600;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Nav bar links */
.photographer-nav {
    display: flex;
    gap: 2rem;
}
.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}
.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}
.nav-link:hover {
    color: var(--accent);
}

.cta-button {
    background-color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: white;
}
.cta-button:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.3);
}

/* ============================================================
   HOME PAGE STYLES
   ============================================================ */

/* Hero Section */
.hero-section {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-blend-mode: overlay;
}

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

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.scroll-down {
    display: block;
    margin-top: 4rem;
}
.scroll-icon {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}
.scroll-icon:after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

/* About section on home */
.about-section {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.polaroid {
    max-width: 100%;
    background: white;
    padding: 1rem 1rem 3rem 1rem;
    border: 15px solid var(--lighter);
    border-bottom: 40px solid var(--lighter);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
}
.polaroid:hover {
    transform: rotate(0);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

/* Stats section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--lighter);
    color: white;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Gallery preview (home) */
.gallery-preview {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--lighter);
    transition: all 0.3s ease;
}
.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}
.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.photo-card:hover .photo-info {
    transform: translateY(0);
}
.photo-title {
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}
.photo-author {
    font-size: 0.9rem;
    opacity: 0.8;
}
.view-more {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    margin-top: 2rem;
}
.view-more:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* ============================================================
   GALLERY PAGE STYLES
   ============================================================ */
.gallery-main {
    padding: 2rem 5%;
}
.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.photo-meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .photo-meta {
    opacity: 1;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}
.page-link {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
}
.page-link:hover,
.page-link.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================================
   JOIN PAGE STYLES (Form Layout)
   ============================================================ */
.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--lighter);
    color: var(--text);
    font-size: 1rem;
}
.input:focus {
    border-color: var(--accent);
    outline: none;
}

/* ============================
   JS-INJECTED VIDEO STYLING
   ============================ */
   #video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

/* Overlay for form */
.form-overlay {
    position: relative;
    z-index: 1;
    background-color: rgba(10, 10, 10, 0.75);
    padding: 4rem 2rem;
    max-width: 800px;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
}



/* ============================================================
   FOOTER STYLES
   ============================================================ */
.photographer-footer {
    background-color: var(--darker);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    gap: 1.5rem;
}
.social-icon img {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.social-icon:hover img {
    opacity: 1;
}
.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 1rem;
    }
    .photographer-nav {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .about-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .masonry-gallery {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .masonry-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-filters {
        gap: 0.5rem;
    }
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes scrollDown {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}
