@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00ff88;
    --primary-blue: #0066ff;
    --accent-purple: #8b5cf6;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #111111;
    --border-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-secondary: linear-gradient(135deg, var(--primary-blue), var(--accent-purple));
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.no-select {
  -webkit-user-select: none; /* Chrome, Safari, iOS */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;         /* padrão */

  -webkit-touch-callout: none; /* Evita o menu de "copiar" no iOS Safari */
}

.code-font {
    font-family: 'JetBrains Mono', monospace;
}

/* Animated Background Grid */
.bg-grid {
    position: absolute;
    top: -50px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    opacity: 0.06;
    z-index: 1;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.3) 1px, transparent 1px);
    background-size: 30px 30px;
    /* animation: gridMove 20s linear infinite; */
    overflow: hidden;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* Partículas flutuantes sutis */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    opacity: 0.6;
    animation: subtleFloat 6s ease-in-out infinite;
}

.particle:nth-child(2n) {
    background: rgba(0, 102, 255, 0.3);
    animation-duration: 8s;
    width: 1.5px;
    height: 1.5px;
}

.particle:nth-child(3n) {
    background: rgba(139, 92, 246, 0.2);
    animation-duration: 7s;
    width: 2px;
    height: 2px;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    
    max-width: 100vw;
    box-sizing: border-box;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1001;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a:hover {
    color: var(--primary-green);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 4px;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-close-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 1101;
}

.mobile-close-btn:hover {
    background: var(--card-bg);
    color: var(--primary-green);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.mobile-nav-link:hover {
    color: var(--primary-green);
    background: rgba(0, 255, 136, 0.05);
    transform: translateX(10px);
}

/* Mobile Logo (separate from main logo) */
.mobile-logo {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1101;
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mobile-language-selector label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-language-selector select {
    width: 100%;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.mobile-language-selector select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

/* Smooth transitions for mobile menu */
.mobile-nav-overlay * {
    transition-delay: 0s;
}

.mobile-nav-overlay.active .mobile-nav-link {
    animation: slideInFromLeft 0.4s ease forwards;
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Prevent body scroll when mobile menu is open - Improved */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Smooth scroll restoration after menu close */
body {
    transition: none;
}

/* Hero Section - Com efeito parallax */
.hero {
    /* min-height: calc(100dvh - 60px); */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--darker-bg);
    padding-top: 60px;
    min-height: 100svh;
    --before-opacity: 1;
    --scroll: 0px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.1), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 102, 255, 0.1), transparent 50%);
    will-change: transform;
    opacity: var(--before-opacity);
    transform: translateY(calc(var(--scroll, 0px) * 0.3));
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    will-change: transform;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-name {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.typing-container {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.typing-text {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    min-height: 1.5em;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary-green);
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
    /* line-height: 1.8; */
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0.6;
    /* transition: opacity 0.3s ease; */
    transition: all 0.3s ease;
    /* cursor: pointer; */
}

.scroll-arrow {
    width: 36px;
    height: 36px;
    /* border: 1.5px solid var(--primary-green); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: var(--primary-green); */
    animation: scrollBounce 2s ease-in-out infinite;
    /* background: rgba(0, 255, 136, 0.03); */
    backdrop-filter: blur(10px);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.hero .scroll-indicator.scrolled {
    opacity: 0;
    pointer-events: none;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background: var(--dark-bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 2rem; */
    /* width: 100%; */
    /* box-sizing: border-box; */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-green);
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.8rem;
    margin-bottom: 1.2rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Skills Section */
.skills {
    padding: 6rem 2rem;
    background: var(--darker-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-green);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 255, 136, 0.15);
}

.skill-category h3 {
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

.skill-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skill-name {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.skill-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.keyword-tag {
    background: var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.keyword-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.6s ease;
}

.skill-item:hover .keyword-tag {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.skill-item:hover .keyword-tag::before {
    left: 100%;
}

/* Keywords animations */
.skill-keywords .keyword-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-keywords .keyword-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-keywords .keyword-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-keywords .keyword-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-keywords .keyword-tag:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-category.fade-in .keyword-tag {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-name {
        font-size: 1rem;
    }
    
    .keyword-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .typing-container {
        margin-bottom: 2rem;
    }

    .hero-description {
        font-weight: 400;
    }
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background: var(--dark-bg);
}

.projects-carousel {
    position: relative;
    margin-top: 3rem;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.project-card {
    flex: 0 0 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    margin: 0 0.5rem;
}

.project-image {
    height: 250px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: default;
    transition: all 0.3s ease;
}

.project-image:not(:has(img.loaded))::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    animation: shimmer 2.5s infinite ease-in-out;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.project-image[data-expandable="true"] {
    cursor: pointer;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Overlay que aparece ao hover nas imagens clicáveis */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.project-image[data-expandable="true"]:hover .image-overlay {
    opacity: 1;
}

.expand-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s infinite;
}

.expand-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-green);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--primary-green);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.carousel-btn:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-green);
}

/* CSS adicional para melhorar o placeholder das imagens */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    border-radius: 8px;
    min-height: 200px;
}

/* Loading state for images */
.project-image img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image img[loading="lazy"].loaded {
    opacity: 1;
}

/* Error handling styles */
.project-image .error-placeholder {
    background: #e9ecef;
    color: #6c757d;
    font-size: 2rem;
}

/* Modal/Lightbox Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-green);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.modal-image-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--darker-bg);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-image.loaded {
    opacity: 1;
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-info {
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-align: center;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-info {
        padding: 1rem 1.5rem;
    }
    
    .expand-icon {
        font-size: 2rem;
    }
    
    .expand-text {
        font-size: 0.8rem;
    }
}

/* Esconde overlay em dispositivos touch */
@media (hover: none) {
    .image-overlay {
        display: none;
    }
    
    .project-image[data-expandable="true"]::after {
        content: '🔍';
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        z-index: 2;
    }
}

/* Learning Section */
.learning {
    padding: 6rem 2rem;
    background: var(--darker-bg);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.learning-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.learning-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.learning-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.learning-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.learning-progress {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: var(--dark-bg);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-secondary);
}

.contact-method:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    color: var(--text-primary);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.contact-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-highlight {
    color: var(--primary-green);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin: 0;
    }

    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .language-selector {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .mobile-nav-content {
        padding: 1.5rem;
    }
    
    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}

.language-selector {
    position: relative;
    margin-left: 2rem;
}

.language-selector select {
    background-color: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    min-width: 80px;
}

.language-selector select:hover {
    border-color: var(--primary-green);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}