/*==================== VARIABLES ====================*/
:root {
    /* Cores principais */
    --black-color: #000000;
    --white-color: #ffffff;
    --dark-color-1: #101111;
    --dark-color-2: #1e2123;
    --dark-color-3: #2a2118;
    
    /* Cores de destaque */
    --primary-color: #00ff00;
    --secondary-color: #00d4ff;
    --accent-color: #ff00ff;
    
    /* Tipografia */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;
    
    /* Tamanhos */
    --header-height: 3.5rem;
    
    /* Z-index */
    --z-fixed: 100;
    --z-modal: 1000;
}

/*==================== BASE ====================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--black-color);
    color: var(--white-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.section {
    padding: 5rem 0 2rem;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white-color);
    margin-bottom: 1rem;
}

.section__title-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/*==================== HEADER ====================*/
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.3s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.nav__logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav__logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.nav__logo-text {
    position: relative;
}

.nav__logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nav__menu {
    position: relative;
}

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    position: relative;
    color: var(--white-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.938rem;
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    box-shadow: 0 0 5px var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white-color);
    transition: color 0.3s;
}

.nav__toggle:hover,
.nav__close:hover {
    color: var(--primary-color);
}

/*==================== HOME ====================*/
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + 2rem);
    position: relative;
    overflow: hidden;
}

.home__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.home__title {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.code-highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.code-key {
    color: var(--secondary-color);
}

.code-string {
    color: var(--accent-color);
}

.typing-text {
    color: var(--primary-color);
    position: relative;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.glitch-text {
    position: relative;
    color: var(--primary-color);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.home__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/*==================== BUTTON ====================*/
.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--black-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.button--primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.button--secondary {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

.button--secondary:hover {
    background-color: var(--white-color);
    color: var(--black-color);
    transform: translateY(-2px);
}

.button__icon {
    transition: transform 0.3s;
}

.button:hover .button__icon {
    transform: translateX(5px);
}

/*==================== CODE WINDOW ====================*/
.code-window {
    background: var(--dark-color-1);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    animation: window-glow 3s ease-in-out infinite;
}

@keyframes window-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 0, 0.3); }
    50% { box-shadow: 0 0 50px rgba(0, 255, 0, 0.6); }
}

.code-window__header {
    background: var(--dark-color-2);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.code-window__dots {
    display: flex;
    gap: 0.5rem;
}

.code-window__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    animation: dot-pulse 2s ease-in-out infinite;
}

.code-window__dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.code-window__dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.code-window__title {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.code-window__content {
    padding: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.line-number {
    color: rgba(255, 255, 255, 0.3);
    min-width: 30px;
    text-align: right;
}

.code-text {
    color: var(--white-color);
}

.code-keyword {
    color: var(--primary-color);
}

.code-class {
    color: var(--secondary-color);
}

.code-function {
    color: var(--accent-color);
}

.typing-animation .code-text {
    position: relative;
}

.typing-animation .code-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
}

/*==================== MATRIX BACKGROUND ====================*/
.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black-color);
    opacity: 0.1;
    z-index: 0;
    overflow: hidden;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    animation: matrix-move 20s linear infinite;
}

@keyframes matrix-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/*==================== SERVICES ====================*/
.services {
    background: var(--dark-color-1);
    position: relative;
}

.services__container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services__card {
    background: var(--dark-color-2);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.services__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.1), transparent);
    transition: left 0.5s;
}

.services__card:hover::before {
    left: 100%;
}

.services__card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.services__icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.services__icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: rotate 3s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.services__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
    line-height: 1.3;
}

.services__description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.services__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.938rem;
}

.services__list i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

/*==================== ABOUT ====================*/
.about {
    position: relative;
}

.about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about__image-wrapper {
    position: relative;
    background: var(--dark-color-2);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: scan-down 3s linear infinite;
}

@keyframes scan-down {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 255, 0, 0.1) 50%,
        transparent 100%
    );
    animation: hologram 2s ease-in-out infinite;
}

@keyframes hologram {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.about__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about__stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--dark-color-2);
    border: 1px solid rgba(0, 255, 0, 0.1);
    border-radius: 10px;
}

.about__stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.about__stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
}

/*==================== PORTFOLIO ====================*/
.portfolio {
    background: var(--dark-color-1);
}

.portfolio__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio__card {
    background: var(--dark-color-2);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 0, 0.1);
    transition: all 0.3s;
}

.portfolio__card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.portfolio__image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, var(--dark-color-3), var(--dark-color-1));
    overflow: hidden;
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio__card:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__links {
    display: flex;
    gap: 1rem;
}

.portfolio__link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--black-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
}

.portfolio__link:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--primary-color);
}

.portfolio__data {
    padding: 1.5rem;
}

.portfolio__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.portfolio__description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.938rem;
}

.portfolio__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.portfolio__tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary-color);
}

/*==================== CONTACT ====================*/
.contact {
    position: relative;
}

.contact__container {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__card {
    background: var(--dark-color-2);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
}

.contact__card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.contact__icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--white-color);
}

.contact__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
}

.contact__form {
    background: var(--dark-color-2);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.1);
}

.contact__form-group {
    margin-bottom: 1.5rem;
}

.contact__form-input {
    width: 100%;
    padding: 1rem;
    background: var(--dark-color-1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 5px;
    color: var(--white-color);
    font-family: var(--font-body);
    font-size: 0.938rem;
    transition: all 0.3s;
}

.contact__form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.contact__form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact__form-input.is-invalid {
    border-color: #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.contact__form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    cursor: pointer;
}

.contact__form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.contact__form-checkbox.is-invalid {
    color: #ff0000;
}

.contact__form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 0.938rem;
}

.contact__form-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.contact__form-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

