:root {
    --bg: #070B14;
    --bg-card: rgba(15, 23, 42, 0.5);
    --border-glass: rgba(255, 255, 255, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: #fff; overflow-x: hidden; font-family: 'Inter', 'system-ui', sans-serif; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070B14; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #3B82F6, #8B5CF6); border-radius: 3px; }
::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

/* ============ LOADING SCREEN ============ */
#loader {
    position: fixed; inset: 0; z-index: 9999; background: #070B14;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-ring {
    width: 60px; height: 60px; border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3B82F6; border-right-color: #8B5CF6;
    animation: spin 0.8s linear infinite;
}
.loader-inner {
    position: absolute; width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #06B6D4; border-left-color: #EC4899;
    animation: spin 0.6s linear infinite reverse;
}
.loader-logo {
    position: absolute; font-size: 14px; font-weight: 800; letter-spacing: 2px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: pulseGlow 1.5s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============ GLASS MORPHISM ============ */
.glass {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-strong {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(139, 92, 246, 0.2);
}

/* ============ GRADIENT TEXT ============ */
.gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 50%, #06B6D4 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ GLOW EFFECTS ============ */
.glow-blue {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15), 0 0 60px rgba(59, 130, 246, 0.05);
}
.glow-purple {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), 0 0 60px rgba(139, 92, 246, 0.05);
}

/* ============ GRADIENT BORDER ============ */
.border-gradient {
    position: relative; border-radius: 16px; overflow: hidden;
}
.border-gradient::before {
    content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6, #06B6D4, #3B82F6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: gradientShift 8s ease infinite;
    background-size: 300% 300%;
}

/* ============ BUTTONS ============ */
.btn-primary {
    position: relative; overflow: hidden; font-weight: 600; letter-spacing: 0.01em;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    background-size: 200% 200%; animation: gradientShift 4s ease infinite;
    transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}
.btn-outline {
    position: relative; overflow: hidden; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center;
}
.btn-outline:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* ============ PARTICLES CANVAS ============ */
#particles-canvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============ ORB GLOW ============ */
.orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.3;
    animation: float 8s ease-in-out infinite; pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: #3B82F6; top: -10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: #8B5CF6; top: 30%; right: -5%; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: #06B6D4; bottom: 10%; left: 30%; animation-delay: -5s; }

/* ============ SERVICE ICON ============ */
.service-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; font-size: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
}
.glass-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

/* ============ TECH TAG ============ */
.tech-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 100px; font-size: 14px; font-weight: 500;
    background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease; cursor: default;
}
.tech-tag:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* ============ PROCESS TIMELINE ============ */
.process-line {
    position: absolute; top: 28px; left: 50%; width: calc(100% - 80px); height: 2px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    transform: translateX(-50%); z-index: 0;
}
.process-dot {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px; position: relative; z-index: 1;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* ============ FAQ ============ */
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.faq-question {
    cursor: pointer; transition: color 0.3s ease;
}
.faq-question:hover { color: #8B5CF6; }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ============ TESTIMONIAL ============ */
.testimonial-card {
    flex: 0 0 calc(100% - 0px); scroll-snap-align: center;
}
@media (min-width: 768px) {
    .testimonial-card { flex: 0 0 calc(50% - 12px); }
}
@media (min-width: 1024px) {
    .testimonial-card { flex: 0 0 calc(33.333% - 16px); }
}

/* ============ CONTACT FORM ============ */
.input-futuristic {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; padding: 14px 18px; color: #fff; font-size: 15px;
    transition: all 0.3s ease; width: 100%; outline: none;
}
.input-futuristic:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
    background: rgba(30, 41, 59, 0.5);
}
.input-futuristic::placeholder { color: rgba(255, 255, 255, 0.3); }

/* ============ SECTION DIVIDER ============ */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

/* ============ DASHBOARD MOCKUP ============ */
.dashboard-mock {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
.dashboard-bar {
    height: 8px; border-radius: 4px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
}
.dashboard-ring {
    width: 60px; height: 60px; border-radius: 50%;
    border: 6px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3B82F6; border-right-color: #8B5CF6;
    animation: spin 3s linear infinite;
}

/* ============ FLOATING PHONE ============ */
.floating-phone {
    animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

/* ============ FOOTER ============ */
.footer-link {
    color: rgba(255, 255, 255, 0.5); transition: color 0.3s ease; text-decoration: none;
}
.footer-link:hover { color: #8B5CF6; }

/* ============ SOCIAL ICON ============ */
.social-icon {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.4); transition: all 0.3s ease; color: rgba(255,255,255,0.5);
}
.social-icon:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    transform: translateY(-3px);
    color: rgba(255,255,255,0.9);
}

/* ============ PAGE HERO BANNER ============ */
.page-hero {
    position: relative; min-height: 50vh; display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding-top: 100px;
}

/* ============ NAVBAR ACTIVE LINK ============ */
.nav-link {
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }

/* ============ PORTFOLIO CARD ============ */
.portfolio-card {
    border-radius: 16px; overflow: hidden; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -20px rgba(139, 92, 246, 0.3);
}
.portfolio-img {
    width: 100%; height: 220px; object-fit: cover;
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.2));
}
.portfolio-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,11,20,0.9) 0%, transparent 60%);
    display: flex; align-items: flex-end; padding: 24px;
    opacity: 0; transition: opacity 0.3s ease;
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 767px) {
    .process-line { display: none; }
    .orb-1, .orb-2, .orb-3 { opacity: 0.15; }
    .page-hero { min-height: 40vh; }
}

/* ============ KEYFRAMES ============ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============ ACTIVE NAV STYLE ============ */
.mobile-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.mobile-link:hover { color: #fff; }
