@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --brand-blue: #0057B8;
    --brand-blue-hover: #00428A;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-graphite: #2A2A2A;
    --text-primary: #1A1A1A;
    --text-secondary: #5C5C5C;
    --border-subtle: #E0E0E0;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Corporate Hierarchy */
h1, h2, h3, h4 { color: var(--text-primary); font-weight: 600; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { text-decoration: none; transition: var(--transition); }

/* Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-wrapper {
    display: flex;
    align-items: center;
}
.official-brand-logo {
    height: 40px; /* appropriately sized for clean MS corporate style */
    object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--brand-blue); }

.btn-primary {
    background: #000000;
    color: var(--bg-white) !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: #222222;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: 2px solid var(--brand-blue);
}
.btn-outline:hover { background: var(--bg-light); }

/* Hero Section */
.hero {
    padding: 10rem 5% 6rem;
    background: linear-gradient(135deg, #F0F4F8 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 100vw; height: 100vw;
    background: radial-gradient(circle, rgba(0, 87, 184, 0.05) 0%, transparent 70%);
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    text-align: left;
}
.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; font-weight: 700; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; justify-content: flex-start; }

/* Hero Video Presentation */
.hero-video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border: 10px solid rgba(255, 255, 255, 0.6);
    background: #000;
    position: relative;
    z-index: 10;
    transform: perspective(1000px) rotateX(1deg);
}
.hero-video-frame iframe {
    width: 100%; height: 100%; display: block;
}

/* Organic Microsoft Dynamics Aura Effects */
.aura-blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    z-index: 1;
    opacity: 0.7;
}
.aura-blue {
    top: -20%; left: -20%;
    width: 60%; height: 100%;
    background: #FFFFFF; /* Adjusted to pure white */
}
.aura-yellow {
    bottom: -20%; right: -15%;
    width: 50%; height: 80%;
    background: #FFFFFF; /* Adjusted to pure white */
}

/* Custom HTML5 Video Player Overlay */
.custom-player { cursor: pointer; }
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 20;
}
.custom-player:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #FFFFFF;
}

/* YouTube Link Overlay */
.youtube-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--text-secondary); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255,255,255,0.8);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.youtube-link:hover { color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }

/* Value Bar */
.value-bar {
    background: var(--bg-graphite);
    color: var(--bg-white);
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.value-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; font-size: 0.95rem;}

/* General Sections */
section { padding: 6rem 5%; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 800px; margin-inline: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }

/* Product Table */
.erp-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.erp-table th, .erp-table td { padding: 1.5rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.erp-table th { background: var(--bg-light); font-weight: 600; color: var(--text-primary); }

/* USP Grid */
.usp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
    max-width: 1100px;
    margin: 4rem auto 0;
}
.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.usp-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}
.usp-item h5 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.usp-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* Cards */
.card {
    background: var(--bg-white);
    padding: 2rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    transition: var(--transition);
}
.card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: var(--brand-blue);
}
.icon-box {
    width: 48px; height: 48px;
    background: rgba(0, 87, 184, 0.1);
    color: var(--brand-blue);
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; margin-bottom: 1.5rem;
}

/* Contact */
.contact-form {
    display: grid; gap: 1.5rem; background: var(--bg-white); padding: 3rem;
    border: 1px solid var(--border-subtle); border-radius: 4px;
}
.form-input { padding: 1rem; border: 1px solid var(--border-subtle); width: 100%; font-family: inherit; }
.form-input:focus { outline: 2px solid var(--brand-blue); }

/* Footer */
footer { background: var(--bg-graphite); color: #A0A0A0; padding: 4rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; max-width: 1200px; margin: 0 auto; margin-bottom: 3rem;}
.footer-title { color: var(--bg-white); font-size: 1.1rem; margin-bottom: 1rem; }
.footer-grid a { color: #A0A0A0; display: block; margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--bg-white); }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 2rem; font-size: 0.85rem;}

/* Floating Business Communications Suite */
.floating-communications {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
}
.fab-chat {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #000000;
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.fab-chat:hover { transform: scale(1.1); }
.fab-whatsapp {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    box-shadow: 0 10px 25px rgba(37,211,102,0.4);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}
.fab-whatsapp:hover { transform: scale(1.1); box-shadow: 0 15px 35px rgba(37,211,102,0.5); }
.whatsapp-badge {
    position: absolute;
    top: -12px;
    right: -25px;
    background: white;
    color: #333;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    display: flex; align-items: center; gap: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Chatbot UI Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-subtle);
    animation: fadeUp 0.3s ease-out;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.chatbot-header {
    background: var(--brand-blue);
    color: white;
    padding: 1.25rem;
    display: flex; justify-content: space-between; align-items: center;
}
.chatbot-messages {
    padding: 1.5rem;
    height: 300px;
    overflow-y: auto;
    background: #F9FAFC;
}
.message.bot {
    background: white;
    padding: 1rem;
    border-radius: 8px 8px 8px 0;
    font-size: 0.95rem;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    color: var(--text-primary);
}
.chatbot-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    background: white;
}
.chatbot-input input {
    flex: 1; border: none; outline: none; font-size: 0.95rem; font-family: inherit;
}
.chatbot-input button {
    background: var(--brand-blue); border: none; color: white; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ==========================================
   MOBILE RESPONSIVENESS (Alignment Fixes)
   ========================================== */
@media (max-width: 768px) {
    /* Header & Navigation */
    header { padding: 1rem; }
    .nav-links { display: none; } /* Hide nav links on small screens to prevent overlap */
    
    /* Hero Section */
    .hero { padding: 7rem 1.5rem 3rem; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 1rem; }
    .hero p { font-size: 1rem; }
    .hero-actions { justify-content: center; flex-direction: column; width: 100%; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; }
    
    /* Layout Grids */
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    .usp-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .value-bar { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem 1.5rem; }
    
    /* Product Cards Inline Override */
    .product-cards-container { 
        grid-template-columns: 1fr !important; 
        padding: 0 !important; 
        gap: 2rem !important; 
    }
    .product-card { padding: 2.5rem 1.5rem !important; }
    
    /* General Spacing */
    section { padding: 4rem 1.5rem; }
    .section-header h2 { font-size: 2rem; }
    
    /* Chatbot Fixes */
    .chatbot-window {
        width: 90%;
        right: 5%;
        bottom: 90px;
    }
    
    /* Video Box */
    .hero-video-frame { border-width: 5px; }
}
