/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #000;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: transparent;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    left: 0;
    right: 0;
}

.navbar {
    margin: 16px 16px 0;
}

.nav-container {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.1);
    background: transparent;
    mix-blend-mode: screen;
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #ccc;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, #fff, #888);
    transition: width 0.3s ease;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.lang-icon {
    font-size: 1.2rem;
    animation: rotateGlobe 20s linear infinite;
}

@keyframes rotateGlobe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lang-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    display: flex;
    align-items: center;
    padding-top: 160px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    color: #fff;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(45deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ccc;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #aaa;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, #fff, #ccc);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Floating Elements */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.element-content {
    color: #fff;
    user-select: none;
}

.tech-symbol {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.tech-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.element-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 30%;
    animation-delay: -2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 60%;
    animation-delay: -4s;
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #111;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    overflow: hidden;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-float-1 {
    animation: serviceFloat1 5s ease-in-out infinite;
}
.service-float-2 {
    animation: serviceFloat2 6s ease-in-out infinite;
}
.service-float-3 {
    animation: serviceFloat3 5.5s ease-in-out infinite;
}

@keyframes serviceFloat1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes serviceFloat2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
@keyframes serviceFloat3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}

.service-card:hover {
    border-color: #555;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation-play-state: paused;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: #aaa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    position: relative;
    padding-left: 20px;
}

.service-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #fff;
}

