/* =========================================
   QCore Group Technologies — Corporate CSS
   Dark-first, minimal, premium holding style
   ========================================= */

/* === BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-feature-settings: "cv11", "ss01";
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

/* === SUCCESS MODAL === */
#form-success {
    opacity: 0;
    transition: opacity 0.2s ease;
}

#form-success.flex {
    opacity: 1;
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* === NAVBAR GLASS === */
.nav-glass {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === LANGUAGE SWITCH === */
.lang-btn {
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: transparent;
    color: #c7d2fe;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: rgba(99, 102, 241, 0.6);
    color: #ffffff;
}

.lang-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.8);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

/* === HERO === */
.hero-grid {
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 25%, #a78bfa 50%, #818cf8 75%, #6366f1 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 6s ease infinite;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Stagger children */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.35s; }

/* === CARDS === */
.about-card,
.service-card {
    position: relative;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

/* === MEDIA CARDS === */
.media-card img {
    display: block;
    background: linear-gradient(135deg, #0B0F1A, #151030);
}

.about-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.08);
}

/* Service card inner glow on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

/* === TAGS (Tech stack) === */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(165, 180, 252, 0.8);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

/* === STAT ITEMS === */
.stat-item {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

/* === PRODUCT FEATURED === */
.product-featured {
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.product-featured:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.08);
}

/* === COMING SOON CARDS === */
.coming-soon-card {
    transition: all 0.4s ease;
}

.coming-soon-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* === FORM INPUTS === */
input, textarea {
    font-family: 'Inter', sans-serif;
}

input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* === FOOTER === */
footer a:hover {
    text-decoration: none;
}

/* === SMOOTH SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-gradient-text {
        font-size: inherit;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .product-featured {
        padding: 1.5rem;
    }
}

/* === ANIMATION UTILITIES === */
@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Pulse border for featured product */
@keyframes pulse-border {
    0%, 100% { border-color: rgba(99, 102, 241, 0.2); }
    50% { border-color: rgba(99, 102, 241, 0.4); }
}

/* Float animation for scroll indicator */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-8px) translateX(-50%); }
}

/* === CURSOR GLOW (optional, for premium feel) === */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}
