/* ========================================
   McSoftsis - Modern Design System
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   CSS Variables & Design Tokens
   ======================================== */
:root {
    /* Primary Colors - Modern Gradient Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-dark: #5568d3;
    --primary-light: #7c8ef7;
    --primary-color: #667eea;

    /* Secondary Colors */
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --secondary-color: #f5576c;

    /* Accent Colors */
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-color: #4facfe;

    /* Success/Info/Warning/Danger */
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --info-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --danger-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);

    /* Neutral Colors */
    --dark-bg: #0f0f23;
    --dark-card: #1a1a2e;
    --dark-hover: #25254a;
    --text-primary: #ffffff;
    /* Higher contrast for better visibility on dark backgrounds */
    --text-secondary: rgba(255, 255, 255, 0.90);
    --text-muted: rgba(255, 255, 255, 0.70);

    /* Light Theme */
    --light-bg: #f8f9ff;
    --light-card: #ffffff;
    --light-text: #2d3748;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(102, 126, 234, 0.1);
    --shadow-md: 0 4px 16px rgba(102, 126, 234, 0.15);
    --shadow-lg: 0 8px 32px rgba(102, 126, 234, 0.2);
    --shadow-xl: 0 16px 48px rgba(102, 126, 234, 0.25);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* ========================================
   Global Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

/* Utility Classes */
.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-secondary {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========================================
   Animated Background
   ======================================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--dark-bg);
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(67, 233, 123, 0.1) 0%, transparent 50%);
    animation: bgMove 20s ease infinite;
}

@keyframes bgMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-5%, -5%) rotate(120deg);
    }

    66% {
        transform: translate(5%, 5%) rotate(240deg);
    }
}

/* Floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-40px) translateX(-10px);
    }

    75% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* ========================================
   Navigation Bar
   ======================================== */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-normal);
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(102, 126, 234, 0.15);
}

.dropdown-menu {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.15);
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Mobile Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-family: var(--font-display);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-lg);
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid;
    border-image: var(--primary-gradient) 1;
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--primary-gradient);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xxl) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.3s backwards;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Floating animation for hero image */
.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse 3s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--dark-card);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.3);
}

.card:hover::before {
    opacity: 0.05;
}

.card>* {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.card-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent 30%);
    animation: rotate 6s linear infinite;
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto var(--spacing-md);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: var(--shadow-glow);
}

/* Ensure headings inside cards are always visible on dark backgrounds */
.card h5,
.card h4,
.card h3,
.card h2,
.service-card h5,
.card.text-center h5 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* ========================================
   Pricing Cards
   ======================================== */
.pricing-card {
    background: var(--dark-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    border: 2px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition-normal);
    position: relative;
}

.pricing-card.featured {
    border-color: rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.pricing-header {
    margin-bottom: var(--spacing-lg);
}

.pricing-title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.pricing-header p {
    color: white !important;
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.pricing-header .text-muted {
    color: white !important;
    opacity: 0.85;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonial-card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition-normal);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(102, 126, 234, 0.3);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.testimonial-info h5 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.testimonial-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: var(--spacing-xxl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark-card);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    color: var(--text-secondary);
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Utility Classes
   ======================================== */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.glass-effect {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-lg);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px) scale(1);
    }
}

/* ========================================
   Form Styles
   ======================================== */
.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control,
.form-select,
select.form-control {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--text-primary) !important;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select.form-control option {
    background: var(--dark-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

.invalid-feedback {
    color: #ff6b6b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================
   Loading Animation - Modern & Attractive
   ======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: hidden;
}

.page-loader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse-bg 4s ease-in-out infinite;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 1;
}

/* Logo/Brand Animation */
.loader-logo {
    margin-bottom: 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.loader-brand-img {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    animation: float 3s ease-in-out infinite;
}

.loader-brand-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    animation: float 3s ease-in-out infinite;
}

.brand-bracket {
    color: var(--primary-color);
    font-weight: 700;
    animation: pulse-bracket 2s ease-in-out infinite;
}

.brand-name {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0.5rem;
}

/* Code Lines Animation */
.code-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 300px;
    margin: 1rem 0;
}

.code-line {
    height: 8px;
    background: linear-gradient(90deg,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(102, 126, 234, 0.8) 50%,
        rgba(102, 126, 234, 0.3) 100%);
    border-radius: 4px;
    width: var(--width);
    opacity: 0;
    animation: codeLine 2s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Circular Loader */
.loader-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.circular-loader {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.loader-path {
    stroke: url(#gradient);
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: dash 2s ease-in-out infinite;
}

/* Loading Text */
.loader-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
}

.loading-word {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-dots {
    display: flex;
    gap: 0.2rem;
}

.dot {
    color: var(--primary-color);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

/* Progress Bar */
.loader-progress {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
    width: 0%;
    animation: progressFill 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

.progress-percentage {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Floating Particles */
.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    opacity: 0;
    animation: particleFloat 3s ease-in-out infinite;
    animation-delay: var(--delay);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
}

/* Keyframe Animations */
@keyframes pulse-bg {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-bracket {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

@keyframes codeLine {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 283;
    }
    50% {
        stroke-dashoffset: 70;
    }
    100% {
        stroke-dashoffset: 283;
    }
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) scale(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .loader-brand-text {
        font-size: 1.8rem;
    }

    .code-lines,
    .loader-progress {
        width: 250px;
    }

    .loader-circle {
        width: 80px;
        height: 80px;
    }

    .loader-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .loader-brand-text {
        font-size: 1.5rem;
    }

    .code-lines,
    .loader-progress {
        width: 200px;
    }

    .loader-brand-img {
        max-width: 80px;
    }
}
