/* ==========================================================================
   #GALLERY STYLES - MOBILE FIRST APPROACH
   ========================================================================== */

/* Variables
   ========================================================================== */
:root {
    --primary: #d4af37;        /* Gold */
    --primary-dark: #b6952e;   /* Darker Gold */
    --secondary: #1a1a1a;      /* Dark Gray */
    --light: #ffffff;          /* White */
    --dark: #121212;           /* Almost Black */
    --gray: #f5f5f5;           /* Light Gray */
    --text: #333333;           /* Dark Text */
    --text-light: #777777;     /* Light Text */
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --nav-height: 70px;
}

/* Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--light);
}

.section-padding {
    padding: 6rem 0;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    text-align: center;
}

/* Navigation
   ========================================================================== */
.navbar {
    padding: 0.5rem 1rem;
    background-color: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-brand img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    height: auto;
    min-height: auto;
    overflow: visible;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    outline: none;
}

.navbar-collapse {
    background: var(--pure-black);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

.navbar-nav {
    padding: 1rem 0;
}

.nav-item {
    margin: 0.5rem 0;
}

.nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    background: rgba(184, 134, 11, 0.1);
}

.btn-primary.nav-link {
    text-align: center;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem !important;
}

.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, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.25em;
    height: 1.25em;
}

.navbar-collapse {
    background-color: var(--dark);
    margin: 0.5rem -1rem -0.5rem;
    padding: 0 1rem 1rem;
    border-radius: 0 0 8px 8px;
}

.navbar-nav {
    padding: 1rem 0;
}

.nav-link {
    color: var(--light) !important;
    font-weight: 500;
    padding: 0.75rem 0 !important;
    margin: 0.25rem 0;
    position: relative;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link:last-child {
    border-bottom: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 40%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* Desktop Navigation */
@media (min-width: 992px) {
    .navbar {
        padding: 0.75rem 2rem;
    }
    
    .navbar-collapse {
        background-color: transparent;
        margin: 0;
        padding: 0;
    }
    
    .navbar-nav {
        padding: 0;
        margin-left: auto;
    }
    
    .nav-link {
        padding: 0.5rem 1rem !important;
        margin: 0 0.25rem;
        border-bottom: none;
        text-align: left;
    }
    
    .nav-link::after {
        bottom: 8px;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 60%;
    }
}

/* Hero Section
   ========================================================================== */
.gallery-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light);
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../../GALLERY/DSC_0308.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 0 15px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

/* Gallery Section
   ========================================================================== */
.gallery-section {
    padding: 2rem 0;
    margin-top: var(--nav-height);
}

.section-header {
    padding: 1.5rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    transition: var(--transition);
    background: #f8f9fa;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Tablet */
@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        padding: 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Small Desktop */
@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:active {
        transform: scale(0.98);
    }
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light);
    opacity: 0;
    transition: var(--transition);
    transform: translateY(20px);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--light);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.gallery-item-title {
    font-size: 1.25rem;
    margin: 0.5rem 0 0;
    font-weight: 600;
}

/* Video Section */
.video-section {
    padding: 6rem 0;
    background-color: var(--gray);
}

.video-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background-color: var(--light);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.video-card:hover .play-button {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    color: var(--light);
    font-size: 28px;
    margin-left: 5px;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('../../GALLERY/DSC_1487.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--light);
    position: relative;
    padding: 6rem 0;
}

.cta-section h2 {
    color: var(--light);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 6rem 0 2rem;
}

.footer h5 {
    color: var(--light);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

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

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: var(--transition);
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary);
    margin-top: 3px;
}

.newsletter h6 {
    color: var(--light);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.powered-by a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.powered-by a:hover {
    color: var(--light);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: var(--light);
    transform: translateY(-5px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1rem 1.5rem 0;
}

.modal-header .btn-close {
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4af37'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--dark);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius);
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* AOS Custom Animations */
[data-aos="fade-up"] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
