/* ==========================================================================
   VIZUEL78 — ULTRA PRO DESIGN OVERHAUL
   DRAMATIC visual changes. Every section transformed.
   ========================================================================== */

/* ─── PREMIUM FONT ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(140px);
    opacity: 0.5;
    border-radius: 50%;
    animation: pulse-blob 8s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(255, 16, 83, 0.15);
}

.blob-2 {
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: rgba(121, 40, 202, 0.1);
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: rgba(0, 242, 255, 0.05);
}

@keyframes pulse-blob {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

.mobile-menu-active {
    overflow: hidden !important;
}

#mobileMenu.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}


/* ─── FILM GRAIN — CINEMATIC TEXTURE ──────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
}

/* ─── HERO — ANIMATED GRADIENT TITLE ──────────────────────────────────────── */
.hero-section h1[data-i18n="hero.title1"] {
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #ff1053 25%,
        #ffffff 50%,
        #00f2ff 75%,
        #ffffff 100%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroGradientShift 8s ease infinite;
}

/* Preserve subtitle style */
.hero-section h1[data-i18n="hero.title2"] {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    animation: none !important;
}

@keyframes heroGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero icon — bigger glow */
.hero-icon {
    filter: drop-shadow(0 0 80px rgba(255, 16, 83, 0.5)) !important;
    animation: heroIconPulse 3s ease-in-out infinite alternate !important;
}

@keyframes heroIconPulse {
    0% { filter: drop-shadow(0 0 40px rgba(255, 16, 83, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 100px rgba(255, 16, 83, 0.7)); transform: scale(1.05); }
}

/* Hero bottom gradient fade */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, #030005, transparent);
    z-index: 2;
    pointer-events: none;
}

/* ─── GLOWING SECTION DIVIDERS ────────────────────────────────────────────── */
#services::before,
#portfolio::before,
#team::before,
#tech::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 16, 83, 0.3), rgba(121, 40, 202, 0.2), transparent);
    z-index: 10;
}

/* ─── SERVICES CARDS — GLOWING BORDERS ────────────────────────────────────── */
#services .glass-card {
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
    transition: all 0.5s var(--ease-expo) !important;
    position: relative !important;
}

#services .glass-card::after {
    content: '' !important;
    position: absolute !important;
    inset: -1px !important;
    border-radius: 13px !important;
    padding: 1px !important;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 16, 83, 0.3) 50%, rgba(121, 40, 202, 0.2) 70%, transparent 100%) !important;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
    mask-composite: exclude !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

#services .glass-card:hover::after {
    opacity: 1 !important;
}

#services .glass-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 80px -20px rgba(255, 16, 83, 0.12) !important;
}

/* ─── PORTFOLIO — DRAMATIC HOVER TRANSFORMATION ──────────────────────────── */
.portfolio-item {
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.portfolio-item__image img {
    filter: brightness(0.65) saturate(0.7) !important;
    transition: all 1s var(--ease-expo) !important;
}

.portfolio-item:hover .portfolio-item__image img {
    filter: brightness(1.05) saturate(1.2) !important;
    transform: scale(1.1) !important;
}

/* Animated border glow on hover */
.portfolio-item::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 16, 83, 0.5) 25%, rgba(121, 40, 202, 0.4) 50%, rgba(0, 242, 255, 0.3) 75%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 4;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.portfolio-item:hover {
    transform: translateY(-10px) !important;
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 80px -30px rgba(255, 16, 83, 0.15) !important;
}

/* Number — much more visible */
.portfolio-item__number {
    font-size: 80px !important;
    color: rgba(255, 255, 255, 0.015) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 900 !important;
}

.portfolio-item:hover .portfolio-item__number {
    color: rgba(255, 16, 83, 0.08) !important;
}

/* ─── TEAM CARDS — DRAMATIC GLOW ──────────────────────────────────────────── */
.team-card.glass-card {
    transition: all 0.6s var(--ease-expo) !important;
    overflow: hidden !important;
}

.team-card.glass-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
}

/* First ant — RED glow */
.team-card:first-child:hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px -30px rgba(255, 16, 83, 0.25),
        0 0 0 1px rgba(255, 16, 83, 0.1) !important;
    border-color: rgba(255, 16, 83, 0.15) !important;
}

