/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== NAVEGAÇÃO ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* ===== PARALLAX BACKGROUNDS ===== */
.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    will-change: transform;
    z-index: 0;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero .parallax-bg {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #a8b2d1;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 2px solid #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    border-color: transparent;
}

.cta-button.large {
    padding: 1.2rem 4rem;
    font-size: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 35px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* ===== SECÇÕES ===== */
section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

/* ===== SOBRE ===== */
.sobre {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sobre .parallax-bg {
    background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920');
}

.sobre-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.sobre-texto .descricao {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    line-height: 1.8;
    color: #ccd6f6;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.typewriter-container {
    max-width: 600px;
    margin: 3rem auto 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.typewriter-line {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #667eea;
    letter-spacing: 2px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.typewriter-line.active {
    opacity: 1;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #667eea;
    margin-left: 4px;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ===== PROJETOS ===== */
.projetos {
    min-height: 100vh;
    padding: 8rem 2rem;
}

.projetos .parallax-bg {
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920');
}

.projetos-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projeto-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.projeto-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.projeto-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.projeto-card:hover .projeto-img {
    transform: scale(1.1);
}

.projeto-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.projeto-card:hover .projeto-overlay {
    background: linear-gradient(to top, rgba(102, 126, 234, 0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.projeto-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.projeto-card:hover .projeto-info {
    transform: translateY(0);
}

.projeto-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.projeto-info p {
    color: #a8b2d1;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.projeto-card:hover .projeto-info p {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.25);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 20px;
    font-size: 0.7rem;
    margin-right: 0.4rem;
    color: #a8b2d1;
    transition: all 0.3s ease;
}

.projeto-card:hover .tag {
    background: rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* ===== SERVIÇOS ===== */
.servicos {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.servicos .parallax-bg {
    background-image: url('https://images.unsplash.com/photo-1477346611705-65d1883cee1e?w=1920');
}

.servicos-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.servico-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.servico-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.5);
}

.servico-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.servico-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.servico-card p {
    color: #a8b2d1;
    font-size: 0.95rem;
}

/* ===== CONTACTO ===== */
.contacto {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contacto .parallax-bg {
    background-image: url('https://images.unsplash.com/photo-1534796636912-3b95b3ab5986?w=1920');
}

.contacto-content {
    position: relative;
    z-index: 2;
}

.contacto-texto {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #a8b2d1;
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color 0.3s ease;
}

.social::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #667eea;
    transition: width 0.3s ease;
}

.social:hover::after {
    width: 100%;
}

/* ===== FOOTER ===== */
footer {
    background: #050505;
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .projetos-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 1rem;
    }

    .projeto-card {
        aspect-ratio: 16/10;
    }

    .stats {
        gap: 2rem;
    }

    section {
        padding: 5rem 1.5rem;
    }
}

/* Parallax elements */
[data-speed] {
    will-change: transform;
}
