/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --dark-bg: #0b0c10;
    --darker-bg: #1f2833;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-light: #f8f9fa;
    --text-muted: #c5c6c7;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

.text-primary-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.text-light-muted {
    color: var(--text-muted);
}

.section-dark {
    background-color: var(--dark-bg);
}

.section-darker {
    background-color: var(--darker-bg);
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Glassmorphism UI Components
   ========================================================================== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-modal .modal-content {
    background: rgba(11, 12, 16, 0.85);
}

.custom-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
}
.custom-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: #fff;
    box-shadow: none;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */
.top-bar {
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons-top a {
    color: var(--text-muted);
    margin-left: 15px;
    transition: 0.3s;
}
.social-icons-top a:hover {
    color: var(--primary);
}

.header {
    transition: all 0.4s ease;
}

.header.scrolled {
    background: rgba(11, 12, 16, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    padding: 5px 0;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: 0.3s;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: 0.3s;
}

.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Mega Menu */
.dropdown-mega:hover .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}
.mega-menu {
    display: none;
    position: absolute;
    width: 600px;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    z-index: 1000;
}
.mega-menu .dropdown-item {
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}
.mega-menu .dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--primary) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary-gradient {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    transition: 0.4s;
    background-size: 200% auto;
}
.btn-primary-gradient:hover {
    background-position: right center;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.bg-image-overlay {
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-image-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(11, 12, 16, 0.9) 0%, rgba(11, 12, 16, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Slider Animations */
.swiper-slide-active .slide-up-1 { animation: fadeInUp 0.8s ease forwards 0.2s; opacity: 0; transform: translateY(30px); }
.swiper-slide-active .slide-up-2 { animation: fadeInUp 0.8s ease forwards 0.4s; opacity: 0; transform: translateY(30px); }
.swiper-slide-active .slide-up-3 { animation: fadeInUp 0.8s ease forwards 0.6s; opacity: 0; transform: translateY(30px); }
.swiper-slide-active .slide-up-4 { animation: fadeInUp 0.8s ease forwards 0.8s; opacity: 0; transform: translateY(30px); }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sections (Cards, Stats, Pricing)
   ========================================================================== */
.transition-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transition-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 210, 255, 0.3);
}

.transform-scale {
    transform: scale(1.05);
    z-index: 2;
}

.overlay-dark {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 12, 16, 0.85);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    min-width: 200px;
}

/* ==========================================================================
   Footer & Floating Elements
   ========================================================================== */
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.btn-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.btn-social:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.float-btn {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    z-index: 99;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: 0.3s;
    border: none;
}

.whatsapp-btn {
    bottom: 90px;
    background-color: #25d366;
    text-decoration: none;
}
.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: white;
}

.scroll-top-btn {
    bottom: 30px;
    background: var(--gradient-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}