/* Second ant — PURPLE glow */
.team-card:nth-child(2):hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px -30px rgba(121, 40, 202, 0.25),
        0 0 0 1px rgba(121, 40, 202, 0.1) !important;
    border-color: rgba(121, 40, 202, 0.15) !important;
}

/* Third ant — BLUE glow */
.team-card:nth-child(3):hover {
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 100px -30px rgba(0, 242, 255, 0.25),
        0 0 0 1px rgba(0, 242, 255, 0.1) !important;
    border-color: rgba(0, 242, 255, 0.15) !important;
}

/* ─── BUTTONS — VISIBLE SHINE EFFECT ──────────────────────────────────────── */
.btn-gradient {
    position: relative !important;
    overflow: hidden !important;
    box-shadow:
        0 0 0 1px rgba(255, 16, 83, 0.3),
        0 8px 30px rgba(255, 16, 83, 0.3) !important;
    animation: ctaPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate !important;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 
            0 0 0 1px rgba(255, 16, 83, 0.3), 
            0 8px 30px rgba(255, 16, 83, 0.2);
    }
    100% {
        box-shadow: 
            0 0 0 2px rgba(255, 16, 83, 0.7), 
            0 15px 45px rgba(255, 16, 83, 0.6),
            0 0 20px rgba(255, 16, 83, 0.4);
    }
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s var(--ease-expo);
    pointer-events: none;
}

.btn-gradient:hover::after {
    left: 150%;
}

.btn-gradient:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow:
        0 0 0 1px rgba(255, 16, 83, 0.5),
        0 15px 50px rgba(255, 16, 83, 0.4),
        0 0 120px -30px rgba(255, 16, 83, 0.2) !important;
}

/* ─── FOOTER CTA — DRAMATIC TEXT ──────────────────────────────────────────── */
.text-outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1) !important;
    transition: all 1s var(--ease-expo) !important;
}

.final-vision-cta:hover .text-outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 0 80px rgba(255, 16, 83, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, #ff1053 0%, #ff7a18 30%, #ff1053 60%, #9d00ff 100%) !important;
    background-size: 300% 300% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: gradientText 6s ease infinite !important;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── FOOTER CTA BUTTON — PURPLE GLOW ────────────────────────────────────── */
.btn-gradient-reverse {
    background: linear-gradient(135deg, #9d00ff 0%, #ff1053 100%) !important;
    box-shadow:
        0 0 0 1px rgba(157, 0, 255, 0.3),
        0 15px 50px rgba(255, 16, 83, 0.25),
        0 0 100px -30px rgba(157, 0, 255, 0.2) !important;
    animation: ctaReversePulse 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate !important;
}

@keyframes ctaReversePulse {
    0% {
        box-shadow: 
            0 0 0 1px rgba(157, 0, 255, 0.3), 
            0 15px 50px rgba(255, 16, 83, 0.25),
            0 0 100px -30px rgba(157, 0, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 0 0 2px rgba(157, 0, 255, 0.6), 
            0 20px 60px rgba(255, 16, 83, 0.45),
            0 0 120px -20px rgba(157, 0, 255, 0.5);
    }
}

.btn-gradient-reverse:hover {
    box-shadow:
        0 0 0 1px rgba(157, 0, 255, 0.5),
        0 25px 80px rgba(255, 16, 83, 0.35),
        0 0 150px rgba(157, 0, 255, 0.15) !important;
    transform: translateY(-5px) scale(1.04) !important;
}

/* ─── GLASS CARDS — ENHANCED DEPTH ────────────────────────────────────────── */
.glass-card {
    background: rgba(8, 5, 15, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(30px) saturate(150%) !important;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 16, 83, 0.08) !important;
}

/* Top glow line — gradient */
.glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 16, 83, 0.5), rgba(121, 40, 202, 0.3), transparent) !important;
}

/* ─── NAVBAR — REFINED ON SCROLL ──────────────────────────────────────────── */
#navbar.scrolled {
    backdrop-filter: blur(40px) saturate(200%) !important;
    background: rgba(2, 0, 4, 0.92) !important;
    box-shadow: 0 1px 0 rgba(255, 16, 83, 0.06) !important;
}

