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

:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #00e5ff; /* Electric Blue */
    --primary-glow: rgba(0, 229, 255, 0.3);
    --accent: #39ff14; /* Neon Green */
    --text-main: #f0f4f8;
    --text-dim: #94a3b8;
    --gradient-hero: linear-gradient(135deg, #0a0b10 0%, #1a1c2e 100%);
    --gradient-accent: linear-gradient(90deg, #00e5ff, #007bff);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, .brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Hero Section */
/* Hero Slider */
.hero {
    height: 100vh;
    overflow: hidden;
}

.carousel-item {
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out !important;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    padding: 10px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.glow-text {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Buttons */
.btn-tech {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-tech:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4);
    color: white;
}

/* Cards */
/* Services Section */
.bg-services {
    background: linear-gradient(rgba(10, 11, 16, 0.9), rgba(10, 11, 16, 0.9)), url('../img/services_bg.png');
    background-size: cover;
    background-attachment: fixed;
}
.service-card {
    padding: 2.5rem;
    border-radius: 20px;
    height: 100%;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.service-card:hover {
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Testimonials */
.testimonial-card {
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(10, 11, 16, 0.8);
    border-color: var(--primary);
}

.star-rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Chat Widget UI */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
    transition: var(--transition-smooth);
}

.chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-window {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 380px;
    height: 500px;
    background: rgba(10, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 9999;
    box-shadow: var(--shadow-tech);
    overflow: hidden;
}

@media (max-width: 576px) {
    .chat-window {
        width: 100vw !important;
        height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        top: 0 !important;
        left: 0 !important;
        border-radius: 0 !important;
        position: fixed !important;
        z-index: 1000000 !important; /* ULTRA HIGH */
        padding-top: 60px; /* Space for a potential notch/navbar */
    }
    
    .chat-window .border-bottom {
        padding: 15px 25px !important;
        background: rgba(0,0,0,0.8) !important;
        margin-top: 10px;
    }

    #closeChat {
        padding: 15px !important;
        margin-right: -10px;
    }
}

#chatMessages {
    flex: 1;
    overflow-y: auto !important;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0,0,0,0.1);
}

.chat-message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.85rem;
    line-height: 1.4;
}

.bot-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.user-message {
    align-self: flex-end;
    background: var(--gradient-accent);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeIn 0.8s ease forwards;
}
