/* ==================================
   CSS Variables & Typography
   ================================== */
:root {
    /* Color Palette */
    --primary-blue: #036ffc; /* Vibrant electric blue */
    --dark-blue: #040b17; /* Deep navy background */
    --medium-blue: #0a162e; /* Dark navy */
    --light-grey: #f4f7fb; /* Cool light grey */
    --medium-grey: #64748b; /* Slate 500 for neutral text */
    --dark-grey: #334155; /* Slate 700 */
    --white: #ffffff;
    --bg-sky: #dbeafe; /* More noticeable sky blue background */
    --accents: #00a2ff; /* Bright cyan-blue for hovers/accents */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing & Sizes */
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --section-padding: 80px 0;
}

/* ==================================
   Base Resets
   ================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--white);
    background-color: var(--dark-blue);
    background-image: linear-gradient(rgba(4, 11, 23, 0.8), rgba(4, 11, 23, 0.8)), url('assets/theme_bg.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

/* ==================================
   Layout & Utility
   ================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: rgba(4, 11, 23, 0.7); /* Dark glassmorphism */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-white {
    color: var(--white) !important;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Section Titles */
.section-title {
    margin-bottom: 3rem;
}

.subtitle {
    display: inline-block;
    color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-blue);
    margin: 1rem auto 0;
    border-radius: 2px;
}
.title-underline.left {
    margin: 1rem 0 0 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 14px rgba(3, 111, 252, 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-blue);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
}

/* ==================================
   Navbar
   ================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(4, 11, 23, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-speed) ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-speed) ease;
}

.logo-brand:hover {
    transform: scale(1.02);
}

.brand-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.brand-title span {
    color: var(--primary-blue);
    font-weight: 400;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--medium-grey);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--light-grey);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn):hover, .nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: width var(--transition-speed) ease;
}

.nav-links a:not(.btn):hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 24px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* ==================================
   Hero Section
   ================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Video Background Styling */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,0.95), rgba(10,40,90,0.85));
    z-index: 1;
}

/* Typing Effect Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary-blue);
    animation: blink 1s infinite;
    margin-left: 5px;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    color: var(--white);
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary-blue);
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================================
   Tabs Section
   ================================== */
.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(4, 11, 23, 0.6);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tabs-header {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--medium-grey);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-main);
}

.tab-btn i {
    font-size: 1.2rem;
}

.tab-btn:hover {
    color: var(--primary-blue);
    background: rgba(3, 111, 252, 0.05);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.05);
}

.tabs-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.tab-text p {
    color: var(--light-grey);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.tab-features {
    margin-bottom: 20px;
}

.tab-features li {
    margin-bottom: 10px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-features li i {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.tab-image .image-placeholder {
    width: 100%;
    padding-top: 75%;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(4, 11, 23, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(3, 111, 252, 0.1);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.service-card:hover .icon-wrapper {
    background: var(--primary-blue);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-card p {
    color: var(--light-grey);
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.read-more i {
    font-size: 0.8rem;
    transition: transform var(--transition-speed) ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* ==================================
   About Snippet Section
   ================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    padding-top: 100%; /* square ratio */
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.image-placeholder i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.opacity-50 {
    opacity: 0.5;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--light-grey);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-list li i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 3px;
}

.feature-list li strong {
    color: var(--white);
}

/* ==================================
   CTA Section
   ================================== */
.tech-bg {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1e3a8a 100%);
    position: relative;
}

.cta-container h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

/* ==================================
   Footer
   ================================== */
.footer {
    background-color: #0b1120; /* Darker than dark blue */
    color: #94a3b8; /* Slate 400 */
    padding-top: 5rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.footer-logo span {
    color: var(--primary-blue);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--white);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-info li i {
    color: var(--primary-blue);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==================================
   Animations
   ================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ==================================
   Media Queries
   ================================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tab-pane-inner {
        gap: 20px;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000000;
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        display: none; /* Hidden by default */
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        justify-content: flex-start;
        padding: 15px 20px;
    }
    .tab-btn.active {
        border-bottom-color: transparent;
        border-left-color: var(--primary-blue);
        background: var(--light-grey);
    }
    .tab-pane-inner {
        grid-template-columns: 1fr;
    }
    .tabs-content {
        padding: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}

/* ==================================
   Chatbot Widget
   ================================== */
.chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-main);
}

.chatbot-button {
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background: var(--dark-blue);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.chatbot-header-text i {
    margin-right: 8px;
    color: #25D366;
}

.close-chatbot {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.close-chatbot:hover {
    opacity: 1;
}

.chatbot-body {
    padding: 20px;
    background: #f8f9fa;
    min-height: 120px;
}

.chat-msg {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    border-bottom-left-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--dark-grey);
    line-height: 1.5;
}

.chatbot-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

.chat-wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
}

.chat-wa-btn:hover {
    background: #128C7E;
    color: white;
}

.chatbot-body {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-msg {
    background: var(--primary-blue);
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 0;
}

.bot-msg {
    align-self: flex-start;
}

.chatbot-input-area {
    display: flex;
    border-top: 1px solid #eaeaea;
}

.chatbot-input-area input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.chatbot-input-area button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot-input-area button:hover {
    background: var(--dark-blue);
}