/* ─── MODAL — ELEVATED ────────────────────────────────────────────────────── */
#contactModal .glass-card,
#modalContent {
    border-radius: 24px !important;
    box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.config-option div {
    border-radius: 14px !important;
    transition: all 0.3s var(--ease-expo) !important;
}

/* Removing redundant white box shadow to let premium neon styling take over */

input[type="text"],
input[type="email"],
textarea {
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: rgba(255, 16, 83, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 16, 83, 0.08) !important;
}

/* ─── PRELOADER — COMPACT ─────────────────────────────────────────────────── */
.preloader-logo {
    width: 60px !important;
    height: 60px !important;
    border-radius: 16px !important;
    font-size: 1.8rem !important;
    background: linear-gradient(135deg, #ff1053, #c70039) !important;
    box-shadow: 0 0 100px rgba(255, 16, 83, 0.5) !important;
}

/* ─── MARQUEE — GHOSTLY ───────────────────────────────────────────────────── */
.marquee-content span {
    opacity: 0.06 !important;
    transition: opacity 0.5s ease;
}

.marquee-container:hover .marquee-content span {
    opacity: 0.15 !important;
}

/* ─── SCROLLBAR — BRANDED ─────────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 16, 83, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 16, 83, 0.4);
}

/* ─── TEXT SELECTION — BRANDED ────────────────────────────────────────────── */
::selection {
    background: rgba(255, 16, 83, 0.3);
    color: white;
}

/* ─── FILTER BUTTONS — REFINED ────────────────────────────────────────────── */
.filter-btn.active {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 4px 20px rgba(255, 255, 255, 0.1) !important;
}

/* ─── LANG SWITCHER — GLOW ────────────────────────────────────────────────── */
.lang-btn--active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ─── TECH NODES — GLOW FLOAT ─────────────────────────────────────────────── */
.tech-node {
    animation: techFloat 6s ease-in-out infinite;
    transition: all 0.4s var(--ease-expo) !important;
}

.tech-node:nth-child(odd) {
    animation-delay: -3s;
}

@keyframes techFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.tech-node:hover {
    background: rgba(255, 16, 83, 0.08) !important;
    border-color: rgba(255, 16, 83, 0.4) !important;
    transform: scale(1.2) !important;
    box-shadow: 0 0 40px rgba(255, 16, 83, 0.15) !important;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .portfolio-item__number {
        font-size: 48px !important;
    }
}

/* ─── AURORA BOREALIS EFFECT ──────────────────────────────────────────────── */
.aurora-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.4;
}

.aurora {
    position: absolute;
    width: 150%;
    height: 60%;
    border-radius: 50%;
    filter: blur(120px);
    will-change: transform;
}

.aurora-1 {
    top: -30%;
    left: -25%;
    background: radial-gradient(ellipse, rgba(255, 16, 83, 0.15) 0%, transparent 70%);
    animation: auroraFloat1 12s ease-in-out infinite alternate;
}

.aurora-2 {
    top: -20%;
    right: -25%;
    background: radial-gradient(ellipse, rgba(121, 40, 202, 0.12) 0%, transparent 70%);
    animation: auroraFloat2 15s ease-in-out infinite alternate;
}

.aurora-3 {
    top: 10%;
    left: 10%;
    background: radial-gradient(ellipse, rgba(0, 242, 255, 0.06) 0%, transparent 70%);
    animation: auroraFloat3 18s ease-in-out infinite alternate;
}

@keyframes auroraFloat1 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(10%, 5%) rotate(8deg) scale(1.1); }
}

@keyframes auroraFloat2 {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(-8%, 8%) rotate(-5deg) scale(1.15); }
}

@keyframes auroraFloat3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, -10%) scale(1.2); }
}

/* ─── SCROLL INDICATOR ────────────────────────────────────────────────────── */
.scroll-line-anim {
    animation: scrollLineDown 2s ease-in-out infinite;
}

@keyframes scrollLineDown {
    0% { transform: translateY(-100%); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

#scrollIndicator {
    transition: opacity 0.5s ease;
}

/* ─── COUNTER NUMBERS ─────────────────────────────────────────────────────── */
.counter-number {
    font-family: 'Inter', 'Outfit', sans-serif;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

/* ─── STATS SECTION ───────────────────────────────────────────────────────── */
.counter-number {
    transition: color 0.3s ease;
}

.counter-number.counted {
    color: white;
}
