/* ==========================================================================
   CSS Variables & Settings
   ========================================================================== */
:root {
    /* Colors - NEW Light Theme Palette */
    --bg-dark: #EAEAEA;      /* Main Light Gray Background */
    --bg-darker: #f0f0f0;    /* Slightly different for depth */
    --bg-light: #ffffff;     /* Pure White */
    --bg-lighter: #ffffff;
    
    --text-primary: #0a0a0a;   /* Dark text for light bg */
    --text-secondary: #444444; /* Muted dark text */
    --text-light: #ffffff;
    --text-light-secondary: #e5e5e5;
    
    --accent-color: #FF2549; /* Vibrant Red/Pink per user request */
    --accent-hover: #D91E3A;
    --accent-gradient: linear-gradient(135deg, #FF2549 0%, #FF6B6B 100%);
    
    /* Layout Variables (Untouched) */
    --max-width: 1280px;
    --nav-height: 80px;
    --section-padding: 120px;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Resets & Basics
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial; /* Lenis handles this */
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-primary);
}

.section-accent {
    background-color: var(--accent-color);
    color: white;
}

.section-light .section-subtitle{
    color: var(--accent-color);
}

.section-light .about-desc{
    color: var(--text-primary);
}

/* ==========================================================================
   Smooth Scroll (Lenis)
   ========================================================================== */
html.lenis {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor, .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                width 0.3s ease, 
                height 0.3s ease, 
                background-color 0.3s ease;
}

.cursor-hover .cursor {
    transform: translate(-50%, -50%) scale(0);
}

.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-color);
    backdrop-filter: blur(2px);
}

@media (max-width: 1024px) {
    .cursor, .cursor-follower {
        display: none !important;
    }
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-darker);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
    padding: 0 2rem;
}

.loader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.loader-logo span {
    color: var(--accent-color);
}

.loader-progress {
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
}

.loader-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.navbar * {
    pointer-events: auto;
}

.navbar.scrolled {
    height: 80px;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    background-color: transparent;
}

.navbar.scrolled .nav-container {
    margin-top: 0.8rem;
    max-width: 900px;
    height: 60px;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    gap: 1.5rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem; /* Slightly smaller for refined look */
    font-weight: 900;
    letter-spacing: -1px;
    z-index: 1001;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    transition: color 0.4s ease;
}

.navbar.scrolled .nav-link,
.navbar.scrolled .logo,
.navbar.scrolled .menu-toggle {
    color: #ffffff;
}

