 /* 
 * Oliver Tolentino - Fashion Designer Portfolio
 * Custom CSS Styles
 */

/* Base Styles */
:root {
    --primary-color: #1a1a1a;      /* Increased contrast for main text */
    --secondary-color: #444444;    /* Increased contrast for secondary text */
    --accent-color: #9a8478;
    --light-color: #ffffff;        /* Pure white for backgrounds */
    --dark-color: #111111;         /* Even darker for backgrounds */
    --transition-speed: 0.3s;
}

/* Skip Link Accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: #fff;
    color: #000;
    z-index: 1000;
    padding: 1em;
    font-size: 1.1em;
    border: 2px solid #9a8478;
    border-radius: 4px;
}

/* === Eco Couture Zoom Modal Styles === */
.image-zoom-modal {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    transition: opacity 0.2s;
    scrollbar-width: thin;
    scrollbar-color: #9a8478 #f1f1f1;
}

.image-zoom-modal::-webkit-scrollbar {
    width: 8px;
}

.image-zoom-modal::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.image-zoom-modal::-webkit-scrollbar-thumb {
    background-color: #9a8478;
    border-radius: 4px;
}

.image-zoom-modal[style*="display: flex"] {
    display: flex !important;
}

.image-zoom-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 0 16px;
    box-sizing: border-box;
}

.eco-couture-zoom-close {
    position: fixed;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.eco-couture-zoom-close:hover {
    color: #9a8478;
    background-color: rgba(255, 255, 255, 0.95);
}

.eco-couture-zoom-controls {
    display: none;
}

.eco-couture-zoom-controls button {
    background: #f3f3f3;
    border: 1px solid #ccc;
    color: #333;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.eco-couture-zoom-controls button:hover {
    background: #9a8478;
    color: #fff;
    border-color: #9a8478;
}

#eco-couture-zoom-level {
    font-size: 1.1rem;
    color: #666;
    min-width: 48px;
    text-align: center;
}

/* Modal navigation buttons */
.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243, 243, 243, 0.7);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.modal-nav:hover {
    background: rgba(154, 132, 120, 0.8);
    color: white;
}

.modal-nav-left {
    left: 20px;
}

.modal-nav-right {
    right: 20px;
}

.modal-nav svg {
    width: 24px;
    height: 24px;
}

.eco-couture-zoom-images {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 0;
    box-sizing: border-box;
    overflow: visible;
}

.eco-couture-zoom-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    background: #fff;
    border-radius: 0 !important;
    box-shadow: none !important;
    transition: transform 0.3s ease;
    user-select: none;
    touch-action: manipulation;
    object-fit: contain !important;
    padding: 0 !important;
    transform-origin: center top;
}

@media (max-width: 1024px) {
    .image-zoom-modal-content {
        padding: 0 12px;
    }
    
    .eco-couture-zoom-controls {
        bottom: 16px;
        padding: 10px 16px;
    }
}

@media (max-width: 600px) {
    .eco-couture-zoom-close {
        top: 16px;
    }
    
    .modal-nav {
        width: 36px;
        height: 36px;
    }
    
    .modal-nav-left {
        left: 10px;
    }
    
    .modal-nav-right {
        right: 10px;
        right: 16px;
        font-size: 2rem;
    }
    
    .eco-couture-zoom-controls {
        bottom: 12px;
        padding: 8px 12px;
    }
    
    .eco-couture-zoom-controls button {
        width: 36px;
        height: 36px;
    }
    
    .eco-couture-zoom-images {
        padding: 60px 0;
    }
}

body.eco-couture-modal-open {
    overflow: hidden;
}

.image-zoom-modal-caption {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11;
    color: #333;
    padding: 24px 32px 24px;
    background: transparent;
    pointer-events: none;
    text-align: left;
}

.image-zoom-modal-caption-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.2;
}

.image-zoom-modal-caption-description {
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0;
    max-width: 720px;
}

@media (max-width: 600px) {
    .image-zoom-modal-caption {
        padding: 16px 18px;
    }
    .image-zoom-modal-caption-title {
        font-size: 1.05rem;
    }
    .image-zoom-modal-caption-description {
        font-size: 0.85rem;
    }
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Navigation */
.nav-link {
    position: relative;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    width: 100%;
}

.swiper-slide {
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    text-shadow: 0 2px 8px #222, 0 0 2px #000; /* Add text shadow for contrast */
}

/* Swiper Navigation and Pagination */
.swiper-button-next,
.swiper-button-prev {
    color: #1a1a1a !important; /* Use dark color for better contrast */
    background: #fff !important;
    border-radius: 50%;
    border: 1px solid #ccc;
    --swiper-navigation-size: 30px;
}

.swiper-pagination-bullet {
    background: #1a1a1a !important; /* Use dark color for better contrast */
    opacity: 0.7 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #9a8478 !important; /* Accent color for active */
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    align-items: stretch;
}

.gallery-item-container {
    position: relative;
    height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    transition: transform var(--transition-speed);
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
}

.thumbnail-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-item img,
.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
    display: block;
    transition: transform var(--transition-speed);
    background: #fff;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform var(--transition-speed);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 2rem;
}

.filter-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
}

.filter-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
    transform: translateX(-50%);
}

.filter-button:hover::after,
.filter-button.active::after {
    width: 80%;
}

.filter-button.active {
    font-weight: 600;
}

/* Runway Tabs */
.runway-tabs {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 2rem;
}

.runway-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed);
}

.runway-tab::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -1px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.runway-tab:hover::after,
.runway-tab.active::after {
    width: 100%;
}

.runway-tab.active {
    font-weight: 600;
}

.runway-content {
    display: none;
    width: 100%;
}

.runway-content.active {
    display: block;
    width: 100%;
}

/* Specific styles for runway gallery */
.runway-content .gallery-grid {
    width: 100%;
    margin: 0 auto;
}

/* Landing Page */
.landing-page {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enter-site-btn {
    position: relative;
    z-index: 1;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
    transition: all var(--transition-speed);
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: fadeIn 1s ease-in-out 3s forwards;
}

.enter-site-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1; 
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .gallery-grid {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
