/* ============================================
   CBN COFFEE - LEGENDARY WEBSITE STYLES
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #3D1A0B;
    --secondary-color: #C9A962;
    --accent-color: #8B4513;
    --bg-color: #FDF8F3;
    --text-color: #2C1810;
    --card-bg: #FFFFFF;
    --shadow-color: rgba(61, 26, 11, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #E8D5A3);
    --gradient-gold: linear-gradient(135deg, #C9A962, #F4E4BA, #C9A962);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #1A0F0A;
    --text-color: #F5E6D3;
    --card-bg: #2C1810;
    --shadow-color: rgba(201, 169, 98, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    transition: var(--transition);
}

[lang="en"] body,
body.lang-en {
    font-family: var(--font-en);
    direction: ltr;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.coffee-cup {
    width: 80px;
    height: 100px;
    background: var(--secondary-color);
    border-radius: 0 0 40px 40px;
    position: relative;
    margin: 0 auto 20px;
    animation: cupFloat 2s ease-in-out infinite;
}

.coffee-cup::before {
    content: '';
    position: absolute;
    right: -25px;
    top: 15px;
    width: 25px;
    height: 40px;
    border: 5px solid var(--secondary-color);
    border-left: none;
    border-radius: 0 20px 20px 0;
}

.coffee-liquid {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 70%;
    background: var(--primary-color);
    border-radius: 0 0 35px 35px;
    animation: liquidWave 1.5s ease-in-out infinite;
}

.coffee-steam {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.coffee-steam span {
    width: 8px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    animation: steam 1.5s ease-in-out infinite;
}

.coffee-steam span:nth-child(2) {
    animation-delay: 0.2s;
    height: 25px;
}

.coffee-steam span:nth-child(3) {
    animation-delay: 0.4s;
    height: 20px;
}

@keyframes cupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes liquidWave {
    0%, 100% { transform: skewX(0deg); }
    25% { transform: skewX(3deg); }
    75% { transform: skewX(-3deg); }
}

@keyframes steam {
    0% { opacity: 0; transform: translateY(0) scaleY(1); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px) scaleY(1.5); }
}

.loading-text {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   PARTICLES & FLOATING ELEMENTS
   ============================================ */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Floating Coffee Beans */
.floating-beans {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bean {
    position: absolute;
    width: 30px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.15;
    animation: beanFloat 20s infinite ease-in-out;
}

.bean::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60%;
    background: var(--bg-color);
    border-radius: 2px;
}

.bean:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 18s; }
.bean:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 22s; }
.bean:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 20s; }
.bean:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 25s; }
.bean:nth-child(5) { left: 55%; animation-delay: 3s; animation-duration: 19s; }
.bean:nth-child(6) { left: 70%; animation-delay: 5s; animation-duration: 23s; }
.bean:nth-child(7) { left: 85%; animation-delay: 2s; animation-duration: 21s; }
.bean:nth-child(8) { left: 95%; animation-delay: 4s; animation-duration: 17s; }

@keyframes beanFloat {
    0% { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
    10% { opacity: 0.15; }
    50% { transform: translateY(50vh) rotate(180deg) scale(1); }
    90% { opacity: 0.15; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(0.5); opacity: 0; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px var(--shadow-color);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 15, 10, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    position: relative;
}

/* Animated Logo Styles */
.logo {
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
    background: transparent;
    border: 0;
    outline: none;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(201, 169, 98, 0.3));
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 0 15px rgba(201, 169, 98, 0.5));
}

#animated-logo {
    height: 100%;
    width: auto;
    transition: var(--transition);
    cursor: pointer;
}

#animated-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(201, 169, 98, 0.5));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.control-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.lang-toggle .lang-text {
    font-weight: 700;
    font-size: 0.85rem;
}

.menu-toggle {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(201,169,98,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 20px;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.hero-logo {
    width: 320px;
    height: auto;
    animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    position: relative;
    z-index: 2;
    object-fit: contain;
    background: transparent;
    display: block;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(201, 169, 98, 0.3)); }
    50% { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 60px rgba(201, 169, 98, 0.6)); }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

.logo-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 0;
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(201, 169, 98, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: btnGlow 3s linear infinite;
}

@keyframes btnGlow {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out 1.2s both;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--secondary-color);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 6px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrows span {
    width: 15px;
    height: 15px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
    opacity: 0;
}

.arrows span:nth-child(1) { animation-delay: 0s; }
.arrows span:nth-child(2) { animation-delay: 0.2s; }
.arrows span:nth-child(3) { animation-delay: 0.4s; }

