/**
 * Steve Cherrier Photography - Main Stylesheet
 * Dark theme with orange accents
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 1rem;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.nav-logo span .accent {
    color: #FF6B35;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.9));
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-overlay .accent {
    color: #FF6B35;
}

.hero-overlay p {
    font-size: 1.3rem;
    color: #cccccc;
}

/* ============================================
   GALLERY PAGE - HORIZONTAL SCROLL (FLUID)
   ============================================ */
main {
    margin-top: 0;
    padding-top: 80px;
    min-height: 100vh;
}

.gallery-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 80px);
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    -webkit-overflow-scrolling: touch;
    background: #000000;
    scrollbar-width: thin;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-container::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

.gallery-image {
    position: relative;
    flex: 0 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: #000000;
}

.gallery-image img {
    height: 100%;
    width: auto;
    max-width: 100vw;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* ============================================
   PHOTO INFO PANEL
   ============================================ */
.photo-info {
    position: fixed;
    right: -400px;
    top: 80px;
    width: 400px;
    height: calc(100vh - 80px);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid #333;
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.4s ease;
    z-index: 900;
}

.photo-info.active {
    right: 0;
}

.photo-info h2 {
    color: #FF6B35;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.photo-info .detail {
    margin-bottom: 1.5rem;
}

.photo-info .detail label {
    display: block;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.photo-info .detail p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.info-toggle {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    background: rgba(255, 107, 53, 0.5);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 950;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.info-toggle:hover {
    background: rgba(255, 107, 53, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.info-toggle.active {
    right: 420px;
    bottom: 2rem;
    background: rgba(255, 107, 53, 0.9);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-container h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #FF6B35;
    font-weight: 400;
}

.about-container p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 1.5rem;
}

.about-container .contact {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid #FF6B35;
    border-radius: 10px;
}

.about-container .contact h2 {
    color: #FF6B35;
    margin-bottom: 1rem;
}

.about-container .contact a {
    color: #FF6B35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.about-container .contact a:hover {
    color: #ff8559;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    /* Hero */
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-overlay p {
        font-size: 1rem;
    }
    
    /* Gallery - fluid scrolling on mobile */
    .gallery-container {
        top: 80px;
        height: calc(100vh - 80px);
    }
    
    .gallery-image {
        flex: 0 0 auto;
        height: 100%;
    }
    
    .gallery-image img {
        height: 100%;
        width: auto;
        max-width: 100vw;
        object-fit: contain;
    }
    
    /* Photo info panel */
    .photo-info {
        width: 100%;
        right: -100%;
        top: 0;
        height: 100vh;
    }
    
    .info-toggle {
        right: 1rem;
        bottom: 1rem;
    }
    
    .info-toggle.active {
        right: 1rem;
        bottom: 1rem;
    }
    
    /* About */
    .about-container h1 {
        font-size: 2rem;
    }
    
    .about-container p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }
    
    .nav-logo img {
        height: 40px;
    }
    
    .nav-logo span {
        font-size: 1.2rem;
    }
    
    .info-toggle {
        right: 1rem;
        bottom: 1rem;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 5px;
}

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

/* ============================================
   LOADING INDICATOR
   ============================================ */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: #FF6B35;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
