:root { 
    --primary-color: #2ecc71;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --dark-bg: #0a192f;
    --light-bg: #ffffff;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --section-spacing: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

[data-theme="dark"] {
    --bg-color: var(--dark-bg);
    --text-color: var(--text-light);
    --card-bg: #172a45;
}

[data-theme="light"] {
    --bg-color: var(--light-bg);
    --text-color: var(--text-dark);
    --card-bg: #f8f9fa;
}

#matrix {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.1;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar1, .bar2, .bar3 {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-menu.change .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu.change .bar2 {
    opacity: 0;
}

.mobile-menu.change .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        max-width: 300px;
        padding: 2rem;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 20px;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        color: var(--text-color);
    }

    .mobile-menu {
        display: block;
    }
}

.policy {
    padding: 8rem 2rem 4rem;
}

.policy-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.policy-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(46, 204, 113, 0.2);
}

.policy-content h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--secondary-color);
}

.policy-content p, .policy-content ul {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.policy-content ul {
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .policy {
        padding: 6rem 1rem 2rem;
    }
    
    .policy-content {
        padding: 2rem;
    }
}

.theme-toggle {
    position: fixed;
    bottom: 140px;
    right: 2rem;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 50%;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

[data-theme="light"] .theme-toggle i {
    transform: rotate(360deg);
}

@media (max-width: 768px) {
    .theme-toggle {
        bottom: 100px;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 12rem 2rem 4rem;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 3rem auto;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.15);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio {
    padding: var(--section-spacing) 2rem;
}

.project-section {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
}

.project-details h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-stack span {
    background: rgba(46, 204, 113, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-features {
    list-style: none;
}

.project-features li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(46, 204, 113, 0.05);
    border-radius: 8px;
    position: relative;
    padding-left: 2.5rem;
}

.project-features li::before {
    content: "✓";
    color: var(--primary-color);
    position: absolute;
    left: 1rem;
}

.about {
    padding: var(--section-spacing) 2rem;
}

.about-section {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
}

.section-text h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.features-list i {
    color: var(--primary-color);
    min-width: 25px;
}

.contact {
    padding: var(--section-spacing) 2rem;
}

.contact-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
}

.map-container {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.1);
    margin: 2rem auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(30%) contrast(110%);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
}

.github { background: #333; }
.facebook { background: #4267B2; }
.whatsapp { background: #25D366; }

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.footer {
    background: var(--card-bg);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.copyright {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    display: none;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 90%;
}

.form-error {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

input.error, textarea.error {
    border-color: var(--accent-color);
}

.animation-toggle {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
}

a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .map-container {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 10rem 2rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .map-container {
        width: 280px;
        height: 280px;
    }

    .footer-content {
        text-align: center;
    }

    .footer-column {
        margin-bottom: 2rem;
    }
}