/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Cores principais - tema escuro (padrão) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a28;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(99, 102, 241, 0.1);
    --card-bg: #1a1a28;
    --input-bg: #1a1a28;
    --input-border: #4a4a5e;
    
    /* Cores de destaque */
    --purple: #6366f1;
    --purple-light: #818cf8;
    --purple-dark: #4f46e5;
    --purple-glow: rgba(99, 102, 241, 0.3);
    --white: #f0f0f5;
    --gray: #94a3b8;
    --gray-dark: #4a4a5e;
    --black-lighter: #1a1a28;
    --black-light: #12121a;
    --gradient: linear-gradient(135deg, #6366f1, #ec4899, #06b6d4);
    --transition: all 0.3s ease;
    --accent-color: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: rgba(99, 102, 241, 0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== UTILITÁRIOS ===== */
.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient);
    background-size: 200% auto;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    background-position: right center;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-dark);
}

.btn-secondary:hover {
    border-color: var(--purple);
    color: var(--purple-light);
    transform: translateY(-3px);
}

.btn-nav {
    background: var(--purple);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--purple-dark);
    box-shadow: 0 0 20px var(--purple-glow);
    transform: translateY(-2px);
}
/* ===== VARIÁVEIS DO TEMA ESCURO (PADRÃO) ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a28;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(99, 102, 241, 0.1);
    --card-bg: #1a1a28;
    --input-bg: #1a1a28;
    --input-border: #4a4a5e;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ===== TEMA CLARO ===== */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Aplicar variáveis */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
    background: rgba(var(--bg-primary-rgb), 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.carousel-item, .service-card, .contact-form, .admin-section {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.form-group input,
.form-group textarea {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}

/* ===== BOTÃO DE TEMA ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    background: var(--purple);
    color: white;
}

.theme-toggle-btn .fa-sun {
    display: none;
}

.theme-toggle-btn .fa-moon {
    display: block;
}

/* Mostrar ícone correto baseado no tema */
body.light-theme .theme-toggle-btn .fa-sun {
    display: block;
}

body.light-theme .theme-toggle-btn .fa-moon {
    display: none;
}

/* Ajustes para o tema claro */
body.light-theme .hero-bg::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
}

body.light-theme .hero-bg::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
}

body.light-theme .code-block {
    background: var(--bg-tertiary);
}

body.light-theme .service-icon {
    background: rgba(99, 102, 241, 0.1);
}

body.light-theme .tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--purple);
}

body.light-theme .carousel-btn {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--purple);
}

body.light-theme .dot {
    background: var(--text-muted);
}

body.light-theme .dot.active {
    background: var(--purple);
}

body.light-theme footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}