/*==================== FOOTER ====================*/
.footer {
    background: var(--dark-color-1);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
}

.footer__container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer__logo-img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.footer__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
    line-height: 1.6;
}

.footer__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--white-color);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    font-size: 0.938rem;
}

.footer__link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer__newsletter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer__newsletter-input {
    flex: 1;
    padding: 0.75rem;
    background: var(--dark-color-2);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 5px;
    color: var(--white-color);
    font-family: var(--font-body);
    font-size: 0.938rem;
}

.footer__newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.footer__newsletter-button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--black-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.125rem;
    transition: all 0.3s;
}

.footer__newsletter-button:hover {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.footer__newsletter-message {
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
}

.footer__newsletter-message.success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.footer__newsletter-message.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background: var(--dark-color-2);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-size: 1.125rem;
    transition: all 0.3s;
}

.footer__social-link:hover {
    background: var(--primary-color);
    color: var(--black-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.footer__copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 0, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer__group {
    margin-top: 0.5rem;
    color: var(--primary-color);
}

/*==================== SCROLL UP ====================*/
.scrollup {
    position: fixed;
    right: 2rem;
    bottom: -20%;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--black-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: var(--z-fixed);
    transition: all 0.4s;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.scrollup:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.scrollup.show-scroll {
    bottom: 7rem;
}

/*==================== WHATSAPP FLOATING BUTTON ====================*/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 2rem;
    left: 2rem;
    background: #25D366;
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    z-index: var(--z-fixed);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    animation: whatsapp-pulse 2s ease-in-out infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-color-2);
    color: var(--white-color);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--dark-color-2);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/*==================== ANIMATIONS ====================*/
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.6s ease-out;
}

/*==================== RESPONSIVE ====================*/
@media screen and (max-width: 968px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home__container,
    .about__container,
    .contact__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home__image {
        order: -1;
    }

    .section {
        padding: 4rem 0 2rem;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__subtitle {
        font-size: 0.813rem;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-color-1);
        padding: 4rem 2rem 2rem;
        transition: right 0.3s;
        border-left: 2px solid var(--primary-color);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        row-gap: 2rem;
    }

    .nav__link {
        font-size: 1.125rem;
        padding: 0.5rem 0;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
    }

    .services__container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .services__card {
        padding: 2rem 1.5rem;
    }

    .contact__info {
        gap: 1.5rem;
    }

    .contact__card {
        padding: 1.5rem;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        left: 1.5rem;
        font-size: 1.5rem;
    }

    .whatsapp-tooltip {
        display: none;
    }

    .scrollup {
        width: 45px;
        height: 45px;
        right: 1.5rem;
        font-size: 1.125rem;
    }

    .scrollup.show-scroll {
        bottom: 6.5rem;
    }
}

@media screen and (max-width: 576px) {
    .home {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .home__title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .home__description {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 0 1.5rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    .section__subtitle {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .home__buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.938rem;
    }

    .services__container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .services__card {
        padding: 1.75rem 1.25rem;
    }

    .services__title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .services__description {
        font-size: 0.938rem;
    }

    .services__list {
        gap: 0.625rem;
    }

    .services__list li {
        font-size: 0.875rem;
    }

    .about__container {
        gap: 1.5rem;
    }

    .about__image-wrapper {
        min-height: 300px;
    }

    .about__description {
        font-size: 0.938rem;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .about__stat {
        padding: 1.25rem;
    }

    .about__stat-number {
        font-size: 2rem;
    }

    .about__stat-label {
        font-size: 0.875rem;
    }

    .portfolio__container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .portfolio__image {
        height: 200px;
    }

    .portfolio__title {
        font-size: 1.125rem;
    }

    .portfolio__description {
        font-size: 0.875rem;
    }

    .contact__container {
        gap: 2rem;
    }

    .contact__info {
        gap: 1.25rem;
    }

    .contact__card {
        padding: 1.25rem;
    }

    .contact__icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .contact__title {
        font-size: 1rem;
    }

    .contact__description {
        font-size: 0.875rem;
    }

    .contact__form {
        padding: 1.75rem 1.25rem;
    }

    .contact__form-input {
        padding: 0.875rem;
        font-size: 0.875rem;
    }

    .contact__form-checkbox {
        font-size: 0.813rem;
        line-height: 1.5;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__description {
        font-size: 0.875rem;
    }

    .footer__title {
        font-size: 1rem;
    }

    .footer__link {
        font-size: 0.875rem;
    }

    .footer__newsletter {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer__newsletter-input {
        width: 100%;
        padding: 0.875rem;
    }

    .footer__newsletter-button {
        width: 100%;
        padding: 0.875rem;
    }

    .code-window {
        margin-top: 1rem;
    }

    .code-window__content {
        padding: 1rem;
        font-size: 0.75rem;
    }

    .code-line {
        gap: 0.75rem;
    }

    .line-number {
        min-width: 25px;
        font-size: 0.75rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.25rem;
        left: 1.25rem;
        font-size: 1.375rem;
    }

    .scrollup {
        width: 40px;
        height: 40px;
        right: 1.25rem;
        bottom: -20%;
        font-size: 1rem;
    }

    .scrollup.show-scroll {
        bottom: 6rem;
    }

    .nav__logo {
        font-size: 1.25rem;
    }

    .nav__logo-img {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 400px) {
    .home__title {
        font-size: 1.25rem;
    }

    .section__title {
        font-size: 1.5rem;
    }

    .services__card,
    .contact__form,
    .contact__card {
        padding: 1.5rem 1rem;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 1rem;
        left: 1rem;
        font-size: 1.25rem;
    }

    .scrollup {
        width: 38px;
        height: 38px;
        right: 1rem;
    }

    .scrollup.show-scroll {
        bottom: 5.75rem;
    }
}

