/* ===== BASE & ANIMATIONS ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0a2e; }
::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 3px; }

/* Text gradient utility */
.text-gradient {
    background: linear-gradient(135deg, #818cf8, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ===== HEADER ===== */
#header.scrolled {
    background: rgba(15, 10, 46, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding-bottom: 2px;
}
.nav-link:hover { color: white; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    border-radius: 2px;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.mobile-nav-link {
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}
.mobile-nav-link:hover { color: white; }

/* ===== HERO ===== */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99,102,241,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(56,189,248,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 30% 30%, rgba(168,85,247,0.08) 0%, transparent 50%);
}

.hero-particles {
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.15), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.12), transparent),
        radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,0.08), transparent),
        radial-gradient(1.5px 1.5px at 10% 80%, rgba(255,255,255,0.1), transparent),
        radial-gradient(1.5px 1.5px at 90% 10%, rgba(255,255,255,0.07), transparent);
    animation: float-particles 20s ease-in-out infinite;
}

@keyframes float-particles {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(0.5deg); }
    66% { transform: translateY(5px) rotate(-0.3deg); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    font-weight: 600;
    border-radius: 0.875rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    border-radius: 0.875rem;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ===== SECTION TAGS & TITLES ===== */
.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 9999px;
    color: #a5b4fc;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title { font-size: 3rem; }
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.glass-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s;
}
.glass-card:hover .icon-box { transform: scale(1.1) rotate(-5deg); }

/* ===== SERVICE CARD ===== */
.service-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
    opacity: 0;
    transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.service-icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--tw-gradient-from), var(--tw-gradient-to));
    transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

/* ===== STAT CARD ===== */
.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s;
}
.stat-card:hover {
    background: rgba(99,102,241,0.08);
    border-color: rgba(99,102,241,0.2);
    transform: scale(1.05);
}

/* ===== FORM ===== */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.875rem;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
    font-family: 'Inter', sans-serif;
}
.form-input:focus {
    border-color: #6366f1;
    background: rgba(99,102,241,0.05);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }

/* ===== SOCIAL ICON ===== */
.social-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.social-icon:hover {
    background: rgba(99,102,241,0.15);
    border-color: #6366f1;
    color: #818cf8;
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fade-in 1s ease forwards; }
.animate-fade-in-up { animation: fade-in-up 1s ease forwards; }
.animate-fade-in-up-delay { animation: fade-in-up 1s ease 0.2s forwards; opacity: 0; }
.animate-fade-in-up-delay2 { animation: fade-in-up 1s ease 0.4s forwards; opacity: 0; }

/* Scroll reveal */
[data-aos] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}
