/* ============================================
   AL IMARA Website - Elegant Custom Styles
   ============================================ */

/* Root Variables - Elegant Color Scheme */
:root {
    --primary-color: #202020;
    --primary-dark: #151515;
    --primary-light: #2a2a2a;
    --gold-color: #b58d6a;
    --gold-light: #c9a380;
    --gold-dark: #9d7a5a;
    --secondary-color: #F5F5F5;
    --text-dark: #202020;
    --text-gray: #4A5568;
    --text-light: #718096;
    --bg-gray: #F7FAFC;
    --bg-cream: #FAF8F6;
    --border-color: #E2E8F0;
    --success-color: #48BB78;
    --error-color: #F56565;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-gold: 0 4px 20px rgba(181, 141, 106, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', serif;
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

/* ============================================
   Navigation Styles
   ============================================ */

#navbar {
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.98) 0%, rgba(21, 21, 21, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(181, 141, 106, 0.2);
}

#navbar.scrolled {
    background: linear-gradient(135deg, rgba(32, 32, 32, 1) 0%, rgba(21, 21, 21, 1) 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--gold-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-image: 
        linear-gradient(135deg, rgba(32, 32, 32, 0.92) 0%, rgba(21, 21, 21, 0.92) 100%),
        url('../images/hero/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.85) 0%, rgba(21, 21, 21, 0.90) 100%);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(181, 141, 106, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(181, 141, 106, 0.08) 0%, transparent 50%);
}

.hero-title {
    font-size: 3.75rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.9;
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-color);
    font-size: 2rem;
    cursor: pointer;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.4s ease;
    display: inline-block;
    border: 2px solid var(--gold-color);
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(181, 141, 106, 0.3);
    border-color: var(--gold-light);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.4s ease;
    display: inline-block;
    border: 2px solid var(--gold-color);
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.05rem;
}

/* ============================================
   Section Styles
   ============================================ */

.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 900;
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    margin-top: 24px;
}

/* ============================================
   Service Cards
   ============================================ */

.service-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-light) 100%);
    transition: height 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-color);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 2.2rem;
    color: var(--gold-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(32, 32, 32, 0.2);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-cream) 100%);
    color: var(--primary-color);
}

.service-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 18px;
    font-weight: 700;
    font-family: 'Cinzel Decorative', serif;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.service-card:hover .service-title {
    color: var(--white);
}

.service-description {
    color: var(--text-gray);
    line-height: 1.8;
    font-family: 'Cinzel', serif;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.service-card:hover .service-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Compact Service Cards */
.service-card-compact {
    background: var(--white);
    padding: 16px 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    max-width: 160px;
    flex: 0 1 auto;
}

.service-icon-small {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold-color);
}

.service-title-small {
    font-size: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
    font-family: 'Cinzel', serif;
    line-height: 1.2;
    margin: 0;
}

/* ============================================
   Product Sections
   ============================================ */

.product-image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gold-color);
}

.product-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-weight: 700;
    color: #64748b;
    font-size: 1.1rem;
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
    font-family: 'Cinzel', serif;
    border: 2px solid var(--gold-color);
}

/* ============================================
   Portfolio Gallery
   ============================================ */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 380px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-color);
}

.portfolio-image-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image-placeholder img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(32, 32, 32, 0.95) 0%, transparent 100%);
    padding: 35px 25px 25px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.5px;
}

.portfolio-overlay h4::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold-color);
    margin-bottom: 12px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    margin-right: 18px;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Cinzel', serif;
    letter-spacing: 0.3px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 0 0 4px rgba(181, 141, 106, 0.1);
    background: var(--bg-cream);
}

#form-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 18px;
    font-weight: 500;
    font-family: 'Cinzel', serif;
}

#form-message.success {
    background: #C6F6D5;
    color: #22543D;
    border: 2px solid #9AE6B4;
}

#form-message.error {
    background: #FED7D7;
    color: #742A2A;
    border: 2px solid #FC8181;
}

/* ============================================
   Footer
   ============================================ */

.footer-link {
    color: #CBD5E0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Cinzel', serif;
}

.footer-link:hover {
    color: var(--gold-color);
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(181, 141, 106, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(181, 141, 106, 0.3);
}

.social-icon:hover {
    background: var(--gold-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold-color);
}

/* ============================================
   Floating Action Buttons
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid var(--white);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
}

.factory-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 30px rgba(181, 141, 106, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid var(--white);
}

.factory-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 40px rgba(181, 141, 106, 0.5);
}

.portfolio-float {
    position: fixed;
    bottom: 185px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--gold-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 6px 30px rgba(32, 32, 32, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid var(--white);
}

.portfolio-float:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 40px rgba(32, 32, 32, 0.5);
    color: var(--white);
}

/* ============================================
   Scroll to Top Button
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-dark) 100%);
    color: var(--white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    box-shadow: var(--shadow-gold);
    z-index: 90;
    transition: all 0.3s ease;
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-color) 100%);
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(181, 141, 106, 0.4);
}

.scroll-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   About Section (Stats)
   ============================================ */

#about {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(181, 141, 106, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(181, 141, 106, 0.1) 0%, transparent 50%);
}

#about h2, #about p, #about div {
    position: relative;
    z-index: 1;
}

#about .text-6xl {
    color: var(--gold-color);
    font-family: 'Cinzel Decorative', serif;
    text-shadow: 0 2px 20px rgba(181, 141, 106, 0.3);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .portfolio-item {
        height: 320px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
    
    .factory-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 85px;
        right: 20px;
    }
    
    .portfolio-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 145px;
        right: 20px;
    }
    
    .scroll-top {
        bottom: 210px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(181, 141, 106, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(181, 141, 106, 0.05) 0%, transparent 50%);
}

/* Elegant separator */
.elegant-separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-color), transparent);
    margin: 20px auto;
}

/* Image placeholder fallback */
img[src*="placeholder"] {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* ============================================
   Language Switcher
   ============================================ */

.lang-switcher {
    display: inline-flex;
    background: rgba(181, 141, 106, 0.1);
    border-radius: 4px;
    padding: 2px;
    border: 1px solid var(--gold-color);
}

.lang-switcher a {
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-switcher a.active {
    background: var(--gold-color);
    color: white;
}

.lang-switcher a:hover:not(.active) {
    background: rgba(181, 141, 106, 0.2);
}

/* ============================================
   Video Section
   ============================================ */

.video-section {
    width: 100%;
    background: var(--primary-color);
    padding: 0;
    margin: 0;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    min-height: 400px;
    max-height: 700px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .hero-video {
        min-height: 300px;
        max-height: 500px;
    }
}