body.light-theme footer .socials a {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

body.light-theme .contact-item .icon {
    background: rgba(99, 102, 241, 0.1);
}

body.light-theme .alert-success-form {
    background: rgba(16, 185, 129, 0.1);
}

body.light-theme .empty-portfolio,
body.light-theme .empty-services {
    background: var(--card-bg);
    color: var(--text-secondary);
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-actions {
        gap: 0.5rem;
    }
    
    .theme-toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .btn-nav {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Transição suave para todos os elementos */
* {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease;
}
/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: background 0.3s ease;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--purple-light); }
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 5% 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.hero-bg::before {
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-bg::after {
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--purple-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero p {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SEÇÕES ===== */
section { padding: 6rem 5%; position: relative; }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p { color: var(--gray); font-size: 1.1rem; }

/* ===== CARROSSEL ===== */
.carousel {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
    padding: 0 1rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 calc(33.333% - 1.35rem);
    background: var(--black-lighter);
    border-radius: 20px;
    overflow: visible;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.carousel-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    overflow: visible;
    border-radius: 20px;
}

.carousel-img {
    height: 220px;
    background: linear-gradient(135deg, #1e1e3a, #0a0a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.carousel-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.carousel-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item:hover .carousel-icon img {
    transform: scale(1.08);
}

.carousel-icon i {
    font-size: 4rem;
    color: var(--purple-light);
    z-index: 1;
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.carousel-info { 
    padding: 1.8rem; 
    position: relative;
    background: var(--black-lighter);
    border-radius: 0 0 20px 20px;
}

.carousel-info h3 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 0.5rem; 
}

.carousel-info p { 
    color: var(--gray); 
    font-size: 0.9rem; 
    margin-bottom: 1rem; 
    line-height: 1.5; 
}

.carousel-tags { 
    display: flex; 
    gap: 0.5rem; 
    flex-wrap: wrap; 
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--purple-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.carousel-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--purple-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--black-lighter);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    color: var(--purple-light);
}

.carousel-btn:hover { 
    background: var(--purple); 
    border-color: var(--purple); 
    color: white; 
}

.carousel-btn.prev { 
    left: -24px; 
}

.carousel-btn.next { 
    right: -24px; 
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-dark);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.dot.active { 
    background: var(--purple); 
    width: 28px; 
    border-radius: 10px; 
}

/* ===== SERVIÇOS ===== */
.services { background: var(--black-light); }

.service-card {
    background: var(--black-lighter);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    overflow: visible;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.revealed { 
    opacity: 1; 
    transform: translateY(0); 
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.service-card:hover::before { 
    transform: scaleX(1); 
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-icon i { 
    font-size: 2.2rem; 
    color: var(--purple-light); 
}

.service-card:hover .service-icon { 
    background: rgba(99, 102, 241, 0.25); 
    transform: scale(1.05); 
}

.service-card h3 { 
    font-family: 'Space Grotesk', sans-serif; 
    font-size: 1.3rem; 
    font-weight: 600; 
    margin-bottom: 0.8rem; 
    text-align: center; 
}

.service-card p { 
    color: var(--gray); 
    font-size: 0.95rem; 
    line-height: 1.7; 
    text-align: center; 
}

/* ===== SOBRE ===== */
.about { background: var(--black-light); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}

.about-visual .code-block {
    background: var(--black);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--gray);
    position: relative;
    overflow: hidden;
}

.about-visual .code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
}

.about-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; }
.about-text p { color: var(--gray); margin-bottom: 1.2rem; font-size: 1.05rem; line-height: 1.8; }

.stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stat-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; }
.stat-item p { color: var(--gray); font-size: 0.85rem; margin-top: 0.2rem; }

/* ===== CONTATO ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-info p { color: var(--gray); margin-bottom: 2rem; font-size: 1.05rem; }

.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-item .icon {
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    font-size: 1.2rem;
}

.contact-item div h4 { font-weight: 600; font-size: 0.95rem; }
.contact-item div p { color: var(--gray); font-size: 0.9rem; margin: 0; }

.contact-form {
    background: var(--black-lighter);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--white); }

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--black);
    border: 1px solid var(--gray-dark);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.btn-submit {
    width: 100%;
    background: var(--gradient);
    background-size: 200% auto;
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-submit:hover { box-shadow: 0 0 25px var(--purple-glow); background-position: right center; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    z-index: 10000;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideInRight 0.3s ease;
}

.toast.error { background: #ef4444; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }

/* ===== FOOTER ===== */
footer {
    background: var(--black);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 3rem 5%;
    text-align: center;
}

footer .logo { justify-content: center; margin-bottom: 1.5rem; }
footer p { color: var(--gray); font-size: 0.9rem; }

footer .socials { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }
footer .socials a {
    width: 44px;
    height: 44px;
    background: var(--black-lighter);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

footer .socials a:hover { background: var(--purple); color: var(--white); border-color: var(--purple); transform: translateY(-3px); }

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
    .carousel-item { flex: 0 0 calc(50% - 1rem); }
    .carousel-btn.prev { left: -12px; }
    .carousel-btn.next { right: -12px; }
}

@media (max-width: 768px) {
    .about-content, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .stats { gap: 1.5rem; }
    .carousel-item { flex: 0 0 100%; }
    .carousel-btn { width: 36px; height: 36px; }
    .carousel-btn.prev { left: -8px; }
    .carousel-btn.next { right: -8px; }
}

@media (max-width: 600px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* Mensagem de sucesso do formulário */
.alert-success-form {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #10b981;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
/* Alertas do formulário */
.alert-success-form {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.alert-error-form {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.alert-success-form i,
.alert-error-form i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.alert-success-form div,
.alert-error-form div {
    flex: 1;
}

.alert-error-form ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.alert-error-form li {
    margin: 2px 0;
}

.close-alert {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-alert:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading do botão */
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contato form wrapper */
.contact-form-wrapper {
    width: 100%;
}
/* ===== MÁSCARA TRANSLÚCIDA NO PORTFÓLIO ===== */
.carousel-img {
    position: relative;
    overflow: hidden;
}

/* Máscara sobre a imagem */
.carousel-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.8));
    z-index: 2;
    transition: opacity 0.4s ease;
    opacity: 1;
}

/* Ícone de "Ver projeto" centralizado */
.carousel-img::after {
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: white;
    z-index: 3;
    opacity: 1;
    transition: all 0.4s ease;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 60px;
    text-align: center;
}

/* Ao passar o mouse, remover a máscara e o ícone */
.carousel-item:hover .carousel-img::before {
    opacity: 0;
    visibility: hidden;
}

.carousel-item:hover .carousel-img::after {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.8);
}

/* A imagem fica com zoom suave */
.carousel-icon img {
    transition: transform 0.5s ease;
}

.carousel-item:hover .carousel-icon img {
    transform: scale(1.1);
}

/* Versão alternativa com texto "Ver projeto" */
.carousel-img-ver {
    position: relative;
}

.carousel-img-ver::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(30, 30, 30, 0.8));
    z-index: 2;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.carousel-img-ver::after {
    content: '🔍 Ver projeto';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: white;
    z-index: 3;
    opacity: 1;
    transition: all 0.4s ease;
    background: var(--purple);
    padding: 10px 20px;
    border-radius: 30px;
    white-space: nowrap;
    font-weight: 600;
}

.carousel-item:hover .carousel-img-ver::before {
    opacity: 0;
}

.carousel-item:hover .carousel-img-ver::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}