/* Design System Flat Premium - LL Audiovisual */
:root {
    --primary: #121212; /* Rich Black */
    --accent: #004a99;  /* Deeper Premium Blue */
    --accent-rgb: 0, 74, 153;
    --light: #F8F9FA;
    --white: #FFFFFF;
    --text-muted: #6c757d;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    background-color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* Subtle noise effect on everything */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04; /* Very subtle but present */
    z-index: 9999;
    pointer-events: none;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

* {
    border-radius: 0 !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-light {
    background-color: var(--light) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.text-dark {
    color: #111 !important;
}

.text-muted {
    color: #666 !important;
}

.text-accent {
    color: var(--accent) !important;
}

/* Navbar */
.navbar {
    background-color: var(--primary) !important;
    transition: var(--transition);
    border-bottom: 2px solid var(--accent);
}

.navbar .btn-success {
    color: #ffffff !important;
    padding: 0.6rem 1.5rem;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    position: relative;
    padding: 0.5rem 1rem !important;
}

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

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

.nav-link:hover {
    color: var(--accent) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: var(--primary);
    color: #fff;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(var(--accent-rgb), 0.1);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 3;
}

/* Buttons */
.btn-success {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 0 !important;
    font-family: 'Outfit', sans-serif;
}

.btn-success:hover {
    background-color: #003366 !important; /* Even deeper blue on hover */
    border-color: #003366 !important;
    color: #ffffff !important;
    transform: none;
    box-shadow: none !important;
}

.btn-accent {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-accent:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--accent) !important;
}

/* Services */
.service-card {
    border: 1px solid #eee;
    background: #FFFFFF;
    transition: var(--transition);
    border-radius: 0;
    height: 100%;
    text-align: center;
    color: #333;
}

.service-card h4 {
    color: #111;
    font-weight: 700;
}

.service-card p {
    color: #666;
}

.service-card:hover {
    transform: none;
    background: #f9f9f9;
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Gallery Filter */
.filter-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: var(--transition);
    margin: 5px;
    color: #333;
    border-radius: 0;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    background: #000;
    border-radius: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.gallery-item:hover img {
    transform: scale(1.15);
    opacity: 0.6;
    filter: blur(2px);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: #fff;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
    backdrop-filter: blur(0px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

.gallery-overlay h5 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.gallery-overlay small {
    font-size: 0.9rem;
    opacity: 0.8;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.gallery-item:hover .gallery-overlay h5,
.gallery-item:hover .gallery-overlay small {
    transform: translateY(0);
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    font-size: 1.2rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
}

/* Grayscale Filter & Partner Hover */
.grayscale-filter .partner-item {
    transition: all 0.4s ease;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grayscale-filter img {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
    max-width: 100%;
    height: auto;
}

.grayscale-filter .partner-item:hover {
    background: rgba(var(--accent-rgb), 0.05);
    transform: translateY(-5px);
}

.grayscale-filter .partner-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

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

/* WhatsApp Floating */
.whatsapp-float {
    background-color: #25d366;
    color: #fff;
}

.gallery-item.hide {
    display: none;
}

/* Pagination */
.pagination .page-link {
    background-color: transparent;
    border: 1px solid #dee2e6;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    border-radius: 0 !important;
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.pagination .page-link:hover {
    background-color: var(--light);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    border-color: var(--light);
}

/* Admin Styles */
.loading-overlay {
    background: rgba(255, 255, 255, 0.9) !important;
}

.admin-item-card {
    transition: var(--transition);
}

.admin-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.nav-link.active {
    color: var(--accent) !important;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 4px;
}

#admin-gallery-grid .card {
    border-radius: 0;
    overflow: hidden;
}

.image-upload-wrapper {
    transition: var(--transition);
    border: 2px dashed #dee2e6 !important;
    position: relative;
    overflow: hidden; /* CRITICAL: Prevent contents from escaping */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    min-height: 150px;
}

.image-upload-wrapper:hover {
    border-color: var(--accent) !important;
    background: #fff !important;
}

.image-upload-wrapper input[type="file"] {
    z-index: 10;
    cursor: pointer;
}

.image-upload-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    background: white;
}

.modal-footer {
    position: relative;
    z-index: 20; /* Ensure footer is always clickable above upload wrappers if they overlap */
    background: white;
}

@media (max-width: 768px) {
    nav.position-fixed {
        position: relative !important;
        min-height: auto !important;
    }
    main {
        margin-left: 0 !important;
    }
}

/* Login Styles */
.login-page {
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, transparent 100%);
    z-index: 1;
}

.login-card {
    position: relative;
    z-index: 2;
    border: none;
    border-top: 5px solid var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5) !important;
}

.footer {
    border-top: 5px solid var(--accent);
    position: relative;
    z-index: 2;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent);
    color: #fff !important;
    transform: translateY(-3px);
}

.opacity-10 {
    opacity: 0.1;
}

.ls-2 {
    letter-spacing: 2px;
}
