/* 
====================================================================
   PROJECT: WILL SISTEMAS (PROFESSIONAL PORTFOLIO)
   THEME: CYBERPUNK / HIGH-END / NEON
   AUTHOR: WILL SISTEMAS & DESIGN
====================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    /* PALETTE: CYBER NEON */
    --neon-green: #00ff9d;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --dark-bg: #050505;
    --dark-card: #0a0a0a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #888888;

    /* EFFECTS */
    --glow-green: 0 0 10px rgba(0, 255, 157, 0.5), 0 0 20px rgba(0, 255, 157, 0.3);
    --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    --grid-line: rgba(0, 255, 157, 0.05);

    /* SPACING & LAYOUT */
    --container-width: 1200px;
    --header-height: 80px;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* BACKGROUND GRID ANIMATION */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center bottom;
    z-index: -1;
    perspective: 500px;
    transform: scale(1.1);
    animation: gridMove 20s linear infinite;
    mask-image: linear-gradient(to bottom, transparent 10%, black 90%);
}

@keyframes gridMove {
    0% {
        transform: translateY(0) scale(1.1);
    }

    100% {
        transform: translateY(50px) scale(1.1);
    }
}

/* HEADER / NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    text-shadow: var(--glow-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--neon-green);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-green);
    transition: 0.3s;
    box-shadow: var(--glow-green);
}

nav a:hover {
    color: var(--neon-green);
}

nav a:hover::after {
    width: 100%;
}

.btn-cta {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-cta:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: var(--glow-green);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    position: relative;
    padding-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
    color: var(--neon-green);
    text-shadow: var(--glow-green);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* GLITCH EFFECT */
.glitch {
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--neon-purple);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(79px, 9999px, 53px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(89px, 9999px, 96px, 0);
    }

    100% {
        clip: rect(28px, 9999px, 39px, 0);
    }
}

/* CARDS & SECTIONS */
.section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-main);
}

.section-title span {
    color: var(--neon-cyan);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 10px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px -10px rgba(0, 255, 157, 0.2);
}

.card i {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* PORTFOLIO GRID */
#portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.pf-card-public {
    background: var(--dark-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.pf-card-public:hover {
    transform: translateY(-5px);
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

.pf-img-container {
    height: 200px;
    overflow: hidden;
    background: #111;
}

.pf-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.pf-card-public:hover img {
    transform: scale(1.1);
}

.pf-content {
    padding: 20px;
}

.pf-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.pf-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-link {
    display: inline-block;
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* WHATSAPP BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #25d366;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
    }

    .btn-cta {
        display: none;
    }
}