/* Cores principais do tema */
:root {
    --primary-color: #ef8a2f;
    --secondary-color: #1f2937;
    --alternative-color: #031c44;
    --background-color: #f3f4f6;
    --text-color: #333;
    --background-dark: #2d2d2d;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    .nav {
        position: static;
        flex-direction: row;
        height: auto;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 32px;
    }
    .nav-link {
        font-size: 16px;
        padding: 0 0 4px 0;
        border-bottom: 2px solid transparent;
        text-align: center;
    }
}
.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.reveal-active {
    opacity: 1;
    transform: scale(1);
}

/* Delay progressivo para efeito cascata */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.6s; }
.scroll-reveal:nth-child(8) { transition-delay: 0.7s; }

.scroll-reveal-scale:nth-child(1) { transition-delay: 0s; }
.scroll-reveal-scale:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal-scale:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal-scale:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal-scale:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal-scale:nth-child(6) { transition-delay: 0.5s; }
.scroll-reveal-scale:nth-child(7) { transition-delay: 0.6s; }
.scroll-reveal-scale:nth-child(8) { transition-delay: 0.7s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background-color: var(--background-dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
}

.logo {
    max-width: 70px;
    padding: 0;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0d233e 0%, #1a1f4d 50%, #3d2561 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    color: #e5e7eb;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #d97706a4;
}

/* Services Section */
.services {
    padding: 24px 0;
    background-color: #f3f4f6;
}

.section-title {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--background-dark);
    color: white;
    padding: 48px 32px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.service-card:hover {
    background-color: #454545;
}

.service-icon {
    margin: 0 auto 24px;
    color: white;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
}
/* Portfolio Section */
.portfolio {
    padding: 24px 0;
    padding-bottom: 64px;
    background-color: var(--text-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.portfolio-section-title{
    font-size: 32px;
    color: white;
    margin-bottom: 48px;
}
.portfolio-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    height: 192px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 16px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.portfolio-category {
    font-size: 14px;
    color: #6b7280;
}

/* Footer */
.footer {
    background-color: var(--background-dark);
    color: white;
    padding: 48px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo .logo-circle {
    width: 64px;
    height: 64px;
}

.footer-logo .logo-circle span {
    font-size: 24px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-link {
    color: #9ca3af;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Contact Section */
.contact {
    padding: 24px 0;
    background-color: #f3f4f6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 24px;
}

.contact-description {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.method-icon {
    background-color: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
}

.method-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.method-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 2px 0;
}

.contact-form-container {
    background-color: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 138, 47, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Notifications */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    transition: top 0.3s ease;
}

.notification.show {
    top: 24px;
}

.notification-success {
    background-color: #10b981;
}

.notification-error {
    background-color: #ef4444;
}

.notification-info {
    background-color: #3b82f6;
}

.notification-warning {
    background-color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-container {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    /* Menu responsivo corrigido */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 56px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1100;
        position: absolute;
        top: 15px;
        right: 16px;
        padding: 0;
        margin-left: auto;
    }
    .menu-toggle .bar {
        width: 36px;
        height: 4px;
        background: #fff;
        border-radius: 2px;
        margin: 0;
        transition: 0.3s;
        position: relative;
    }
    .menu-toggle .bar:not(:last-child) {
        margin-bottom: 8px;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(10px, -10px);
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 85vw;
        max-width: 420px;
        height: 100vh;
        background: var(--background-dark);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 100px 40px 40px 40px;
        box-shadow: -2px 0 16px rgba(0,0,0,0.15);
        transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
        z-index: 1099;
        display: flex;
    }
    .nav.open {
        right: 0;
    }
    .nav-link {
        width: 100%;
        padding: 28px 0 18px 0;
        font-size: 24px;
        border-bottom: 1.5px solid #333;
        color: #fff;
        text-align: left;
        letter-spacing: 0.5px;
    }
    .header .container {
        flex-wrap: nowrap;
    }
    body.menu-open {
        overflow: hidden;
    }
}
