/* Global Styles */
:root {
    --primary-color: #0e0f10; /* deep charcoal for text */
    --secondary-color: #e53935; /* brand accent: matches logo red */
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* derived brand tones for subtle hovers */
    --brand-600: #d32f2f;
    --brand-700: #c62828;
    --brand-50: rgba(229, 57, 53, 0.06);
    /* motion tokens for consistent animations */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-snap: cubic-bezier(0.33, 1, 0.68, 1);
    --duration-fast: 180ms;
    --duration-med: 360ms;
    --duration-slow: 600ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Fonts: add elegant script for logo */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

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

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}
a:hover { text-decoration: underline; }
a:focus-visible {
    outline: 2px dashed var(--secondary-color);
    outline-offset: 2px;
}

/* Footer links should be light for contrast on dark backgrounds */
footer .footer-contact a,
footer .footer-links a {
    color: var(--white);
    text-decoration: underline;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

section {
    padding: 5rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-text {
    color: var(--secondary-color);
    padding: 0;
    position: relative;
    font-weight: 500;
}

.btn-text:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.btn-text:hover:after {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Dark glass to improve readability over bright content */
    background: linear-gradient(to bottom, rgba(14, 15, 16, 0.72), rgba(14, 15, 16, 0.38));
    backdrop-filter: blur(10px) saturate(110%);
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
}

/* Slightly stronger glass when scrolled */
header.scrolled {
    background: linear-gradient(to bottom, rgba(14, 15, 16, 0.82), rgba(14, 15, 16, 0.48));
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    font-weight: 700;
    color: #fff;
}

/* Logo (animated camera + script text) */
.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-camera {
    width: 44px;
    height: 28px;
    display: inline-block;
}

.logo-camera path {
    stroke: #e53935; /* red to match provided logo */
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: logo-stroke 1.6s ease forwards;
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.logo-script {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    line-height: 1;
    color: #e53935;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(6px);
    animation: fade-up 700ms ease 400ms forwards;
}

.logo-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.95;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.nav-links,
.nav-list,
.main-nav ul {
    display: flex;
    align-items: center;
}

.nav-links li,
.nav-list li,
.main-nav ul li {
    margin-left: 2rem;
}

.nav-links a,
.nav-list a,
.main-nav ul a {
    font-weight: 600;
    position: relative;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.92;
}

.nav-links a:hover,
.nav-list a:hover,
.main-nav ul a:hover { opacity: 1; }

.nav-links a:after,
.nav-list a:after,
.main-nav ul a:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.85);
    transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after,
.nav-list a:hover:after,
.nav-list a.active:after,
.main-nav ul a:hover:after,
.main-nav ul a.active:after {
    width: 100%;
}

.btn-login {
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.btn-login:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #ffffff;
    transition: var(--transition);
}

/* Mobile menu toggle icon (pages using .mobile-menu) */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    color: #ffffff;
}

/* Mobile slide-in menu used on some pages (e.g., admin) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 78%;
    max-width: 340px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.70);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
    z-index: 1200;
    transition: var(--transition);
    padding: 1.2rem 1rem;
}

.mobile-menu.active { right: 0; }

.mobile-menu .close-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #ffffff;
    font-size: 1.4rem;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 1rem;
}

.mobile-menu ul li { margin: 0.8rem 0; }

.mobile-menu ul a {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
}

.footer-logo h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--secondary-color);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

/* -------------------------------------------------- */
/* Animation utilities                                 */
/* -------------------------------------------------- */

/* Base reveal class (applies to most sections/cards) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: none;
    transition: 600ms ease;
}

/* Variants */
.fade-up { /* uses default reveal behavior */ }

.slide-left {
    transform: translateX(28px);
}

.slide-right {
    transform: translateX(-28px);
}

.zoom-in {
    transform: scale(0.95);
}

.zoom-in.visible {
    transform: scale(1);
}

/* Legacy .animate/.animated support (already used in JS) */
.animate {
    opacity: 0;
    transform: translateY(16px);
}

.animated {
    opacity: 1;
    transform: none;
    transition: 500ms ease;
}

/* Performance helpers and micro-interactions */
.parallax { will-change: transform; }
.tilt-card { will-change: transform; transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.tilt-card:hover { transform: translateY(-4px); }

/* Button ripple (JS injects span.ripple) */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ripple var(--duration-slow) var(--ease-snap) forwards;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(6); opacity: 0; }
}

/* Micro-interactions */
.btn:hover {
    filter: brightness(1.02);
}

.gallery-item.reveal.visible {
    box-shadow: var(--shadow);
}

.stat-card.reveal.visible,
.admin-table.reveal.visible,
.album-card.reveal.visible,
.media-item.reveal.visible,
.info-card.reveal.visible,
.social-card.reveal.visible {
    box-shadow: var(--shadow-dark);
}

/* Keyframes */
@keyframes fade-up {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes logo-stroke {
    to { stroke-dashoffset: 0; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-contact p {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons 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(--white);
    transition: var(--transition);
}

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

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

.footer-bottom p {
    color: var(--medium-gray);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Fixed Contact Buttons */
.fixed-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
}

.whatsapp-btn,
.call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.whatsapp-btn {
    background-color: #25D366;
}

.call-btn {
    background-color: var(--secondary-color);
}

.whatsapp-btn:hover,
.call-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hamburger,
    .mobile-menu-toggle {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links,
    .nav-list,
    .main-nav ul {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: rgba(20, 20, 20, 0.6);
        backdrop-filter: blur(10px) saturate(120%);
        -webkit-backdrop-filter: blur(10px) saturate(120%);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
        padding: 2rem 0;
    }

    .nav-links.active,
    .nav-list.active,
    .main-nav ul.active {
        left: 0;
    }

    .nav-links li,
    .nav-list li,
    .main-nav ul li {
        margin: 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 95%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}