/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Corporate Identity (Red/Blue) */
    --primary: #FFFFFF;
    --primary-light: #F0F4F8;
    /* Light Blue-ish Grey */
    --secondary: #E2E8F0;

    --accent: #D32F2F;
    /* Corporate Red */
    --accent-hover: #B71C1C;
    /* Darker Red */

    --text-main: #0D47A1;
    /* Corporate Navy Blue */
    --text-dim: #546E7A;
    /* Blue Grey */

    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(13, 71, 161, 0.1);
    /* Subtle Blue Border */

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--primary);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero Slider */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 6s ease;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding-left: 20px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.hero-text {
    font-size: 1.3rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Features */
.features {
    padding: 5rem 0;
    background: var(--primary-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.feature-card h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Products */
.products {
    padding: 6rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-info {
    padding: 2rem;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 600;
}

.product-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Contact/Footer */
.footer {
    background: #111;
    color: #fff;
    padding: 5rem 0 2rem;
    border-top: none;
}

.footer h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Admin Specific - Keep Dark for contrast or update? Let's keep dark sidebar but check vars */
.admin-body {
    background: #f1f5f9;
    display: flex;
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: #1e293b;
    color: #fff;
    border-right: none;
    padding: 2rem;
    position: fixed;
}

.sidebar .logo {
    color: #fff;
    margin-bottom: 2rem;
    text-align: center;
}


.sidebar .logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
}

.sidebar .nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.sidebar .nav-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
}

.sidebar .nav-links a i {
    width: 20px;
}

.sidebar .nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 10px;
}

.main-content {
    margin-left: 280px;
    padding: 3rem;
    width: calc(100% - 280px);
    color: var(--text-main);
    min-height: 100vh;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--secondary);
    color: var(--text-main);
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--secondary);
    color: var(--text-main);
}

.table th {
    color: var(--text-dim);
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    padding: 6rem 0;
    background: var(--primary-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: all;
}

/* References Section */
.references-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.ref-item {
    flex: 0 0 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.ref-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.ref-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Video Section - Light Overlay */
.video-section {
    position: relative;
    /* ... (existing) ... */
}

/* --- Product Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #ef4444;
    color: #fff;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: 300px;
    max-height: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-modal-content,
.gallery-modal-content {
    background: #000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1100px;
    width: 90%;
    margin: auto;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    /* Above modal content */
}

.nav-arrow:hover {
    background: var(--accent);
}

.nav-arrow.prev {
    left: 15px;
}

.nav-arrow.next {
    right: 15px;
}

#gallery-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 15px;
    z-index: 10001;
}

@media (max-width: 768px) {
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.modal-info {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.modal-info h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent);
    margin-right: 10px;
}

.video-section {
    padding: 8rem 0;
    text-align: center;
    background: #000;
    position: relative;
    overflow: hidden;
    color: #fff;
    /* Force white text here */
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
}

.video-section .section-title {
    color: #fff;
    /* Override light theme text */
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    margin-bottom: 2rem;
}

.play-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1) rotate(360deg);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .main-content {
        margin-left: 0;
    }

    .admin-body {
        flex-direction: column;
    }
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    background: #444;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp {
    background: #25D366;
}

.btn-phone {
    background: #0ea5e9;
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.float-btn i {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

/* Tooltip on hover */
.float-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
}

.float-btn:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}