:root {
    --bg-color: #2C2141;
    --bg-darker: #1e1929;
    --primary: #DB2807;
    --primary-hover: #e83a1a;
    --accent-instagram: #7C309C;
    --accent-whatsapp: #77FE00;
    --text-main: #f0f0f5;
    --text-muted: #b8b0c5;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--primary);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

h1 span, h2 span {
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.section {
    padding: 120px 0;
}
.bg-darker {
    background-color: var(--bg-darker);
}
.text-center {
    text-align: center;
}
.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
}
.w-100 {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    min-height: 44px;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(219, 40, 7, 0.4);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(219, 40, 7, 0.6);
}
.btn-whatsapp {
    background: transparent;
    border: 2px solid var(--accent-whatsapp);
    color: var(--accent-whatsapp);
    padding: 12px 28px;
}
.btn-whatsapp:hover {
    background: rgba(119, 254, 0, 0.15);
    color: #fff;
}
.btn-whatsapp-primary {
    background: var(--accent-whatsapp);
    color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(119, 254, 0, 0.4);
}
.btn-whatsapp-primary:hover {
    background: #8cff1a;
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(119, 254, 0, 0.6);
}
.btn-instagram {
    background: transparent;
    border: 2px solid var(--accent-instagram);
    color: var(--accent-instagram);
    padding: 12px 28px;
}
.btn-instagram:hover {
    background: rgba(124, 48, 156, 0.2);
    color: #fff;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.navbar.scrolled {
    background: rgba(44, 33, 65, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 15px 0;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-wrap {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a:not(.btn) {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}
.nav-links a:not(.btn):hover {
    color: #fff;
}
.nav-links a:not(.btn)::after,
.nav-drawer a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after,
.nav-drawer a:not(.btn):hover::after {
    width: 100%;
}
.nav-link-about::after { background: var(--accent-whatsapp); }
.nav-link-services::after { background: var(--accent-instagram); }
.nav-link-portfolio::after { background: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.3s, opacity 0.3s;
}
.navbar.open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.navbar.open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
.navbar.open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.navbar.open .nav-drawer {
    opacity: 1;
    pointer-events: auto;
}
.nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 8, 15, 0.62);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.nav-drawer-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    width: min(360px, calc(100vw - 20px));
    min-height: 70vh;
    background: linear-gradient(155deg, rgba(44, 33, 65, 0.96) 0%, rgba(30, 25, 41, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    transform: translateX(24px);
    transition: transform 0.25s ease;
}
.navbar.open .nav-drawer-panel {
    transform: translateX(0);
}
.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.nav-drawer-header strong {
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}
.nav-close {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}
.nav-close:hover {
    background: rgba(255, 255, 255, 0.15);
}
.nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nav-drawer-links a {
    font-size: 1.1rem;
    font-weight: 700;
    position: relative;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-drawer-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.nav-drawer-actions .btn {
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(44, 33, 65, 0.9) 0%, rgba(30, 25, 41, 0.85) 50%, rgba(44, 33, 65, 0.75) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 680px;
}
.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 25px;
    line-height: 1.1;
}
.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    filter: brightness(0.95) contrast(1.05);
}
.about-text h2 {
    font-size: 3.2rem;
    margin-bottom: 30px;
}
.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.about-text p:last-of-type {
    margin-bottom: 0;
}

/* Glassmorphism */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px 40px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}
.service-card {
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-12px);
    border-color: rgba(124, 48, 156, 0.4);
    box-shadow: 0 20px 40px rgba(124, 48, 156, 0.2);
}
.icon-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
}
.icon-circle .service-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--accent-instagram);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.service-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}
.services-cta {
    margin-top: 50px;
}

/* CTA section */
.cta {
    position: relative;
    padding: 100px 0;
}
.cta-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}
.cta-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(44, 33, 65, 0.88) 0%, rgba(30, 25, 41, 0.92) 100%);
    z-index: -1;
}
.cta .container {
    position: relative;
    z-index: 0;
}
.cta .section-title {
    margin-bottom: 20px;
}
.cta p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 35px;
}
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: var(--bg-darker);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.footer-logo {
    height: 40px;
    width: auto;
    opacity: 0.9;
}
.footer-logo:hover {
    opacity: 1;
}
.footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer p a {
    color: var(--primary);
    font-weight: 600;
}
.footer p a:hover {
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.9s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-image { order: 2; }
    .about-text { order: 1; }
    .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero {
        text-align: center;
        min-height: 100vh;
    }
    .hero-content { margin: 0 auto; }
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.15rem; }
    .hero-actions { justify-content: center; }

    .section { padding: 80px 0; }
    .section-title { font-size: 2.5rem; margin-bottom: 40px; }
    .about-text h2 { font-size: 2.5rem; }
    .service-card { padding: 35px 28px; }
    .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .logo-img { height: 40px; }
}
