/* ==========================================
           VARIÁVEIS CSS
        ========================================== */
        :root {
            --bg: #fdfaf7;
            --bg-secondary: #f8f4f0;
            --accent: #1a1a1a;
            --primary: #c9a87c;
            --primary-light: #e8dcc8;
            --primary-dark: #a68a64;
            --text: #2d2d2d;
            --text-light: #666;
            --text-muted: #999;
            --white: #ffffff;
            --transition: cubic-bezier(0.165, 0.84, 0.44, 1);
        }

        /* DARK MODE */
        body.dark-mode {
            --bg: #0a0a0a;
            --bg-secondary: #1a1a1a;
            --accent: #ffffff;
            --primary: #d4af7a;
            --primary-light: #2d2d2d;
            --primary-dark: #c9a87c;
            --text: #e0e0e0;
            --text-light: #b0b0b0;
            --text-muted: #808080;
            --white: #1a1a1a;
        }

        body.dark-mode .preloader {
            background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
        }

        body.dark-mode .hero-image-area,
        body.dark-mode .project-image {
            filter: brightness(0.8);
        }

        body.dark-mode nav {
            background: rgba(10, 10, 10, 0.85);
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }

        body.dark-mode nav.scrolled {
            background: rgba(10, 10, 10, 0.98);
        }

        /* ==========================================
           BASE
        ========================================== */
        * { 
            margin: 0; 
            padding: 0; 
            box-sizing: border-box; 
        }
        
        html { 
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
            transition: background 0.5s var(--transition), color 0.5s var(--transition);
        }

        ::selection {
            background: var(--primary-light);
            color: var(--accent);
        }

        /* ==========================================
           ABERTURA CINEMATOGRÁFICA
        ========================================== */
        .preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 50%, var(--primary-light) 100%);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }

        .preloader.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .preloader-content {
            text-align: center;
            position: relative;
        }

        .preloader-logo {
            position: relative;
            display: inline-block;
            opacity: 0;
            animation: fadeInScale 1.2s 0.3s ease forwards;
        }

        .preloader-logo img {
            height: clamp(150px, 20vw, 300px);
            width: auto;
        }

        @keyframes fadeInScale {
            from { opacity: 0; transform: scale(0.8) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }

        .preloader-logo::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary), transparent);
            animation: lineExpand 1s 1.2s ease forwards;
        }

        @keyframes lineExpand {
            to { width: 120%; }
        }

        .preloader-subtitle {
            font-size: 0.9rem;
            letter-spacing: 6px;
            text-transform: uppercase;
            color: var(--primary-dark);
            margin-top: 35px;
            opacity: 0;
            animation: fadeInUp 0.8s 1.5s ease forwards;
            font-weight: 600;
        }

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

        .preloader-progress {
            width: 300px;
            height: 2px;
            background: rgba(0,0,0,0.1);
            margin-top: 50px;
            border-radius: 10px;
            overflow: hidden;
            opacity: 0;
            animation: fadeInUp 0.8s 1.8s ease forwards;
        }

        .preloader-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-dark), var(--primary));
            width: 0;
            animation: progressBar 2.5s 2s ease forwards;
            border-radius: 10px;
        }

        @keyframes progressBar {
            to { width: 100%; }
        }

        .preloader-text {
            font-size: 0.75rem;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--text-light);
            margin-top: 20px;
            opacity: 0;
            animation: fadeInUp 0.8s 2.2s ease forwards;
        }

        /* Partículas */
        .preloader-particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: var(--primary);
            border-radius: 50%;
            opacity: 0.4;
            animation: float-particle 10s infinite;
        }

        @keyframes float-particle {
            0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
            10% { opacity: 0.4; }
            90% { opacity: 0.4; }
            100% { transform: translateY(-100vh) translateX(100px) scale(0.5); opacity: 0; }
        }

        /* ==========================================
           CURSOR CUSTOMIZADO
        ========================================== */
        .cursor-dot {
            width: 8px;
            height: 8px;
            background: var(--primary-dark);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.2s ease, opacity 0.3s;
            transform: translate(-50%, -50%);
            opacity: 0;
        }

        .cursor-outline {
            width: 35px;
            height: 35px;
            border: 1.5px solid var(--primary);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9998;
            transition: all 0.15s ease;
            transform: translate(-50%, -50%);
            opacity: 0;
        }

        .cursor-outline.hover {
            width: 50px;
            height: 50px;
            background: rgba(201, 168, 124, 0.1);
        }

        /* ==========================================
           LAYOUT PRINCIPAL
        ========================================== */
        .main-content {
            opacity: 0;
            animation: fadeIn 1s 4.5s ease forwards;
        }

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

        /* Barra de Progresso */
        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--primary-dark));
            z-index: 10001;
            transition: width 0.1s ease;
        }

        /* ==========================================
           NAVBAR
        ========================================== */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 35px 5%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            backdrop-filter: blur(20px) saturate(180%);
            background: rgba(253, 250, 247, 0.85);
            border-bottom: 1px solid rgba(0,0,0,0.06);
            transition: all 0.6s var(--transition);
        }

        nav.scrolled {
            padding: 22px 5%;
            background: rgba(253, 250, 247, 0.98);
            box-shadow: 0 10px 40px rgba(0,0,0,0.04);
        }

        .logo {
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

        .logo img {
            height: 50px;
            width: auto;
            transition: all 0.4s var(--transition);
            filter: brightness(1);
        }

        .logo:hover img {
            transform: scale(1.05);
            filter: brightness(1.1);
        }

        .nav-links {
            display: flex;
            gap: 50px;
            align-items: center;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text);
            font-size: 0.8rem;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            font-weight: 500;
            position: relative;
            transition: color 0.3s;
            padding: 5px 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.4s var(--transition);
        }

        .nav-links a:hover {
            color: var(--primary-dark);
        }

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

        /* ==========================================
           HERO
        ========================================== */
        .hero {
            min-height: 100vh;
            display: grid;
            grid-template-columns: 1.4fr 0.6fr;
            align-items: center;
            padding: 0 5%;
            gap: 80px;
            position: relative;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 15%;
            right: -5%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--primary-light) 0%, transparent 65%);
            border-radius: 50%;
            opacity: 0.25;
            z-index: 0;
            animation: float 10s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.25; }
            50% { transform: translate(-40px, 40px) scale(1.05); opacity: 0.35; }
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: 10%;
            left: 5%;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, var(--primary-light) 0%, transparent 60%);
            border-radius: 50%;
            opacity: 0.2;
            z-index: 0;
            animation: float 12s ease-in-out infinite reverse;
        }

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

        .hero-tag {
            font-size: 0.68rem;
            letter-spacing: 5px;
            text-transform: uppercase;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 25px;
            color: var(--primary-dark);
            padding: 10px 24px;
            border: 1.5px solid var(--primary);
            border-radius: 30px;
            transition: all 0.4s var(--transition);
            opacity: 0;
            animation: fadeInUp 0.8s 0.2s ease forwards;
            position: relative;
            overflow: hidden;
        }

        .hero-tag::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary-light);
            transition: left 0.5s var(--transition);
            z-index: -1;
        }

        .hero-tag:hover::before {
            left: 0;
        }

        .hero-tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(201, 168, 124, 0.15);
        }

        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(4rem, 9vw, 8rem);
            line-height: 0.92;
            font-weight: 900;
            margin-bottom: 35px;
            letter-spacing: -2px;
            opacity: 0;
            animation: fadeInUp 0.8s 0.4s ease forwards;
        }

        .hero h1 .highlight {
            color: var(--primary-dark);
            font-style: italic;
            font-weight: 400;
            display: block;
            background: linear-gradient(135deg, var(--primary-dark), var(--primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-subtitle {
            font-size: 1.4rem;
            color: var(--text-light);
            margin-bottom: 28px;
            font-weight: 400;
            letter-spacing: -0.5px;
            opacity: 0;
            animation: fadeInUp 0.8s 0.6s ease forwards;
        }

        .hero p {
            max-width: 560px;
            font-size: 1.08rem;
            font-weight: 300;
            color: var(--text-light);
            margin-bottom: 50px;
            line-height: 1.85;
            opacity: 0;
            animation: fadeInUp 0.8s 0.8s ease forwards;
        }

        .hero-stats {
            display: flex;
            gap: 60px;
            margin-bottom: 45px;
            padding-top: 30px;
            border-top: 1px solid rgba(0,0,0,0.08);
            opacity: 0;
            animation: fadeInUp 0.8s 1s ease forwards;
        }

        .stat-item {
            position: relative;
        }

        .stat-item span {
            display: block;
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary-dark);
            font-family: 'Playfair Display', serif;
            line-height: 1;
        }

        .stat-item p {
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: var(--text-muted);
            margin-top: 8px;
        }

        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -20px;
            width: 3px;
            height: 0;
            background: linear-gradient(180deg, var(--primary), var(--primary-dark));
            animation: lineGrow 1s 1.5s ease forwards;
        }

        @keyframes lineGrow {
            to { height: 100%; }
        }

        .hero-image-area {
            height: 88vh;
            position: relative;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            border-radius: 400px 400px 0 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                0 60px 120px rgba(0,0,0,0.08),
                0 25px 70px rgba(201, 168, 124, 0.15);
            transition: all 0.7s var(--transition);
            opacity: 0;
            animation: scaleIn 1s 1.2s ease forwards;
        }

        @keyframes scaleIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .hero-image-area:hover {
            transform: translateY(-8px) scale(1.01) rotate(-1deg);
            box-shadow: 
                0 70px 140px rgba(0,0,0,0.12),
                0 30px 80px rgba(201, 168, 124, 0.2);
        }

        .photo-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-style: italic;
            color: rgba(255,255,255,0.92);
            font-size: 1.05rem;
            letter-spacing: 0.5px;
            text-align: center;
            padding: 40px;
            font-family: 'Playfair Display', serif;
        }

        .photo-icon {
            font-size: 4.5rem;
            margin-bottom: 25px;
            opacity: 0.75;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
            animation: pulse 3s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .hero-image-area::after {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: 
                linear-gradient(0deg, transparent 24%, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.04) 26%, transparent 27%),
                linear-gradient(90deg, transparent 24%, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.04) 26%, transparent 27%);
            background-size: 60px 60px;
            pointer-events: none;
            animation: gridMove 20s linear infinite;
        }

        @keyframes gridMove {
            from { background-position: 0 0; }
            to { background-position: 60px 60px; }
        }

        /* BOTÕES */
        .hero-buttons {
            opacity: 0;
            animation: fadeInUp 0.8s 1.2s ease forwards;
        }

        .btn-primary,
        .btn-secondary {
            display: inline-block;
            padding: 20px 48px;
            text-decoration: none;
            border-radius: 50px;
            font-size: 0.88rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
            transition: all 0.5s var(--transition);
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--white);
            margin-right: 18px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        }

        .btn-primary::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: var(--primary-dark);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .btn-primary:hover::before {
            width: 300%;
            height: 300%;
        }

        .btn-primary span {
            position: relative;
            z-index: 1;
        }

        .btn-primary:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 50px rgba(0,0,0,0.15);
        }

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

        .btn-secondary::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--accent);
            transition: left 0.5s var(--transition);
            z-index: 0;
        }

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

        .btn-secondary span {
            position: relative;
            z-index: 1;
            transition: color 0.3s;
        }

        .btn-secondary:hover span {
            color: var(--white);
        }

        .btn-secondary:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 50px rgba(0,0,0,0.12);
        }

        /* ==========================================
           SEÇÕES GERAIS
        ========================================== */
        section {
            padding: 180px 5%;
            opacity: 0;
            transform: translateY(50px);
            transition: all 1.2s var(--transition);
        }

        section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .section-header {
            text-align: center;
            margin-bottom: 110px;
        }

        .section-number {
            font-size: 0.7rem;
            letter-spacing: 4px;
            text-transform: uppercase;
            font-weight: 600;
            color: var(--primary-dark);
            margin-bottom: 18px;
        }

        .section-header h2 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2.8rem, 5vw, 4.5rem);
            font-weight: 700;
            margin-bottom: 25px;
            letter-spacing: -1px;
        }

        .section-header p {
            max-width: 620px;
            margin: 0 auto;
            font-size: 1.08rem;
            color: var(--text-light);
            line-height: 1.85;
        }

        /* ==========================================
           SOBRE
        ========================================== */
        .about-grid {
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            gap: 100px;
            align-items: start;
            max-width: 1400px;
            margin: 0 auto;
        }

        .about-text h3 {
            font-family: 'Playfair Display', serif;
            font-size: 2.2rem;
            margin-bottom: 30px;
            color: var(--primary-dark);
            font-weight: 600;
        }

        .about-text p {
            font-size: 1.08rem;
            line-height: 1.9;
            color: var(--text-light);
            margin-bottom: 22px;
        }

        .info-card {
            background: var(--white);
            padding: 45px;
            border-radius: 20px;
            margin-bottom: 25px;
            border: 1px solid rgba(0,0,0,0.05);
            transition: all 0.5s var(--transition);
            box-shadow: 0 10px 35px rgba(0,0,0,0.03);
            opacity: 0;
            transform: translateX(50px);
        }

        .info-card.animated {
            animation: slideInRight 0.8s ease forwards;
        }

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

        .info-card:nth-child(1) { animation-delay: 0.1s; }
        .info-card:nth-child(2) { animation-delay: 0.2s; }
        .info-card:nth-child(3) { animation-delay: 0.3s; }

        .info-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 60px rgba(0,0,0,0.08);
            border-color: var(--primary-light);
        }

        .info-card h4 {
            font-size: 1.15rem;
            margin-bottom: 18px;
            color: var(--accent);
            font-weight: 600;
        }

        .info-card p {
            font-size: 0.98rem;
            color: var(--text-light);
            margin: 10px 0;
            line-height: 1.7;
        }

        /* ==========================================
           HABILIDADES
        ========================================== */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 35px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .skill-category {
            background: var(--white);
            padding: 50px 40px;
            border-radius: 20px;
            border: 1px solid rgba(0,0,0,0.05);
            transition: all 0.5s var(--transition);
            box-shadow: 0 10px 35px rgba(0,0,0,0.03);
            opacity: 0;
            transform: translateY(50px);
        }

        .skill-category.animated {
            animation: fadeInUp 0.8s ease forwards;
        }

        .skill-category:nth-child(1) { animation-delay: 0.1s; }
        .skill-category:nth-child(2) { animation-delay: 0.2s; }
        .skill-category:nth-child(3) { animation-delay: 0.3s; }
        .skill-category:nth-child(4) { animation-delay: 0.4s; }
        .skill-category:nth-child(5) { animation-delay: 0.5s; }
        .skill-category:nth-child(6) { animation-delay: 0.6s; }

        .skill-category:hover {
            transform: translateY(-12px);
            box-shadow: 0 25px 70px rgba(0,0,0,0.08);
            border-color: var(--primary-light);
            background: linear-gradient(135deg, var(--white) 0%, var(--bg-secondary) 100%);
        }

        .skill-icon {
            font-size: 2.8rem;
            margin-bottom: 25px;
            display: block;
            transition: transform 0.5s;
        }

        .skill-category:hover .skill-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .skill-category h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--accent);
            font-weight: 600;
        }

        .skill-list {
            list-style: none;
        }

        .skill-list li {
            padding: 13px 0;
            border-bottom: 1px solid rgba(0,0,0,0.06);
            font-size: 0.98rem;
            color: var(--text-light);
            display: flex;
            align-items: center;
            transition: all 0.3s;
        }

        .skill-list li:hover {
            color: var(--primary-dark);
            padding-left: 12px;
        }

        .skill-list li:last-child {
            border-bottom: none;
        }

        .skill-list li::before {
            content: "→";
            color: var(--primary);
            font-size: 1.1rem;
            margin-right: 12px;
            font-weight: 600;
            transition: transform 0.3s;
        }

        .skill-list li:hover::before {
            transform: translateX(5px);
        }

        /* ==========================================
           PROJETOS
        ========================================== */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 70px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .project-card {
            background: var(--white);
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(0,0,0,0.05);
            transition: all 0.6s var(--transition);
            box-shadow: 0 10px 35px rgba(0,0,0,0.03);
            opacity: 0;
            transform: translateY(50px);
        }

        .project-card.animated {
            animation: fadeInUp 0.8s ease forwards;
        }

        .project-card:nth-child(1) { animation-delay: 0.1s; }
        .project-card:nth-child(2) { animation-delay: 0.2s; }
        .project-card:nth-child(3) { animation-delay: 0.3s; }
        .project-card:nth-child(4) { animation-delay: 0.4s; }

        .project-card:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 0 30px 80px rgba(0,0,0,0.1);
            border-color: var(--primary-light);
        }

        .project-image {
            width: 100%;
            height: 320px;
            background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 3.5rem;
            position: relative;
            overflow: hidden;
            transition: all 0.6s;
        }

        .project-image.web { background: linear-gradient(135deg, #d4af7a 0%, #c9a87c 100%); }
        .project-image.mobile { background: linear-gradient(135deg, #e8dcc8 0%, #d4c4ae 100%); }
        .project-image.database { background: linear-gradient(135deg, #b8976a 0%, #a68a64 100%); }
        .project-image.game { background: linear-gradient(135deg, #c9a87c 0%, #b59968 100%); }

        .project-image::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s infinite;
        }

        @keyframes shimmer {
            from { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            to { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        .project-card:hover .project-image {
            transform: scale(1.05);
        }

        .project-content {
            padding: 42px;
        }

        .project-tags {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .tag {
            font-size: 0.72rem;
            padding: 7px 16px;
            background: var(--bg-secondary);
            color: var(--primary-dark);
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 1.2px;
            font-weight: 600;
            border: 1px solid rgba(0,0,0,0.05);
            transition: all 0.3s;
        }

        .project-card:hover .tag {
            background: var(--primary-light);
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        .project-content h3 {
            font-size: 1.7rem;
            margin-bottom: 15px;
            color: var(--accent);
            font-weight: 600;
            transition: color 0.3s;
            font-family: 'Playfair Display', serif;
        }

        .project-card:hover .project-content h3 {
            color: var(--primary-dark);
        }

        .project-content p {
            font-size: 1rem;
            color: var(--text-light);
            line-height: 1.75;
            margin-bottom: 25px;
        }

        .project-tech {
            font-size: 0.9rem;
            color: var(--primary-dark);
            font-weight: 600;
        }

        /* ==========================================
           FORMAÇÃO - TIMELINE
        ========================================== */
        .timeline {
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            padding-left: 60px;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 25px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 60px;
            padding-left: 40px;
            opacity: 0;
            transform: translateX(-50px);
        }

        .timeline-item.animated {
            animation: slideInLeft 0.8s ease forwards;
        }

        @keyframes slideInLeft {
            to { opacity: 1; transform: translateX(0); }
        }

        .timeline-item:nth-child(1) { animation-delay: 0.1s; }
        .timeline-item:nth-child(2) { animation-delay: 0.2s; }
        .timeline-item:nth-child(3) { animation-delay: 0.3s; }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -42px;
            top: 8px;
            width: 18px;
            height: 18px;
            background: var(--primary);
            border-radius: 50%;
            border: 4px solid var(--bg);
            z-index: 1;
            transition: all 0.4s;
            box-shadow: 0 0 0 0 var(--primary-light);
        }

        .timeline-item:hover::before {
            transform: scale(1.3);
            background: var(--accent);
            box-shadow: 0 0 0 8px var(--primary-light);
        }

        .timeline-item.current::before {
            background: var(--primary-dark);
            box-shadow: 0 0 0 6px rgba(201, 168, 124, 0.2);
            animation: pulse-dot 2.5s infinite;
        }

        @keyframes pulse-dot {
            0%, 100% { box-shadow: 0 0 0 6px rgba(201, 168, 124, 0.2); }
            50% { box-shadow: 0 0 0 12px rgba(201, 168, 124, 0.1); }
        }

        .timeline-year {
            font-size: 0.82rem;
            color: var(--primary-dark);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 10px;
        }

        .timeline-item h4 {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--accent);
            font-weight: 600;
        }

        .timeline-item p {
            font-size: 1rem;
            color: var(--text-light);
            line-height: 1.8;
            margin-bottom: 6px;
        }

        /* ==========================================
           CONTATO
        ========================================== */
        .contact-section {
            background: linear-gradient(135deg, var(--white) 0%, var(--bg-secondary) 100%);
            border: 1px solid rgba(0,0,0,0.05);
            border-radius: 30px;
            padding: 100px 70px;
            text-align: center;
            max-width: 1200px;
            margin: 0 auto;
            box-shadow: 0 20px 60px rgba(0,0,0,0.05);
        }

        .contact-section h2 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(3rem, 6vw, 5rem);
            margin-bottom: 30px;
            font-weight: 700;
        }

        .contact-section p {
            font-size: 1.15rem;
            color: var(--text-light);
            margin-bottom: 55px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.85;
        }

        .contact-methods {
            display: flex;
            justify-content: center;
            gap: 50px;
            margin-top: 70px;
            flex-wrap: wrap;
        }

        .contact-item {
            text-align: center;
            transition: transform 0.4s;
            opacity: 0;
        }

        .contact-item.animated {
            animation: fadeInUp 0.8s ease forwards;
        }

        .contact-item:nth-child(1) { animation-delay: 0.1s; }
        .contact-item:nth-child(2) { animation-delay: 0.2s; }
        .contact-item:nth-child(3) { animation-delay: 0.3s; }

        .contact-item:hover {
            transform: translateY(-8px);
        }

        .contact-item span {
            display: block;
            font-size: 2.5rem;
            margin-bottom: 20px;
            filter: grayscale(0.3);
            transition: filter 0.3s, transform 0.3s;
        }

        .contact-item:hover span {
            filter: grayscale(0);
            transform: scale(1.1) rotate(5deg);
        }

        .contact-item a {
            color: var(--accent);
            text-decoration: none;
            font-size: 1.05rem;
            font-weight: 500;
            transition: color 0.3s;
        }

        .contact-item a:hover {
            color: var(--primary-dark);
        }

        .contact-item p {
            font-size: 0.82rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }

        /* ==========================================
           FOOTER
        ========================================== */
        footer {
            padding: 70px 5%;
            text-align: center;
            border-top: 1px solid rgba(0,0,0,0.06);
            margin-top: 100px;
        }

        footer p {
            color: var(--text-light);
            font-size: 0.9rem;
            margin: 6px 0;
        }

        /* ==========================================
           BOTÕES FLUTUANTES
        ========================================== */
        .theme-toggle {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--white);
            border: 2px solid var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            cursor: pointer;
            z-index: 9999;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.4s var(--transition);
        }

        .theme-toggle .theme-icon {
            font-weight: 300;
            color: var(--primary-dark);
        }

        .theme-toggle:hover {
            transform: translateY(-5px) rotate(15deg);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }

        .scroll-top {
            position: fixed;
            bottom: 110px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: var(--primary);
            border: 2px solid var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 9999;
            box-shadow: 0 10px 30px rgba(201, 168, 124, 0.3);
            transition: all 0.4s var(--transition);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
        }

        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .scroll-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(201, 168, 124, 0.4);
            background: var(--primary-dark);
        }

        .scroll-top::before {
            content: '↑';
            color: white;
            font-weight: bold;
            font-size: 1.8rem;
        }

        /* ==========================================
           RESPONSIVO
        ========================================== */
        @media (max-width: 1024px) {
            .hero {
                grid-template-columns: 1fr;
                padding-top: 140px;
                gap: 50px;
            }
            .hero-image-area { height: 65vh; order: -1; }
            .about-grid { grid-template-columns: 1fr; gap: 50px; }
            .skills-container { grid-template-columns: 1fr; }
            .projects-grid { grid-template-columns: 1fr; }
            .nav-links { display: none; }
        }

        @media (max-width: 768px) {
            section { padding: 100px 5%; }
            .contact-section { padding: 70px 35px; }
            .hero-stats { flex-direction: column; gap: 30px; }
            .timeline { padding-left: 40px; }
            .preloader-logo { font-size: clamp(3rem, 12vw, 6rem); }
            .theme-toggle, .scroll-top { 
                right: 20px; 
                width: 50px; 
                height: 50px; 
            }
            .scroll-top { bottom: 90px; }
        }

/* ==========================================
   MELHORIAS DE CURSOR E RESPONSIVIDADE
========================================== */

/* Cursor minimalista simples */
.cursor-dot {
    width: 12px !important;
    height: 12px !important;
    background: var(--primary-dark) !important;
    box-shadow: 0 0 15px rgba(201, 168, 124, 0.6) !important;
}

.cursor-outline {
    display: none !important;
}

/* ==========================================
   RESPONSIVO COMPLETO - MOBILE
========================================== */

@media (max-width: 1024px) {
    /* Esconder cursor no mobile */
    .cursor-dot, .cursor-outline {
        display: none !important;
    }

    /* Hero responsivo */
    .hero {
        grid-template-columns: 1fr !important;
        padding-top: 140px !important;
        gap: 50px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .hero-image-area { 
        height: 50vh !important; 
        order: -1 !important;
        border-radius: 30px !important;
    }

    .hero h1 {
        font-size: clamp(3rem, 12vw, 5rem) !important;
    }

    .hero-stats {
        flex-direction: row !important;
        gap: 30px !important;
        justify-content: space-between !important;
    }

    .stat-item span {
        font-size: 2.2rem !important;
    }

    /* Navbar mobile */
    .nav-links { 
        display: none !important; 
    }

    nav {
        padding: 20px 5% !important;
    }

    .logo img {
        height: 40px !important;
    }

    /* Sobre responsivo */
    .about-grid { 
        grid-template-columns: 1fr !important; 
        gap: 50px !important; 
    }

    /* Skills responsivo */
    .skills-container { 
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Projetos responsivo */
    .projects-grid { 
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .project-image {
        height: 250px !important;
    }

    /* Seções */
    section { 
        padding: 100px 5% !important; 
    }

    .section-header h2 {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }

    /* Contato */
    .contact-section { 
        padding: 60px 30px !important; 
    }

    .contact-methods {
        flex-direction: column !important;
        gap: 30px !important;
    }

    /* Timeline */
    .timeline { 
        padding-left: 30px !important; 
    }

    /* Botões flutuantes maiores no mobile */
    .theme-toggle, .scroll-top {
        width: 55px !important;
        height: 55px !important;
        right: 20px !important;
    }

    .scroll-top {
        bottom: 90px !important;
    }

    .theme-toggle {
        bottom: 20px !important;
    }

    /* Ajustar botões */
    .btn-primary, .btn-secondary {
        padding: 18px 35px !important;
        font-size: 0.8rem !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .hero-buttons a {
        width: 100% !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    /* Textos menores */
    .hero p {
        font-size: 1rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

    .section-header p {
        font-size: 1rem !important;
    }

    /* Cards */
    .info-card, .skill-category, .project-card {
        padding: 30px !important;
    }

    /* Preloader menor */
    .preloader-logo img {
        height: clamp(100px, 15vw, 200px) !important;
    }

    .preloader-subtitle {
        font-size: 0.75rem !important;
        letter-spacing: 4px !important;
    }
}

@media (max-width: 480px) {
    /* Extra pequeno */
    .hero {
        padding-top: 120px !important;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }

    .stat-item span {
        font-size: 1.8rem !important;
    }

    section {
        padding: 80px 5% !important;
    }

    .contact-section {
        padding: 50px 20px !important;
    }

    .theme-toggle, .scroll-top {
        width: 50px !important;
        height: 50px !important;
    }
}

/* ==========================================
   MENU MOBILE
========================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    padding: 100px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--primary-dark);
}

body.menu-open {
    overflow: hidden;
}

/* ==========================================
   RESPONSIVO MOBILE
========================================== */
@media (max-width: 1024px) {
    /* Navegação */
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        padding: 25px 5%;
    }
    
    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        padding: 120px 5% 80px;
        gap: 50px;
        min-height: auto;
    }
    
    .hero-image-area {
        height: 60vh;
        order: -1;
        border-radius: 30px;
    }
    
    .hero h1 {
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        margin: 0 0 15px 0;
    }
    
    /* Seções */
    section {
        padding: 100px 5%;
    }
    
    .section-header h2 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    /* Sobre */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Projetos */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 40px;
    }
    
    /* Contato */
    .contact-section {
        padding: 60px 30px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Botões flutuantes */
    .theme-toggle,
    .scroll-top {
        width: 50px;
        height: 50px;
        right: 20px;
        font-size: 1.3rem;
    }
    
    .scroll-top {
        bottom: 90px;
    }
}

@media (max-width: 768px) {
    /* Textos menores */
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Cards */
    .info-card,
    .skill-category,
    .project-card {
        padding: 30px;
    }
    
    /* Imagens */
    .project-image {
        height: 250px;
    }
    
    /* Footer */
    footer {
        padding: 50px 5%;
    }
}

@media (max-width: 480px) {
    /* Hero extra pequeno */
    .hero {
        padding: 100px 5% 60px;
    }
    
    .hero-image-area {
        height: 50vh;
    }
    
    .hero-tag {
        font-size: 0.65rem;
        padding: 8px 16px;
    }
    
    .stat-item span {
        font-size: 2.5rem;
    }
    
    /* Seções */
    section {
        padding: 80px 5%;
    }
    
    .section-number {
        font-size: 0.65rem;
    }
    
    /* Logo */
    .logo img {
        height: 40px;
    }
    
    /* Menu mobile */
    .mobile-menu {
        width: 80%;
    }
    
    /* Botões */
    .btn-primary,
    .btn-secondary {
        padding: 18px 40px;
        font-size: 0.85rem;
    }
    
    /* Cards ainda menores */
    .info-card,
    .skill-category {
        padding: 25px;
    }
    
    .project-content {
        padding: 30px;
    }
    
    /* Contato */
    .contact-section h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

/* Landscape mobile */
@media (max-width: 900px) and (max-height: 500px) {
    .hero {
        min-height: auto;
    }
    
    .hero-image-area {
        height: 80vh;
    }
}

/* ==========================================
   LINK GITHUB NO HEADER
========================================== */
.github-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.github-link span {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s;
}

.github-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 124, 0.3);
}

.github-link:hover span {
    transform: translateX(5px);
}

/* ==========================================
   FOTOS NOS PROJETOS
========================================== */
.project-image-photo {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.project-image-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(0.2);
}

.project-card:hover .project-image-photo img {
    transform: scale(1.08);
    filter: grayscale(0);
}

/* Overlay sutil na foto */
.project-image-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .project-image-photo {
        height: 250px;
    }
    
    .github-link {
        font-size: 0.8rem;
        padding: 10px 25px;
    }
}