@keyframes arrowBounce {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.section-title i {
    color: var(--secondary-color);
    font-size: 2.2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 4px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-top: 20px;
}

/* ============================================
   AI CHAT SECTION
   ============================================ */
.ai-section {
    padding: 100px 0;
    background: var(--bg-color);
    position: relative;
}

.ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ai-avatar {
    position: relative;
    width: 150px;
    height: 150px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 3;
    border: 5px solid var(--secondary-color);
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    animation: ringPulse 2s ease-out infinite;
}

.avatar-ring:nth-child(1) { width: 170px; height: 170px; animation-delay: 0s; }
.avatar-ring:nth-child(2) { width: 200px; height: 200px; animation-delay: 0.5s; }
.avatar-ring:nth-child(3) { width: 230px; height: 230px; animation-delay: 1s; }

@keyframes ringPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.chat-box {
    width: 100%;
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: 0 20px 60px var(--shadow-color);
    overflow: hidden;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    animation: messageIn 0.4s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.bot {
    background: var(--gradient-primary);
    color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.chat-message.user {
    background: var(--secondary-color);
    color: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    gap: 15px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
}

.chat-input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.chat-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.2);
}

.chat-send {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
}

.ai-feature {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.ai-feature:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.ai-feature i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    display: block;
}

.ai-feature span {
    font-weight: 600;
    color: var(--text-color);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(201, 169, 98, 0.05) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 30px;
}

.about-features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--card-bg);
    border-radius: 50px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.feature-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px var(--shadow-color);
}

.about-img-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--secondary-color);
    border-radius: 30px;
    z-index: -1;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(61, 26, 11, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--secondary-color);
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ============================================
   VIDEOS SECTION
   ============================================ */
.videos-section {
    padding: 100px 0;
    background: var(--gradient-primary);
}

.videos-section .section-title {
    color: #fff;
}

.videos-section .section-title::after {
    background: var(--secondary-color);
}

.tiktok-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.tiktok-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    position: relative;
    aspect-ratio: 9/16;
    max-height: 450px;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: tiktokBounce 2s ease-in-out infinite;
}

@keyframes tiktokBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 4rem;
    color: #fff;
    transition: var(--transition);
}

.video-card:hover .video-overlay i {
    transform: scale(1.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px 30px;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #fff;
    flex-shrink: 0;
}

.social-card.whatsapp .social-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.social-card.instagram .social-icon { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.social-card.tiktok .social-icon { background: linear-gradient(135deg, #000, #69C9D0); }
.social-card.facebook .social-icon { background: linear-gradient(135deg, #1877F2, #0D47A1); }
.social-card.snapchat .social-icon { background: linear-gradient(135deg, #FFFC00, #FFE600); color: #000; }
.social-card.twitter .social-icon { background: linear-gradient(135deg, #000, #333); }

.social-info h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.social-info p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.95rem;
}

.social-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.1), transparent);
    transition: var(--transition);
}

.social-card:hover .social-hover-effect {
    left: 100%;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.05) 0%, var(--bg-color) 100%);
}

.location-content {
    text-align: center;
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px var(--shadow-color);
    margin-bottom: 30px;
}

.map-container iframe {
    display: block;
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.location-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gradient-primary);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-logo-img {
    width: 140px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    padding-bottom: 80px;
}

.footer-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-wave svg path {
    fill: var(--secondary-color);
    opacity: 0.3;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

[dir="ltr"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

.floating-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

[dir="ltr"] .whatsapp-tooltip {
    right: auto;
    left: 80px;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    opacity: 0.3;
    transition: var(--transition);
    z-index: 998;
}

[dir="ltr"] .admin-trigger {
    left: auto;
    right: 30px;
}

.admin-trigger:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.admin-panel.active {
    opacity: 1;
    visibility: visible;
}

.admin-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.admin-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    transition: var(--transition);
}

.admin-panel.active .admin-content {
    transform: translate(-50%, -50%) scale(1);
}

.admin-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.admin-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.admin-close:hover {
    transform: rotate(90deg);
}

.admin-login {
    padding: 40px;
    text-align: center;
}

.admin-login h3 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.admin-login input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    background: var(--bg-color);
    color: var(--text-color);
}

.admin-login button {
    padding: 15px 50px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.admin-login button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.admin-controls {
    padding: 30px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.admin-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
}

.admin-section:last-of-type {
    border-bottom: none;
}

.admin-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.admin-section h3 i {
    color: var(--secondary-color);
}

.color-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.color-control {
    text-align: center;
}

.color-control label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.color-control input[type="color"] {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
}

.social-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-control label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.social-control label i {
    width: 25px;
    text-align: center;
    color: var(--secondary-color);
}

.social-control input {
    padding: 12px 15px;
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.social-control input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.location-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.location-control label {
    font-size: 0.95rem;
    color: var(--text-color);
}

.location-control input {
    padding: 12px 15px;
    border: 2px solid rgba(201, 169, 98, 0.3);
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--bg-color);
    color: var(--text-color);
}

.images-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.image-item .delete-img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

.image-item:hover .delete-img {
    opacity: 1;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--gradient-secondary);
    color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.upload-btn:hover {
    transform: translateY(-3px);
}

.admin-actions {
    text-align: center;
    padding-top: 20px;
}

.save-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px var(--shadow-color);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .ai-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .color-controls {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 180px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .chat-messages {
        height: 250px;
    }

    .ai-features {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .floating-whatsapp {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .admin-content {
        width: 95%;
        max-height: 95vh;
    }

    .color-controls {
        grid-template-columns: 1fr;
    }

    .current-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 45px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-logo {
        width: 150px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-title i {
        font-size: 1.4rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .ai-features {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 300px;
    }

    .videos-container {
        grid-template-columns: 1fr;
    }

    .video-card {
        max-height: 400px;
    }
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ============================================
   SELECTION STYLES
   ============================================ */
::selection {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar,
    .floating-whatsapp,
    .admin-trigger,
    .scroll-indicator {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 50px 0;
    }
}
