/* css/style.css */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #FFD166;
    --accent-color: #4ECDC4;
    --dark-color: #FFFFFF;
    --light-color: #F8F9FA;
    --text-color: #333;
    --gradient-1: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --gradient-2: linear-gradient(135deg, #FFD166 0%, #FF9A00 100%);
    --gradient-3: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    --neon-blue: #4ECDC4;
    --neon-purple: #9B59B6;
    --neon-pink: #FF6B6B;
    
    /* Dynamic header and footer colors */
    --header-bg-color: rgba(255, 255, 255, 0.95);
    --header-text-color: #333;
    --footer-bg-color: rgba(248, 249, 250, 0.95);
    --footer-text-color: #666;
    --footer-widget-bg: rgba(255, 255, 255, 0.5);
    --footer-border-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Loading Screen */
.auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f8fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--accent-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-loading-text {
    color: #666;
    font-size: 18px;
}

/* Hide content initially */
.page-content {
    display: none;
}

/* Background Video (Global) */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.15;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--header-text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--header-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Header Contact Info */
.header-contact {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: var(--header-text-color);
    font-size: 14px;
}

.header-contact-item i {
    margin-right: 8px;
    color: var(--accent-color);
}

/* Professional styling for contact links */
.phone-link, .email-link {
    color: inherit !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.phone-link:hover, .email-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

.phone-link::after, .email-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.phone-link:hover::after, .email-link:hover::after {
    width: 100%;
}

/* Header Social Links */
.header-social {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.header-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--header-text-color);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.header-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

/* User Profile Menu */
.user-profile {
    display: flex;
    align-items: center;
    margin-left: 30px;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.user-dropdown-item:hover {
    background-color: rgba(78, 205, 196, 0.1);
}

.user-dropdown-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

.user-dropdown-divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--header-text-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle i {
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active i {
    transform: rotate(90deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

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

.mobile-menu-header {
    padding: 20px;
    background: var(--gradient-1);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
}

.mobile-menu-nav {
    padding: 20px 0;
}

.mobile-menu-nav ul {
    list-style: none;
}

.mobile-menu-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-nav a:hover {
    background-color: rgba(78, 205, 196, 0.1);
    color: var(--accent-color);
    padding-left: 25px;
}

.mobile-menu-contact {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
}

.mobile-menu-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-color);
}

.mobile-menu-contact-item:last-child {
    margin-bottom: 0;
}

.mobile-menu-contact-item i {
    margin-right: 10px;
    color: var(--accent-color);
}

.mobile-menu-social {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-menu-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

/* Footer */
footer {
    background: var(--footer-bg-color);
    padding: var(--footer-padding, 30px 0);
    text-align: center;
    color: var(--footer-text-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: var(--footer-border-top, 1px) solid var(--footer-border-color);
    padding-top: 20px;
    color: var(--footer-text-color);
}

/* Footer Newsletter */
.footer-newsletter {
    margin-bottom: 20px;
}

.footer-newsletter h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.footer-newsletter p {
    margin-bottom: 15px;
    color: var(--footer-text-color);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    color: var(--text-color);
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Footer Social Links */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--footer-text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Icon */
.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

/* Follow Us Section */
.footer-follow-us {
    margin-bottom: 20px;
}

.footer-follow-us h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.follow-us-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.follow-us-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    color: var(--footer-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.follow-us-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.follow-us-link i {
    font-size: 18px;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

/* Error State */
.error-message {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Chat Box Styles */
.chat-box {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(120%);
    transition: transform 0.3s ease;
    resize: both;
    min-width: 300px;
    min-height: 350px;
    max-width: 800px;
    max-height: 90vh;
}

.chat-box.open {
    transform: translateY(0);
}

.chat-box.minimized {
    height: 60px;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-1);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-controls {
    display: flex;
    gap: 10px;
}

.chat-control-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.chat-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Chat Button with Video */
.chat-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
    z-index: 999;
    overflow: hidden;
    padding: 0;
}

#chat-button-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.chat-button:hover #chat-button-video {
    transform: scale(1.1);
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-button.hidden {
    display: none;
}

.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #FF5252;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
}

/* Resize Handle */
.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    border-radius: 0 0 15px 0;
}

/* Media Modal */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.media-modal.active {
    display: flex;
}

.media-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.media-modal-media {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.media-modal-video {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
}

.media-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.media-modal-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
    max-width: 90%;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    width: 80%;
    max-width: 800px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.video-modal-video {
    width: 100%;
    height: auto;
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide desktop navigation */
    nav {
        display: none;
    }

    .header-contact {
        display: none;
    }

    .header-social {
        display: none;
    }

    .user-profile {
        margin-left: 15px;
    }

    .footer-content {
        flex-direction: column;
    }

    .newsletter-form {
        flex-direction: column;
    }
}