/* --- ROOT VARIABLES --- */
:root {
    --primary: #000000;
    --accent: #ffd700; /* Gold */
    --white: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #1a1a1a;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- NAVIGATION (Fixed Visibility & Branding) --- */
.navbar {
    background: var(--primary);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 15px;
}

.logo { 
    height: 50px; 
    margin: 0;
}

.brand-name {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent) !important;
}

/* --- HERO SECTIONS --- */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('img/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 120px 8%;
    text-align: center;
}

.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }

/* --- GRID & LAYOUT --- */
.container { padding: 80px 10%; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* --- PRODUCT CARDS (Home) --- */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 5px solid var(--accent);
    transition: 0.3s ease;
}

.card:hover { transform: translateY(-10px); }
.card h3 { margin-bottom: 15px; color: var(--primary); }

/* --- MISSION, VISION, GOAL (About) --- */
.vmg-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- CEO PROFILE (Perfect Sizing) --- */
.ceo-section {
    background: var(--primary);
    color: var(--white);
    padding: 60px;
    border-radius: 30px;
    margin-top: 50px;
}

.ceo-img {
    width: 300px;
    height: 380px;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid var(--accent);
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: -50px;
}

.contact-info { background: var(--accent); padding: 50px; color: var(--primary); }
.contact-form { padding: 50px; }

input, select, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--accent);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

/* =========================================================
   CHAT WINDOW & INTERNAL STYLES 
   ========================================================= */
.chat-window {
    width: 320px; height: 450px; background: white; border-radius: 20px;
    display: flex; flex-direction: column; box-shadow: var(--shadow); border: 1px solid #eee;
    overflow: hidden;
}
.chat-header { background: var(--primary); color: var(--accent); padding: 15px; display: flex; justify-content: space-between; border-radius: 20px 20px 0 0; }
.chat-body { flex: 1; padding: 15px; overflow-y: auto; background: #fefefe; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 15px; border-radius: 15px; font-size: 0.9rem; max-width: 85%; }
.msg.user { background: var(--accent); align-self: flex-end; color: #000; font-weight: 500; }
.msg.ai { background: #f0f0f0; align-self: flex-start; }
.chat-trigger {
    background: var(--primary); color: var(--accent); padding: 15px 30px;
    border-radius: 50px; cursor: pointer; font-weight: bold; border: 2px solid var(--accent);
}

.chat-footer {
    padding: 12px 15px;
    background: var(--white);
    border-top: 1px solid #eee;
    display: flex;
    align-items: center; 
    gap: 10px;
}

.chat-footer input {
    flex: 1;
    margin-bottom: 0; 
    padding: 10px 15px;
    border-radius: 25px;
    border: 1px solid #ddd;
    outline: none;
}

.chat-footer button {
    background: var(--primary) !important;
    color: var(--accent) !important;
    border: none;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px; 
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0; 
    transition: 0.3s;
}

.chat-footer button:hover {
    background: #333 !important;
    transform: scale(1.05);
}


/* =========================================================
   FIXED FLOATING ELEMENTS (SOCIAL, SHOP, CHAT, MARQUEE)
   ========================================================= */

/* 1. Moving Text Ticker (Base Level) */
.moving-text-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px; /* Forced consistent height */
    background: var(--primary);
    color: var(--accent);
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: bold;
    display: flex;
    align-items: center; /* Perfect vertical centering */
    border-top: 2px solid var(--accent);
    z-index: 2500;
}

.marquee {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* 2. Chat Container (Middle Level) */
.chat-container {
    position: fixed;
    bottom: 65px; /* 20px above the 45px marquee */
    right: 25px;
    z-index: 3001;
}

/* 3. Shop Buttons (Top Level) */
.floating-shop-actions {
    position: fixed;
    right: 25px;
    bottom: 140px; /* Safely above the chat button */
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 3000;
}

.shop-btn {
    background: var(--accent);
    color: var(--primary);
    width: 85px; 
    height: 85px;
    border-radius: 18px; 
    text-decoration: none;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary);
    transition: 0.3s ease;
    padding: 8px;
}

.shop-btn i {
    font-size: 1.4rem; 
    margin-bottom: 4px;
}

.shop-btn span {
    font-size: 0.65rem; 
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    display: block;
}

.shop-btn:hover {
    background: var(--primary);
    color: var(--accent);
    transform: scale(1.1) translateX(-5px);
}

/* 4. Social Sidebar (Side Level) */
.social-sidebar {
    position: fixed;
    right: 25px;
    top: 35%; /* High enough to avoid shop buttons on small laptops */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2999;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    border: 1px solid var(--accent);
}

.social-icon:hover {
    transform: translateX(-5px);
    background: var(--accent);
    color: var(--primary);
}


/* =========================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================= */

@media (max-width: 900px) {
    .grid-3, .grid-2, .contact-wrapper { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .ceo-img { width: 100%; height: auto; }
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 0.8rem;
    }

    /* Adjust floating element spacing for smaller screens */
    .chat-container { right: 15px; bottom: 55px; }
    .floating-shop-actions { right: 15px; bottom: 120px; gap: 10px; }
    .social-sidebar { right: 15px; top: 25%; }
    
    /* Minimize Shop Buttons to just circles */
    .shop-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .shop-btn span {
        display: none; /* Hide the text */
    }
    .shop-btn i {
        margin-bottom: 0;
        font-size: 1.3rem;
    }

    /* Shrink Social Icons */
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Shrink Moving Text Ticker */
    .moving-text-container {
        height: 35px;
        font-size: 0.75rem;
    }
}