@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
    --primary-color: #ff6b35;
    --secondary-color: #f76000;
    --accent-color: #c1121f;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --gradient-1: linear-gradient(135deg, #ff6b35 0%, #f76000 100%);
    --gradient-2: linear-gradient(135deg, #c1121f 0%, #ff6b35 100%);
    --shadow-sm: 0 2px 10px rgba(255, 107, 53, 0.1);
    --shadow-md: 0 5px 20px rgba(255, 107, 53, 0.2);
    --shadow-lg: 0 10px 40px rgba(255, 107, 53, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Scrollbar Customizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1.5rem 9%;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 50px;   /* ajuste como quiser */
    height: auto;
    display: block;
}

.logo-container {
    position: relative;
    display: inline-block;
}

/*.logo-glow {
    position: absolute;
    inset: -8px;
    background: var(--gradient-1);
    border-radius: 20px;
    filter: blur(25px);
    opacity: 0.6;
    z-index: -1;
}*/

.logo:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    font-size: 2.8rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

nav a {
    font-size: 1.7rem;
    color: var(--text-secondary);
    margin-left: 3.5rem;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: 0.3s ease;
}

nav a:hover::before,
nav a.active::before {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Section Title */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.section-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 10rem 9% 5rem;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.home-img {
    position: relative;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-img img {
    width: 35vw;
    max-width: 450px;
    border-radius: 50%;
    border: 5px solid transparent;
    background: var(--gradient-1);
    padding: 5px;
    filter: grayscale(20%);
    transition: 0.5s ease;
}

.home-img img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.3;
    z-index: -1;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.home-content {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.home-content h1 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-content h3 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.home-content p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Typing Animation */
.typing-text span {
    position: relative;
    color: var(--primary-color);
}

.typing-text span::before {
    content: "Designer de Instagram";
    animation: words 15s infinite;
}

.typing-text span::after {
    content: "";
    background-color: var(--bg-dark);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--primary-color);
    right: -8px;
    animation: cursor 0.8s infinite, typing 15s steps(20) infinite;
}

@keyframes cursor {
    to { border-left-color: transparent; }
}

@keyframes words {
    0%, 20% { content: "Designer de Instagram"; }
    21%, 40% { content: "Especialista em Growth"; }
    41%, 60% { content: "Designer Gráfico"; }
    61%, 80% { content: "Criador de Conteúdo"; }
    81%, 100% { content: "Social Media Designer"; }
}

@keyframes typing {
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% { width: 0; }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% { width: calc(100% + 8px); }
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--primary-color);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-1);
    transition: 0.3s ease;
    z-index: -1;
}

.social-icons a:hover::before {
    width: 100%;
}

.social-icons a:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.3rem 3.5rem;
    background: var(--gradient-1);
    border-radius: 50px;
    font-size: 1.7rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.3s ease;
    cursor: pointer;
    margin-right: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary::before {
    background: var(--gradient-1);
}

.btn-secondary:hover {
    color: var(--text-primary);
    border-color: transparent;
}

/* Sobre Section */
.sobre {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.sobre-container {
    display: flex;
    gap: 6rem;
    align-items: center;
}

.sobre-img {
    position: relative;
    flex: 1;
}

.sobre-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: 0.5s ease;
}

.img-border {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    z-index: -1;
}

.sobre-content {
    flex: 1;
}

.sobre-content h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.sobre-content p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.sobre-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.info-item i {
    font-size: 3rem;
    color: var(--primary-color);
}

.info-item h4 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-item p {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Serviços Section */
.servicos {
    background: var(--bg-dark);
}

.servicos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.servico-card {
    background: var(--bg-card);
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.servico-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: 0.3s ease;
}

.servico-card:hover::before {
    transform: scaleX(1);
}

.servico-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    transition: 0.3s ease;
}

.servico-card:hover .icon-wrapper {
    transform: rotateY(360deg);
}

.icon-wrapper i {
    font-size: 3rem;
    color: var(--text-primary);
}

.servico-card h3 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.servico-card p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.service-link {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link i {
    margin-left: 0.5rem;
    transition: 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Habilidades Section */
.habilidades {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.habilidades-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
}

.habilidade-categoria {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.habilidade-categoria h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.habilidade-categoria h3 i {
    margin-right: 1rem;
}

.habilidade-item {
    margin-bottom: 2.5rem;
}

.habilidade-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.habilidade-info span {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    width: var(--progress);
    animation: progressAnimation 2s ease-out;
}

@keyframes progressAnimation {
    from { width: 0; }
}

/* Timeline (Educação e Experiência) */
.educacao,
.experiencia {
    background: var(--bg-dark);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item.left {
    left: 0;
    padding-right: 6rem;
}

.timeline-item.right {
    left: 50%;
    padding-left: 6rem;
}

.timeline-content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.1);
    position: relative;
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.timeline-icon {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.timeline-item.left .timeline-icon {
    right: -91px;
    transform: translateY(-50%);
}

.timeline-item.right .timeline-icon {
    left: -91px;
    transform: translateY(-50%);
}

.timeline-icon i {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.timeline-content h3 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.timeline-date {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-date i {
    margin-right: 0.5rem;
}

.timeline-content p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.timeline-content p:first-of-type {
    font-weight: 600;
    color: var(--primary-color);
}

/* Projetos Section */
.projetos {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.projetos-filter {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
    font-weight: 600;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.projeto-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: 0.3s ease;
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.projeto-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.projeto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

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

.projeto-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transition: 0.3s ease;
}

.projeto-card:hover .projeto-overlay {
    opacity: 1;
}

.projeto-link {
    width: 50px;
    height: 50px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: 0.3s ease;
}

.projeto-link:hover {
    transform: scale(1.2) rotate(360deg);
}

.projeto-info {
    padding: 2.5rem;
}

.projeto-categoria {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.projeto-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.projeto-info p {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.projeto-tech {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.projeto-tech span {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

/* Contato Section */
.contato {
    background: var(--bg-dark);
}

.contato-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contato-info h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contato-info > p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.info-boxes {
    margin-bottom: 3rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.1);
    transition: 0.3s ease;
}

.info-box:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.info-box i {
    font-size: 3rem;
    color: var(--primary-color);
}

.info-box h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box p {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-icons-contato {
    display: flex;
    gap: 1.5rem;
}

.social-icons-contato a {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: 0.3s ease;
}

.social-icons-contato a:hover {
    background: var(--gradient-1);
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Formulário */
.contato-form {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contato-form input,
.contato-form textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--bg-dark);
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    transition: 0.3s ease;
}

.contato-form input:focus,
.contato-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.contato-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contato-form button {
    width: 100%;
    margin: 0;
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 3rem 9%;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
}

.footer-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-content i {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    font-size: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Modal de Serviços */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 85%;
    max-width: 550px;
    max-height: 90vh;
    height: auto;
    overflow-y: scroll;
    overflow-x: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
    display: flex;
    flex-direction: column;
}

/* Scrollbar dentro do modal - MELHORADO */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.6);
    border-radius: 10px;
    border: 2px solid rgba(26, 26, 26, 0.5);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    background: var(--primary-color);
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    line-height: 1;
}

.modal-close:hover,
.modal-close:active {
    background: var(--secondary-color);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 1.5rem 1.2rem;
    flex: 1;
    overflow-y: auto;
    word-wrap: break-word;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.8rem;
}

.modal-icon i {
    font-size: 2.2rem;
    color: var(--text-primary);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.2rem;
}

.modal-details,
.modal-pricing {
    margin-bottom: 1rem;
}

.modal-details h3,
.modal-pricing h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.modal-list {
    list-style: none;
    font-size: 1.1rem;
}

.modal-list li {
    padding: 0.2rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.modal-list li:before {
    content: "✓ ";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.price-info {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-details h3,
.modal-pricing h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-list {
    list-style: none;
    padding: 0;
}

.modal-list li {
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-left: 3rem;
    position: relative;
}

.modal-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 2rem;
}

.price-info {
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-cta {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

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

@media (max-width: 991px) {
    header {
        padding: 2rem 5%;
    }

    section {
        padding: 10rem 5% 5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 100%;
        max-width: 300px;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        padding: 3rem 2rem;
        border-left: 3px solid var(--primary-color);
        border-bottom-left-radius: 20px;
        transition: 0.3s ease;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 2rem 0;
    }

    nav a::before {
        bottom: 0;
        height: 100%;
        width: 3px;
    }

    nav a:hover::before,
    nav a.active::before {
        width: 3px;
    }

    .home {
        flex-direction: column;
        gap: 5rem;
        padding-top: 12rem;
    }

    .home-img img {
        width: 60vw;
        max-width: 350px;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 3rem;
    }

    .sobre-container {
        flex-direction: column;
        gap: 4rem;
    }

    .sobre-img img {
        max-width: 350px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 2rem;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        padding-left: 80px;
    }

    .timeline-item.left .timeline-icon,
    .timeline-item.right .timeline-icon {
        left: 0;
    }

    .contato-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }

    .section-title {
        font-size: 4rem;
    }

    .servicos-container,
    .projetos-container {
        grid-template-columns: 1fr;
    }

    .habilidades-container {
        grid-template-columns: 1fr;
    }

    .sobre-info {
        grid-template-columns: 1fr;
    }

    .form-group {
        grid-template-columns: 1fr;
    }

    .projetos-filter {
        gap: 1rem;
    }

    .filter-btn {
        padding: 1rem 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .btn {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 450px) {
    .home-content h1 {
        font-size: 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .logo {
        font-size: 3rem;
    }

    .contato-form {
        padding: 2.5rem;
    }

    .modal-body {
        padding: 4rem 2.5rem;
    }

    .modal-title {
        font-size: 2.8rem;
    }

    .modal-close {
        font-size: 3rem;
        top: 15px;
        right: 20px;
    }
}
#sobre * {
    transform: none !important;
}

/* Modal Lightbox para Visualização de Imagens de Projetos */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 107, 53, 0.4);
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpModal {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Container do Carrossel */
.carousel-container {
    position: relative;
    width: 100%;
}

/* espaço interno para mídia (imagem ou vídeo) */
.modal-media {
    width: 100%;
    text-align: center;
}

.modal-image,
.modal-video {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
}

/* vídeo específico */
.modal-video {
    outline: none;
}

/* Botões de Navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 107, 53, 0.3);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Indicadores (Dots) */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 107, 53, 0.3);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.carousel-indicator:hover {
    background-color: rgba(255, 107, 53, 0.7);
}

/* Info do Modal */
.modal-info {
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(197, 18, 31, 0.1) 100%);
}

.modal-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    margin-bottom: 1rem;
}

.image-counter {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 2.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
    font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

/* Responsivo */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        max-height: 90vh;
        height: auto;
        max-width: 90%;
        border-radius: 10px;
    }

    .modal-body {
        padding: 1.5rem 1.2rem;
    }

    .modal-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 0.6rem;
    }

    .modal-icon i {
        font-size: 1.8rem;
    }

    .modal-title {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .modal-description {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .modal-details h3,
    .modal-pricing h3 {
        font-size: 1.1rem;
        margin-top: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .modal-list {
        font-size: 0.95rem;
    }

    .modal-list li {
        padding: 0.15rem 0;
    }

    .price-info {
        font-size: 1rem;
    }

    .modal-cta {
        font-size: 1.1rem;
        padding: 0.7rem 1.2rem;
        margin-top: 0.8rem;
    }

    .modal-close {
        width: 34px;
        height: 34px;
        font-size: 1.6rem;
        top: 5px;
        right: 5px;
    }

    .image-counter {
        font-size: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}
