/* General Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
}

/* Landing page specific navbar styles */
.landing-page .navbar {
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    opacity: 0;
    transform: translateY(-100%);
    animation: slide-down 1.5s cubic-bezier(0.4, 0, 0.2, 1) 2s forwards;
}

.landing-page .navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.landing-page .navbar-brand {
    opacity: 0;
    transform: translateX(-20px);
    animation: slide-in-left 1.5s cubic-bezier(0.4, 0, 0.2, 1) 2.5s forwards;
}

.navbar-nav {
    transition: all 0.3s ease;
}

.nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.landing-page .nav-link {
    opacity: 0;
    transform: translateX(20px);
    animation: slide-in-right 1.5s cubic-bezier(0.4, 0, 0.2, 1) 2.8s forwards;
}

.landing-page .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.landing-page .nav-link:hover::after {
    width: 80%;
    left: 10%;
}

.landing-page .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: background-image 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar {
        background-color: rgba(33, 37, 41, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .landing-page .navbar {
        background-color: rgba(33, 37, 41, 0.1);
    }

    .landing-page .navbar.scrolled {
        background-color: rgba(33, 37, 41, 0.75);
    }

    .navbar-collapse {
        background-color: rgba(33, 37, 41, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 1rem;
        margin-top: 1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        text-align: center;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0.25rem 0;
        border-radius: 0.5rem;
    }

    .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .landing-page .navbar-nav .nav-link {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .landing-page .nav-link:hover {
        transform: none;
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .navbar-collapse.collapsing {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .navbar-collapse.show .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .navbar-brand,
    .navbar-nav,
    .nav-link,
    .navbar-collapse,
    .navbar-collapse .nav-link {
        animation: none;
        transform: none;
        opacity: 1;
        transition: background-color 0.3s ease;
    }

    .navbar-brand:hover,
    .nav-link:hover,
    .navbar-toggler:hover {
        transform: none;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    will-change: transform;
    transform: scale(1.05);
    animation: subtle-zoom 30s ease-in-out infinite alternate;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@keyframes subtle-zoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.1); }
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: clamp(1rem, 3vh, 2rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 2s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.hero-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 2s cubic-bezier(0.4, 0, 0.2, 1) 1.5s forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-background {
        background-position: center 20%;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .hero-content,
    .hero-content h1,
    .hero-content h2 {
        animation: none;
        transform: none;
    }
    
    .hero-content,
    .hero-content h1,
    .hero-content h2 {
        opacity: 1;
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
}

/* Category Card Styles */
.category-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.6) 15%, 
        transparent 40%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transform: translateY(70%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.category-card:hover .category-overlay::before {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

.category-overlay p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
    position: relative;
    z-index: 1;
}

.category-card:hover .category-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile adjustments for category cards */
@media (max-width: 576px) {
    .category-overlay {
        padding: 1.25rem;
    }

    .category-overlay h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .category-overlay p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .category-card img {
        height: 250px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .category-overlay h3 {
        font-size: 1.5rem;
    }

    .category-overlay p {
        font-size: 1rem;
    }
}

/* Section Subtitle */
.section-subtitle {
    position: relative;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Portfolio Item Styles */
.portfolio-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-link img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-link img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    color: white;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Gallery Styles */
.gallery-header {
    background-color: #212529;
    color: white;
    padding: 110px 0 20px;
    margin-bottom: 50px;
}

.gallery-container {
    min-height: 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.gallery-item {
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(50% - 10px);
    opacity: 1;
    transform: translateX(0);
}

.gallery-container[data-view="list"] .gallery-item {
    width: 100%;
    transform: translateX(0);
}

.gallery-container[data-view="grid"] .gallery-item {
    transform: translateX(0);
}

.gallery-container.switching .gallery-item {
    opacity: 0;
    transform: translateX(-20px);
}

.gallery-container.switching[data-view="list"] .gallery-item {
    transform: translateX(-20px);
}

.gallery-container.switching[data-view="grid"] .gallery-item {
    transform: translateX(20px);
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-link img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-link img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h5 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* View options styling */
.view-options {
    position: relative;
    overflow: hidden;
}

.view-options::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #404040;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 0.25rem;
}

.view-options .btn-outline-light {
    position: relative;
    color: #e0e0e0;
    border-color: #404040;
    background-color: transparent;
    transition: all 0.3s ease;
    z-index: 1;
}

.view-options .btn-outline-light:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #404040;
}

.view-options .btn-outline-light.active {
    background-color: transparent;
    color: #ffffff;
    border-color: #404040;
    box-shadow: none;
}

/* Position the sliding background based on active button */
.view-options .btn-outline-light[data-view="grid"].active ~ .btn-outline-light[data-view="list"] ~ ::before {
    transform: translateX(0);
}

.view-options .btn-outline-light[data-view="list"].active ~ ::before {
    transform: translateX(100%);
}

/* Photo Detail Styles */
.photo-detail-header {
    background-color: #212529;
    color: white;
    margin-bottom: 0;
    padding: 110px 0 20px;
}

.photo-detail-image {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.photo-detail-info {
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.photo-nav {
    margin-top: 50px;
}

.photo-nav a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.photo-nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-photos {
    margin-top: 70px;
    padding-top: 50px; 
    border-top: 0px solid #212529;
}

.empty-state {
    padding: 60px 0;
}

/* Image Viewer */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.viewer-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.viewer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1060;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.viewer-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1060;
    transition: all 0.3s ease;
}

.viewer-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.viewer-prev {
    left: 20px;
}

.viewer-next {
    right: 20px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-form .form-control {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0.75rem 0.5rem;
}

.contact-form .form-floating label {
    padding: 1rem 0.75rem;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    padding: 50px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Photo Protection Message */
.protection-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: fadeInOut 3s ease-in-out;
    text-align: center;
    max-width: 90%;
    width: 400px;
}

.protection-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.protection-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.protection-content .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.protection-content .btn i {
    margin-right: 0.5rem;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    15% { opacity: 1; transform: translate(-50%, -50%); }
    85% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -40%); }
}

/* Disable user selection on images */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
}

/* Content Headers */
.photo-group-header,
.about-header,
.contact-header {
    padding: 110px 0 20px;
    background-color: #212529;
    color: white;
}

/* Adjust header padding for mobile */
@media (max-width: 768px) {
    .photo-group-header,
    .gallery-header,
    .photo-detail-header,
    .about-header,
    .contact-header {
        padding: 90px 0 20px;
    }
}

/* Section Padding */
.photo-detail-section {
    padding: 60px 0;
}

.related-photos {
    padding: 60px 0;
}

.gallery-section {
    padding: 60px 0;
}

.about-section,
.portfolio-section,
.contact-section {
    padding: 60px 0;
}

.category-header {
    padding: 110px 0 20px;
    background-color: #212529;
    color: white;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .photo-detail-section,
    .related-photos,
    .gallery-section,
    .about-section,
    .portfolio-section,
    .contact-section {
        padding: 40px 0;
    }

    .category-header {
        padding: 90px 0 20px;
    }

    .empty-state {
        padding: 40px 0;
    }
}
