/* Fabrizio Cacciatore Photography - Main Stylesheet */

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

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

body {
    font-family: 'Segoe UI', 'Open Sans', 'Montserrat', Arial, sans-serif;
    background-color: #F7F7F7;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    background-color: #F7F7F7;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #E0E0E0;
    flex-wrap: nowrap;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.7;
}

/* Navigation Styles - Horizontal Row */
nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    width: auto;
}

nav a {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    padding: 0 12px;
}

nav a:first-child {
    padding-left: 0;
}

nav a:last-child {
    padding-right: 0;
}

nav a:hover,
nav a.active {
    color: #000000;
    opacity: 0.6;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 0;
}

/* Footer Styles */
footer {
    background-color: #F7F7F7;
    padding: 40px 60px;
    text-align: center;
    border-top: 1px solid #E0E0E0;
    margin-top: auto;
}

footer p {
    font-size: 12px;
    color: #666666;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

footer a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #000000;
}

/* Home Page - Hero Slider Styles */
.hero-section {
    height: calc(100vh - 142px);
    min-height: 500px;
    position: relative;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #F7F7F7;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
    opacity: 1;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.slider-controls button {
    background: rgba(17, 17, 17, 0.8);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 80px;
    font-size: 24px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.slider-controls button:hover {
    background: rgba(0, 0, 0, 1);
}

/* About Page Styles */
.about-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-content h1 {
    font-size: 40px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.about-content p {
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-images img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Contact Page Styles */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 60px 80px;
}

.contact-content {
    max-width: 600px;
}

.contact-content h1 {
    font-size: 44px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999999;
}

.contact-item a,
.contact-item span {
    font-size: 18px;
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #000000;
}

/* Gallery Page Styles */
.gallery-section {
    display: flex;
    height: calc(100vh - 142px);
    min-height: 500px;
}

.gallery-thumbnails {
    width: 180px;
    min-width: 180px;
    padding: 30px 15px;
    background-color: #F7F7F7;
    overflow-y: auto;
    border-right: 1px solid #E0E0E0;
}

.gallery-thumbnails h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E0E0E0;
    writing-mode: horizontal-tb;
}

/* Vertical Thumbnail Column */
.thumbnail-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail-grid img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    loading: lazy;
}

.thumbnail-grid img:hover,
.thumbnail-grid img.active {
    opacity: 1;
    border-color: #000000;
}

.gallery-viewer {
    flex: 1;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #F7F7F7;
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
}

.gallery-viewer img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: 4px;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000000;
    position: absolute;
    top: 40px;
    right: 60px;
    z-index: 100;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    nav a {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 30px 40px;
    }
    
    nav a {
        font-size: 12px;
        padding: 0 8px;
    }
    
    .gallery-section {
        flex-direction: column;
        height: auto;
    }
    
    .gallery-thumbnails {
        width: 100%;
        min-width: auto;
        max-height: 200px;
        order: 2;
        border-right: none;
        border-top: 1px solid #E0E0E0;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 15px;
    }
    
    .gallery-thumbnails h2 {
        writing-mode: horizontal-tb;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        border-right: 1px solid #E0E0E0;
        padding-right: 20px;
        margin-right: 10px;
        white-space: nowrap;
    }
    
    .thumbnail-grid {
        flex-direction: row;
        gap: 15px;
        width: max-content;
        padding: 10px 0;
    }
    
    .thumbnail-grid img {
        width: 120px;
        height: 160px;
        flex-shrink: 0;
    }
    
    .gallery-viewer {
        height: 60vh;
        min-height: 400px;
        order: 1;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }
    
    .hero-section {
        height: calc(100vh - 142px);
    }
    
    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 40px;
    }
    
    .about-images {
        order: -1;
    }
    
    .contact-section {
        padding: 80px 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 25px 30px;
        flex-direction: column;
        gap: 20px;
    }
    
    .logo {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .mobile-nav-toggle {
        display: block;
        top: 25px;
        right: 30px;
    }
    
    nav {
        display: none;
        width: 100%;
        max-width: none;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid #E0E0E0;
    }
    
    nav.active {
        display: flex;
    }
    
    nav a {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .gallery-thumbnails h2 {
        font-size: 18px;
    }
    
    .thumbnail-grid img {
        width: 100px;
        height: 133px;
    }
    
    .gallery-viewer {
        height: 50vh;
        min-height: 350px;
    }
    
    .gallery-viewer img {
        object-fit: contain;
    }
    
    .about-section {
        padding: 40px 30px;
        gap: 30px;
    }
    
    .about-content h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .about-content p {
        font-size: 15px;
    }
    
    .contact-section {
        padding: 60px 30px;
    }
    
    .contact-content h1 {
        font-size: 36px;
    }
    
    .contact-item a,
    .contact-item span {
        font-size: 16px;
    }
    
    footer {
        padding: 30px;
    }
    
    footer p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 20px 25px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    nav a {
        font-size: 12px;
    }
    
    .gallery-thumbnails {
        max-height: 150px;
        padding: 15px;
    }
    
    .thumbnail-grid img {
        width: 80px;
        height: 107px;
    }
    
    .gallery-viewer {
        height: 45vh;
        min-height: 300px;
        padding: 15px;
    }
    
    .about-section {
        padding: 30px 20px;
    }
    
    .about-content h1 {
        font-size: 28px;
    }
    
    .contact-section {
        padding: 50px 20px;
    }
    
    .contact-content h1 {
        font-size: 30px;
    }
    
    .slider-controls button {
        width: 40px;
        height: 60px;
        font-size: 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    header,
    .gallery-thumbnails,
    .slider-controls,
    footer {
        display: none;
    }
    
    .hero-section,
    .gallery-viewer {
        height: auto;
        position: relative;
    }
    
    .hero-slider img,
    .gallery-viewer img {
        position: relative;
        opacity: 1;
    }
}