/* About Section */
.about {
    background: #000;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #aaa;
    font-size: 0.9rem;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-item {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    border: 1px solid #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item:hover {
    border-color: #555;
    transform: scale(1.05);
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
    filter: brightness(1.3);
}

/* Support Section */
.support {
    background: #111;
}

.maintenance-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.custom-plan {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.custom-plan .plan-card {
    max-width: 350px;
    width: 100%;
}

.plan-card {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #fff, #ccc);
}

.plan-card.premium::before {
    background: linear-gradient(45deg, #4CAF50, #45a049);
}

.plan-card.enterprise::before {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.plan-card.custom::before {
    background: linear-gradient(45deg, #9C27B0, #7B1FA2);
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: #555;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.most-wanted {
    position: relative;
    border: 2px solid #4CAF50;
    transform: scale(1.03);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.plan-price {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.plan-features ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.plan-features li {
    color: #ccc;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
}

.plan-btn {
    display: inline-block;
    background: linear-gradient(45deg, #fff, #ccc);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.plan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ccc;
}

/* Contact Section */
.contact {
    background: #000;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #ccc;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #333;
    border-radius: 10px;
    background: #1a1a1a;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
    background: #222;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

button[type="submit"] {
    background: linear-gradient(45deg, #fff, #ccc);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #111;
    padding: 3rem 0 1rem;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .navbar {
        margin: 10px 10px 0;
    }

    .nav-container {
        padding: 0.6rem 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        top: 80px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.97);
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
        border-bottom: 1px solid #333;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-link {
        padding: 1rem 2rem;
        margin: 0.5rem 1rem;
        border-radius: 10px;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
        background: linear-gradient(135deg, transparent, transparent);
        border: 1px solid transparent;
    }

    .nav-link:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        border: 1px solid rgba(255, 255, 255, 0.2);
        transform: translateX(10px) scale(1.05);
        color: #fff;
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link::after {
        display: none;
    }

    /* Staggered animation for menu items */
    .nav-menu.active .nav-link:nth-child(1) {
        animation: slideInRight 0.3s ease forwards;
        animation-delay: 0.1s;
        opacity: 0;
    }

    .nav-menu.active .nav-link:nth-child(2) {
        animation: slideInRight 0.3s ease forwards;
        animation-delay: 0.2s;
        opacity: 0;
    }

    .nav-menu.active .nav-link:nth-child(3) {
        animation: slideInRight 0.3s ease forwards;
        animation-delay: 0.3s;
        opacity: 0;
    }

    .nav-menu.active .nav-link:nth-child(4) {
        animation: slideInRight 0.3s ease forwards;
        animation-delay: 0.4s;
        opacity: 0;
    }

    .nav-menu.active .nav-link:nth-child(5) {
        animation: slideInRight 0.3s ease forwards;
        animation-delay: 0.5s;
        opacity: 0;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Pulse effect on active menu */
    .nav-menu.active {
        animation: menuPulse 0.3s ease;
    }

    @keyframes menuPulse {
        0% { transform: scale(0.95); opacity: 0; }
        50% { transform: scale(1.02); }
        100% { transform: scale(1); opacity: 1; }
    }

    /* Mobile tap highlight */
    .nav-link:active {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
        transform: translateX(15px) scale(0.98);
    }

    /* Language switcher mobile */
    .lang-switcher {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        margin-right: 1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    /* FIX BANDA NEAGRA - opreste orice overflow orizontal */
    .most-wanted {
        transform: scale(1) !important;
    }

    .most-wanted:hover {
        transform: scale(1) !important;
    }

    .service-float-1,
    .service-float-2,
    .service-float-3 {
        animation: serviceFloatMobile 5s ease-in-out infinite;
    }

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

    .services-grid {
        overflow: hidden;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .contact-form {
        align-items: center;
    }

    .contact-form .btn {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }

    section {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .maintenance-plans {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }
}

/* Very Small Screens */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .element-1 {
        width: 150px;
        height: 150px;
    }

    .element-2 {
        width: 100px;
        height: 100px;
    }

    .element-3 {
        width: 80px;
        height: 80px;
    }
}
/* =============================================
   CYBERPUNK / GLITCH / CRT EFFECTS
   ============================================= */

/* ---- CRT Scanline overlay ---- */
.crt-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    animation: crtFlicker 0.15s infinite;
}

@keyframes crtFlicker {
    0%   { opacity: 0.97; }
    50%  { opacity: 1; }
    100% { opacity: 0.98; }
}

/* ---- INTRO SCREEN ---- */
#intro-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-logo-wrap {
    position: relative;
    width: 320px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-logo {
    width: 320px;
    height: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1);
    position: relative;
    z-index: 2;
    animation: introLogoAnim 3.5s forwards;
}

.intro-logo-glitch {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.glitch-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
}

.glitch-r {
    filter: brightness(1) saturate(0) sepia(1) hue-rotate(-30deg) brightness(2);
    animation: glitchR 3.5s forwards;
    opacity: 0;
}

.glitch-b {
    filter: brightness(1) saturate(0) sepia(1) hue-rotate(200deg) brightness(2);
    animation: glitchB 3.5s forwards;
    opacity: 0;
}

@keyframes introLogoAnim {
    0%   { opacity: 0; transform: scale(0.7); filter: brightness(3) blur(8px); }
    8%   { opacity: 1; transform: scale(1.05); filter: brightness(2) blur(2px); }
    18%  { opacity: 0.5; transform: scale(0.97) translateX(-6px); filter: brightness(3) blur(1px); }
    24%  { opacity: 1; transform: scale(1.02) translateX(4px); filter: brightness(1.5); }
    34%  { opacity: 0.4; transform: scale(1) translateX(-3px); }
    40%  { opacity: 1; transform: scale(1); filter: brightness(1.2); }
    60%  { opacity: 1; transform: scale(1); filter: brightness(1); }
    70%  { opacity: 1; transform: scale(1); }
    80%  { opacity: 1; transform: scale(1.4); filter: brightness(4) blur(0px); }
    90%  { opacity: 0.7; transform: scale(2.2) translateY(-15px); filter: brightness(6) blur(6px); }
    97%  { opacity: 0; transform: scale(3.5) translateY(-40px); filter: brightness(10) blur(25px); }
    100% { opacity: 0; transform: scale(4); }
}

@keyframes glitchR {
    0%   { opacity: 0; transform: translateX(0); }
    8%   { opacity: 0.8; transform: translateX(10px); }
    20%  { opacity: 0.4; transform: translateX(-6px); }
    30%  { opacity: 0.7; transform: translateX(12px); }
    42%  { opacity: 0.3; transform: translateX(-8px); }
    55%  { opacity: 0.6; transform: translateX(7px); }
    65%  { opacity: 0.2; transform: translateX(-4px); }
    72%  { opacity: 0; }
    100% { opacity: 0; }
}

@keyframes glitchB {
    0%   { opacity: 0; transform: translateX(0); }
    10%  { opacity: 0.6; transform: translateX(-12px); }
    22%  { opacity: 0.3; transform: translateX(7px); }
    32%  { opacity: 0.7; transform: translateX(-10px); }
    44%  { opacity: 0.4; transform: translateX(12px); }
    56%  { opacity: 0.5; transform: translateX(-7px); }
    66%  { opacity: 0.2; transform: translateX(5px); }
    72%  { opacity: 0; }
    100% { opacity: 0; }
}

.intro-scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(255,255,255,0.04) 2px,
        rgba(255,255,255,0.04) 3px
    );
    z-index: 4;
}

.intro-static {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 150px;
    animation: staticMove 0.1s steps(2) infinite;
}

@keyframes staticMove {
    0%   { background-position: 0 0; }
    50%  { background-position: 10px 15px; }
    100% { background-position: -5px 8px; }
}

#intro-screen.explode {
    animation: introExplode 0.55s ease-in forwards;
}

@keyframes introExplode {
    0%   { opacity: 1; transform: scaleY(1); filter: brightness(1); }
    30%  { opacity: 1; transform: scaleY(1); filter: brightness(4); }
    60%  { opacity: 0.5; transform: scaleY(0.05); filter: brightness(6); }
    100% { opacity: 0; transform: scaleY(0); pointer-events: none; }
}

/* ---- GLITCH TEXT on hero title ---- */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0);
}

.glitch-text::before {
    color: #fff;
    text-shadow: 2px 0 #0ff;
    animation: glitchBefore 1.8s infinite steps(1);
    left: 2px;
}

.glitch-text::after {
    color: #fff;
    text-shadow: -2px 0 #f0f;
    animation: glitchAfter 1.8s infinite steps(1);
    left: -2px;
}

@keyframes glitchBefore {
    0%, 18%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; }
    2%   { clip-path: inset(10% 0 85% 0); opacity: 0.9; transform: translateX(5px); }
    4%   { clip-path: inset(40% 0 50% 0); opacity: 0.7; transform: translateX(-4px); }
    6%   { clip-path: inset(60% 0 30% 0); opacity: 0.9; transform: translateX(6px); }
    8%   { clip-path: inset(20% 0 70% 0); opacity: 0.5; transform: translateX(-3px); }
    10%  { clip-path: inset(80% 0 5% 0);  opacity: 0.8; transform: translateX(4px); }
    12%  { clip-path: inset(5%  0 88% 0); opacity: 0.6; transform: translateX(-5px); }
    14%  { clip-path: inset(50% 0 40% 0); opacity: 0.9; transform: translateX(3px); }
    16%  { clip-path: inset(30% 0 60% 0); opacity: 0.4; transform: translateX(-2px); }
    /* second burst */
    52%, 70% { clip-path: inset(100% 0 0 0); opacity: 0; }
    54%  { clip-path: inset(15% 0 75% 0); opacity: 0.8; transform: translateX(6px); }
    56%  { clip-path: inset(55% 0 35% 0); opacity: 0.6; transform: translateX(-4px); }
    58%  { clip-path: inset(70% 0 20% 0); opacity: 0.9; transform: translateX(5px); }
    60%  { clip-path: inset(25% 0 65% 0); opacity: 0.5; transform: translateX(-3px); }
    62%  { clip-path: inset(85% 0 8% 0);  opacity: 0.7; transform: translateX(4px); }
    64%  { clip-path: inset(10% 0 80% 0); opacity: 0.4; transform: translateX(-5px); }
}

@keyframes glitchAfter {
    0%, 20%, 100% { clip-path: inset(100% 0 0 0); opacity: 0; }
    3%   { clip-path: inset(50% 0 30% 0); opacity: 0.8; transform: translateX(-5px); }
    5%   { clip-path: inset(20% 0 65% 0); opacity: 0.6; transform: translateX(4px); }
    7%   { clip-path: inset(75% 0 10% 0); opacity: 0.9; transform: translateX(-6px); }
    9%   { clip-path: inset(5%  0 80% 0); opacity: 0.5; transform: translateX(3px); }
    11%  { clip-path: inset(35% 0 55% 0); opacity: 0.7; transform: translateX(-4px); }
    13%  { clip-path: inset(65% 0 25% 0); opacity: 0.9; transform: translateX(5px); }
    15%  { clip-path: inset(45% 0 45% 0); opacity: 0.4; transform: translateX(-3px); }
    17%  { clip-path: inset(90% 0 2% 0);  opacity: 0.6; transform: translateX(2px); }
    /* second burst */
    55%, 72% { clip-path: inset(100% 0 0 0); opacity: 0; }
    57%  { clip-path: inset(45% 0 40% 0); opacity: 0.7; transform: translateX(-5px); }
    59%  { clip-path: inset(25% 0 60% 0); opacity: 0.5; transform: translateX(4px); }
    61%  { clip-path: inset(78% 0 12% 0); opacity: 0.9; transform: translateX(-6px); }
    63%  { clip-path: inset(8%  0 82% 0); opacity: 0.4; transform: translateX(3px); }
    65%  { clip-path: inset(38% 0 52% 0); opacity: 0.7; transform: translateX(-4px); }
    67%  { clip-path: inset(62% 0 28% 0); opacity: 0.6; transform: translateX(5px); }
}

/* ---- SPRING SLIDE-IN for sections ---- */
.spring-from-left,
.spring-from-right,
.spring-from-left-item,
.spring-from-right-item {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spring-from-left       { transform: translateX(-80px); }
.spring-from-right      { transform: translateX(80px); }
.spring-from-left-item  { transform: translateX(-60px); }
.spring-from-right-item { transform: translateX(60px); }

.spring-from-left.visible,
.spring-from-right.visible,
.spring-from-left-item.visible,
.spring-from-right-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.spring-from-left-item:nth-child(1)  { transition-delay: 0s; }
.spring-from-left-item:nth-child(2)  { transition-delay: 0.1s; }
.spring-from-left-item:nth-child(3)  { transition-delay: 0.2s; }
.spring-from-right-item:nth-child(1) { transition-delay: 0s; }
.spring-from-right-item:nth-child(2) { transition-delay: 0.12s; }
.spring-from-right-item:nth-child(3) { transition-delay: 0.24s; }
.spring-from-right-item:nth-child(4) { transition-delay: 0.36s; }

/* Cyberpunk nav glow */
.nav-link {
    letter-spacing: 1px;
}
.nav-link:hover {
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

/* Cyberpunk glow on card hover */
.service-card:hover, .plan-card:hover {
    box-shadow: 0 0 20px rgba(255,255,255,0.07), 0 0 60px rgba(0,200,255,0.04) !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* ---- LOGO GLITCH ON HOVER ---- */
.logo {
    position: relative;
    display: inline-flex;
}

.logo-img-glitch-r,
.logo-img-glitch-b {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    transition: none;
}

.logo-img-glitch-r {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(-30deg) saturate(5) brightness(2);
}

.logo-img-glitch-b {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(200deg) saturate(5) brightness(2);
}

.logo:hover .logo-img {
    animation: logoMainGlitch 0.5s steps(1) infinite;
}

.logo:hover .logo-img-glitch-r {
    animation: logoGlitchR 0.5s steps(1) infinite;
}

.logo:hover .logo-img-glitch-b {
    animation: logoGlitchB 0.5s steps(1) infinite;
}

@keyframes logoMainGlitch {
    0%   { transform: translate(0);        filter: brightness(1.1); }
    10%  { transform: translate(-2px, 0);  filter: brightness(1.2); }
    20%  { transform: translate(2px, 0);   filter: brightness(1.1); }
    30%  { transform: translate(-1px, 0);  filter: brightness(1.15); }
    40%  { transform: translate(0);        filter: brightness(1.1); }
    50%  { transform: translate(2px, 0);   filter: brightness(1.2); }
    60%  { transform: translate(-2px, 0);  filter: brightness(1.1); }
    70%  { transform: translate(1px, 0);   filter: brightness(1.15); }
    80%  { transform: translate(0);        filter: brightness(1.1); }
    90%  { transform: translate(-1px, 0);  filter: brightness(1.2); }
    100% { transform: translate(0);        filter: brightness(1.1); }
}

@keyframes logoGlitchR {
    0%   { opacity: 0;    transform: translate(0); }
    10%  { opacity: 0.35; transform: translate(5px, 0); }
    20%  { opacity: 0.2;  transform: translate(-4px, 0); }
    30%  { opacity: 0.4;  transform: translate(6px, 0); }
    40%  { opacity: 0;    transform: translate(0); }
    50%  { opacity: 0.3;  transform: translate(4px, 0); }
    60%  { opacity: 0.4;  transform: translate(-5px, 0); }
    70%  { opacity: 0.15; transform: translate(3px, 0); }
    80%  { opacity: 0;    transform: translate(0); }
    90%  { opacity: 0.35; transform: translate(-4px, 0); }
    100% { opacity: 0;    transform: translate(0); }
}

@keyframes logoGlitchB {
    0%   { opacity: 0;    transform: translate(0); }
    10%  { opacity: 0.3;  transform: translate(-5px, 0); }
    20%  { opacity: 0.4;  transform: translate(4px, 0); }
    30%  { opacity: 0.15; transform: translate(-6px, 0); }
    40%  { opacity: 0.35; transform: translate(0); }
    50%  { opacity: 0;    transform: translate(5px, 0); }
    60%  { opacity: 0.25; transform: translate(-4px, 0); }
    70%  { opacity: 0.4;  transform: translate(5px, 0); }
    80%  { opacity: 0.2;  transform: translate(0); }
    90%  { opacity: 0.3;  transform: translate(-4px, 0); }
    100% { opacity: 0;    transform: translate(0); }
}

/* Touch devices - trigger glitch on tap via JS-added class */
.logo.glitch-active .logo-img {
    animation: logoMainGlitch 0.5s steps(1) 2;
}
.logo.glitch-active .logo-img-glitch-r {
    animation: logoGlitchR 0.5s steps(1) 2;
}
.logo.glitch-active .logo-img-glitch-b {
    animation: logoGlitchB 0.5s steps(1) 2;
}
/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.whatsapp-float-btn {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waBounce 2.5s ease-in-out infinite;
    border: 2px solid rgba(255,255,255,0.15);
}

.whatsapp-float-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 10px 32px rgba(37, 211, 102, 0.65);
    animation: none;
}

.whatsapp-float-btn svg {
    width: 34px;
    height: 34px;
    fill: #fff;
}

.whatsapp-float-tooltip {
    background: rgba(10,10,10,0.92);
    color: #fff;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(37,211,102,0.3);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== POPUP BANNER ===== */
.popup-banner {
    position: fixed;
    bottom: 110px;
    right: 28px;
    z-index: 8999;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 18px;
    padding: 20px 22px;
    max-width: 300px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(37,211,102,0.1);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.popup-banner-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-banner-close:hover { color: #fff; }

.popup-banner-emoji {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.popup-banner h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 700;
}

.popup-banner p {
    color: #aaa;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.popup-banner-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    justify-content: center;
}

.popup-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

@media (max-width: 480px) {
    .popup-banner {
        right: 12px;
        bottom: 100px;
        max-width: calc(100vw - 24px);
    }
    .whatsapp-float {
        right: 16px;
        bottom: 20px;
    }
}