/* ========================================
   HORODENKO - Consultoria em TI
   Theme: Dark + Green
   ======================================== */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a40;
    --green-primary: #00d97e;
    --green-dark: #00a85f;
    --green-glow: rgba(0, 217, 126, 0.15);
    --green-glow-strong: rgba(0, 217, 126, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: #1f2a40;
    --border-hover: #00d97e;
    --header-height: 88px;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(0, 217, 126, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green-primary);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background: var(--green-dark);
    box-shadow: 0 0 20px var(--green-glow-strong);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn--outline:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
    box-shadow: 0 0 20px var(--green-glow);
}

.btn--large {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* --- Header / Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: transparent;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav__logo:hover {
    color: var(--green-primary);
}

.nav__logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav__list {
    display: flex;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-primary);
    background: rgba(0, 217, 126, 0.08);
}

.nav__link.active {
    color: var(--green-primary);
}

.nav__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__toggle,
.nav__close {
    display: none;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--text-primary);
    transition: color var(--transition);
}

.nav__toggle:hover,
.nav__close:hover {
    color: var(--green-primary);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    color: var(--green-primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--green-primary);
    border-radius: 2px;
    opacity: 0.4;
}

.hero__description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.hero__glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--green-glow-strong) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.hero__shape {
    position: absolute;
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 126, 0.2);
    animation: float 6s ease-in-out infinite;
}

.hero__shape--1 {
    width: 200px;
    height: 200px;
    background: rgba(0, 217, 126, 0.03);
    transform: rotate(45deg);
    animation-delay: 0s;
}

.hero__shape--2 {
    width: 150px;
    height: 150px;
    background: rgba(0, 217, 126, 0.05);
    transform: rotate(30deg);
    top: 50px;
    right: 40px;
    animation-delay: 2s;
    border-color: rgba(0, 217, 126, 0.15);
}

.hero__shape--3 {
    width: 100px;
    height: 100px;
    background: rgba(0, 217, 126, 0.08);
    transform: rotate(60deg);
    bottom: 60px;
    left: 40px;
    animation-delay: 4s;
    border-color: rgba(0, 217, 126, 0.25);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 45deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 45deg)); }
}

.hero__shape--1 { --rotation: 45deg; }
.hero__shape--2 { --rotation: 30deg; }
.hero__shape--3 { --rotation: 60deg; }

/* --- Section Header --- */
.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-primary);
    background: rgba(0, 217, 126, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Services --- */
.servicos {
    padding: 100px 0;
}

.servicos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.servico-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all var(--transition);
    overflow: hidden;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.servico-card:hover {
    border-color: rgba(0, 217, 126, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

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

.servico-card--featured {
    border-color: rgba(0, 217, 126, 0.2);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 217, 126, 0.05) 100%);
}

.servico-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--green-primary);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.servico-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 126, 0.1);
    border-radius: 12px;
    color: var(--green-primary);
    margin-bottom: 24px;
}

.servico-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.servico-card__description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.servico-card__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servico-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.servico-card__list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --- Inteligência Artificial --- */
.ia {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.ia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--green-primary), transparent);
    opacity: 0.2;
}

.ia__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.ia__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.ia__text strong {
    color: var(--green-primary);
}

.ia__features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.ia__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition);
}

.ia__feature:hover {
    border-color: rgba(0, 217, 126, 0.3);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.ia__feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 126, 0.1);
    border-radius: 10px;
    color: var(--green-primary);
    flex-shrink: 0;
}

.ia__feature h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ia__feature p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ia__visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-height: 400px;
}

.ia__visual-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 217, 126, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.ia__visual-card {
    position: relative;
    z-index: 1;
}

.ia__visual-card--1 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    animation: float 5s ease-in-out infinite;
}

.ia__visual-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dot-color);
    opacity: 0.8;
    animation: dotPulse 2s ease-in-out infinite;
}

.ia__visual-dot:nth-child(3) { animation-delay: 0.3s; }
.ia__visual-dot:nth-child(5) { animation-delay: 0.6s; }

.ia__visual-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--green-dark), var(--green-primary));
    border-radius: 1px;
    opacity: 0.4;
}

.ia__visual-card--2 {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 217, 126, 0.08) 100%);
    border: 1px solid rgba(0, 217, 126, 0.2);
    border-radius: 24px;
    color: var(--green-primary);
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* --- Sobre Nós --- */
.sobre {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.sobre__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sobre__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.sobre__text strong {
    color: var(--green-primary);
}

.sobre__stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1;
}

.stat__plus {
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-primary);
}

.stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sobre__visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sobre__card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: all var(--transition);
}

.sobre__card:hover {
    border-color: rgba(0, 217, 126, 0.3);
    box-shadow: var(--shadow-glow);
}

.sobre__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 126, 0.1);
    border-radius: 10px;
    color: var(--green-primary);
    margin-bottom: 16px;
}

.sobre__card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.sobre__card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Contato --- */
.contato {
    padding: 100px 0;
}

.contato__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}

.contato__form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.form__group {
    margin-bottom: 24px;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form__input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition);
    outline: none;
}

.form__input::placeholder {
    color: var(--text-muted);
}

.form__input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 3px var(--green-glow);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form__select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.contato__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contato__info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all var(--transition);
}

.contato__info-card:hover {
    border-color: rgba(0, 217, 126, 0.3);
    transform: translateX(4px);
}

.contato__info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 126, 0.1);
    border-radius: 10px;
    color: var(--green-primary);
    flex-shrink: 0;
}

.contato__info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contato__info-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__logo-img {
    height: 36px;
    width: auto;
}

.footer__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer__links a:hover {
    color: var(--green-primary);
    transform: translateX(4px);
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer__social-link:hover {
    color: var(--green-primary);
    border-color: var(--green-primary);
    background: rgba(0, 217, 126, 0.1);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Animations --- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Form Success Message --- */
.form__success {
    text-align: center;
    padding: 40px;
}

.form__success-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 126, 0.15);
    border-radius: 50%;
    color: var(--green-primary);
    margin: 0 auto 16px;
}

.form__success h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.form__success p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__visual {
        display: none;
    }

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

    .ia__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ia__visual {
        display: none;
    }

    .sobre__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contato__grid {
        grid-template-columns: 1fr;
    }

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

@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        padding: 80px 32px 32px;
        transition: right var(--transition);
        z-index: 999;
        display: flex;
        flex-direction: column;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .nav__link {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
    }

    .nav__buttons .btn {
        display: none;
    }

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

    .sobre__stats {
        gap: 24px;
    }

    .stat__number {
        font-size: 2rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .footer__container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media screen and (max-width: 480px) {
    .hero__title {
        font-size: 1.9rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .servico-card {
        padding: 28px 24px;
    }

    .contato__form {
        padding: 24px;
    }

    .sobre__stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