.navbar.menu-active .logo,
.navbar.menu-active .menu-toggle {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

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

.nav-btn {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1.25rem; /* Compact button */
    border-radius: 50px;
    font-size: 0.85rem; /* Smaller font */
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.nav-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    transition: all var(--transition-fast);
    z-index: 1001;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
}

.section-light .btn-outline {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.btn i {
    font-size: 1.25rem;
    transition: transform var(--transition-fast);
}

.btn:hover i {
    transform: translateX(4px) translateY(-4px);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ==========================================================================
   Typography Styles
   ========================================================================== */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    color: var(--text-primary);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--accent-color);
}

.title-underline {
    position: relative;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin-top: 1rem;
}

.title-underline.center {
    margin: 0 auto;
}

/* SplitText styling for GSAP */
.line {
    display: block;
    overflow: hidden;
}

.char {
    display: inline-block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Reduced opacity since the video is quite bright */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(234, 234, 234, 0.4) 0%, rgba(234, 234, 234, 0.9) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.scroll-indicator {
    /* position: absolute;
    bottom: 3rem;
    left: 5%; */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.5rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ==========================================================================
   Success Notification
   ========================================================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.notification-content {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.notification-content i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   Services Section (Ethos Style)
   ========================================================================== */
.services.section-dark {
    background-color: var(--bg-dark);
}
.services-bg-grow {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #ffffff;  /* Cresce para branco puro */
    z-index: 0;
    transform-origin: left;
}
.relative-z {
    position: relative;
    z-index: 1;
}

/* Header Split */
.services-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    gap: 4rem;
}
.difference-text {
    color: var(--text-primary);
    mix-blend-mode: difference;
}
.difference-text .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
    margin-bottom: 0;
    line-height: 1.1;
    color: var(--text-primary);
}
.difference-text .section-subtitle {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}
.difference-text .title-underline {
    background: var(--accent-color);
}
.services-header-right {
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.services-desc {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-bracket {
    display: inline-flex;
    padding: 1rem 1.5rem;
    position: relative;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: transform var(--transition-fast);
}
.btn-bracket::before, .btn-bracket::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    transition: all 0.3s ease;
}
.btn-bracket::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.btn-bracket::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.btn-bracket:hover::before { width: 100%; height: 100%; }
.btn-bracket:hover::after { width: 100%; height: 100%; }

/* Cards Row */
.services-cards-row {
    display: flex;
    min-height: 580px; /* Taller area to ensure cards are larger overall without text spilling */
    padding-top: 3rem; /* Leave room for hover */
    overflow: visible;
}
.service-card-ethos {
    flex: 1;
    border-radius: 20px; /* Fully rounded to match overlap style */
    padding: 3.5rem 0rem; /* Space top and bottom, auto center handles left/right */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes content to edges */
    position: relative;
    box-shadow: -20px 0 30px rgba(0,0,0,0.3);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}
.service-card-ethos:not(:first-child) {
    margin-left: -40px; /* Deep overlap */
}
/* Shift content right exactly half the overlap to perfectly center in the visible exposed region */
.service-card-ethos:not(:first-child) .ethos-title,
.service-card-ethos:not(:first-child) .ethos-bottom {
    transform: translateX(15px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
/* Recenter perfectly when the card is hovered and expands */
.service-card-ethos:hover .ethos-title,
.service-card-ethos:hover .ethos-bottom {
    transform: translateX(0);
}
.service-card-ethos:hover {
    flex: 1.4;
    transform: translateY(-25px); /* Pops up and expands, pushing neighbors */
    z-index: 10;
}
.ethos-title {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    text-align: center;
    line-height: 1.1;
    z-index: 2;
    text-transform: uppercase;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    width: 260px; /* Fixed width prevents line breakage */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.ethos-bottom {
    z-index: 2;
    text-align: center;
    width: 260px;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
}
.ethos-num {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.8;
}
.ethos-desc {
    font-size: 0.8rem;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 600;
}

/* Card Colors */
/* Card Colors - Updated for new Palette */
.color-dark { background-color: #1a1a1a; color: #ffffff; z-index: 4; }
.color-blue { background-color: var(--accent-color); color: #ffffff; z-index: 3; }
.color-orange { background-color: #ffffff; color: #1a1a1a; border: 1px solid #ddd; z-index: 2; }
.color-light { background-color: #d1d1d1; color: #1a1a1a; z-index: 1; }

/* Geometric Patterns */
.ethos-pattern {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 70%;
    opacity: 0.15;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.5s ease;
}
.service-card-ethos:hover .ethos-pattern {
    transform: translateX(-50%) translateY(-10px) scale(1.05);
}

.pattern-dots { background-image: radial-gradient(circle, currentColor 2px, transparent 2.5px); background-size: 15px 15px; }
.pattern-waves { background-image: repeating-radial-gradient(circle at center, transparent 0, transparent 10px, currentColor 10px, currentColor 11px); }
.pattern-rays { background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, currentColor 10px, currentColor 11px); }
.pattern-curves { background-image: radial-gradient(ellipse at bottom, transparent 30%, currentColor 31%, transparent 32%); background-size: 100% 20px; }

@media (max-width: 1024px) {
    .services-header-split {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .services-cards-row {
        flex-direction: column;
        height: auto;
        padding-top: 0;
        gap: 1rem;
    }
    .service-card-ethos {
        height: 250px;
        border-radius: 20px;
    }
    .service-card-ethos:not(:first-child) {
        margin-left: 0;
        margin-top: -20px;
    }
}

/* ==========================================================================
   SKILLS SECTION - PINNED SLIDES STYLES
   ========================================================================== */
.skills-container {
    display: flex;
    gap: 6rem;
    position: relative;
    align-items: flex-start;
    min-height: 100vh;
}

.skills-left {
    flex: 0 0 40%; /* Previne que o conteúdo da direita invada este espaço */
    position: sticky;
    top: 120px;
    align-self: flex-start;
    z-index: 5;
}

.skills-pinned-content {
    max-width: 450px;
}

.skills-pinned-content .section-title {
    margin-bottom: 1.5rem;
}

.skills-pinned-content .skills-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Skills Right - Container dos slides */
.skills-right {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 15vh;
    position: relative;
    perspective: 1200px;
}

/* Cada skill-item agora é um card individual */
.skill-item {
    background: #ffffff;
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    transform-style: preserve-3d;
    will-change: transform;
    height: auto;
    position: relative;
    z-index: 1;
    min-height: 80vh; 
    align-items: center;
    margin-bottom: 0; 
    max-width: 100%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    cursor: default;
}

/* Efeito de luz/glow dinâmico que segue o mouse */
.skill-item::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle closest-side,
        rgba(255, 37, 73, 0.13) 0%,
        rgba(255, 107, 107, 0.06) 40%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.skill-item:hover::before {
    opacity: 1;
}

/* Borda de brilho sutil no hover */
.skill-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    border: 1.5px solid transparent;
    background: linear-gradient(135deg, rgba(255,37,73,0.25), rgba(255,107,107,0.1), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.skill-item:hover::after {
    opacity: 1;
}

.skill-item > * {
    position: relative;
    z-index: 1;
}

.skill-item:last-child {
    margin-bottom: 0;
}

/* Efeito de destaque ao entrar no slide */
.skill-item.is-active {
    background: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(255, 37, 73, 0.08);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 37, 73, 0.08);
    color: var(--accent-color);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    transition: background 0.4s ease, color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.skill-item:hover .skill-icon {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(255, 37, 73, 0.35);
}

.skill-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.skill-info p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 500px;
}

/* Indicador de progresso dos slides */
.skills-progress {
    position: fixed; /* Mudado para fixed */
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
    opacity: 0; /* Começa invisível */
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.skills-progress.is-visible {
    opacity: 1;
    visibility: visible;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.progress-dot.active {
    height: 30px; /* Transformado em uma pílula vertical */
    width: 6px;
    background: var(--accent-color);
    border-radius: 10px;
}

.progress-dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsividade */
@media (max-width: 1024px) {
    .skills-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .skills-left {
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .skills-pinned-content {
        max-width: 100%;
    }
    
    .skill-item {
        min-height: auto;
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all var(--transition-normal);
    }
    
    .skill-item:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--accent-color);
    }
    
    .skill-info p {
        max-width: 100%;
    }
    
    .skills-progress {
        display: none;
    }
    
    .skill-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .skill-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .skill-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 768px) {
    .skill-item {
        min-height: 45vh;
        padding: 1.5rem;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .skill-info h3 {
        font-size: 1.5rem;
    }
    
    .skill-info p {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.project-item.group-left {
    grid-template-columns: 1fr 1.2fr;
}

.project-image {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1); 
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; 
    clip-path: inset(0 100% 0 0); /* Mascarado inicialmente */
}

.project-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: scale(1.2); /* Zoom inicial para o reveal */
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    transition: background var(--transition-fast);
}

.project-item:hover .image-overlay {
    background: rgba(0,0,0,0);
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

.project-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-desc {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 500;
}

.about-visual {
    position: relative;
}

.image-stack {
    position: relative;
    width: 100%;
    padding-bottom: 110%; /* Aspect ratio hack */
}

.image-stack img {
    position: absolute;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-back {
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
}

.img-front {
    bottom: 0;
    left: 0;
    width: 80%;
    height: 80%;
    z-index: 2;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 3;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    /* Animation added via JS later */
}

.floating-badge i {
    font-size: 2rem;
    color: var(--bg-lighter);
}

.floating-badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 400px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all var(--transition-fast);
}

.contact-link:hover .icon-circle {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
}

.link-text {
    display: flex;
    flex-direction: column;
}

.link-text span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.link-text strong {
    font-size: 1.125rem;
    font-weight: 600;
}

/* Form Styling */
.contact-form-container {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Floating label logic */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.input-group input:focus ~ .input-line::after,
.input-group textarea:focus ~ .input-line::after {
    width: 100%;
}

.submit-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #d9d9d9;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-primary);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.link-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-fast);
}

.hover-underline:hover {
    color: var(--text-primary);
}

.hover-underline:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.back-to-top:hover {
    background: var(--accent-gradient);
    transform: translateY(-5px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .project-item, .project-item.group-left {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-item.group-left .project-content {
        order: -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --nav-height: 70px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link, .nav-btn {
        font-size: 1.5rem;
        font-weight: 600;
        color: #ffffff;
    }
    
    .nav-btn {
        background: var(--accent-color);
        border-color: var(--accent-color);
        padding: 0.75rem 2rem;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1000;
        color: var(--text-primary);
        transition: color var(--transition-fast);
    }
    
    .menu-toggle.active {
        color: #ffffff;
    }
    
    .menu-toggle.active .ph-list {
        display: none;
    }
    
    .menu-toggle.active .ph-x {
        display: block !important;
        color: #ffffff !important;
        font-size: 1.5rem !important;
    }
    
    /* Fallback - se o ícone Phosphor não carregar */
    .menu-toggle.active .ph-x:before {
        content: '×' !important;
        font-family: monospace !important;
        font-size: 1.5rem !important;
        font-weight: bold !important;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}
