/* ===== VARIÁVEIS ===== */
:root {
    --azul: #0066ff;
    --azul-escuro: #0052cc;
    --roxo: #7b2eff;
    --roxo-escuro: #5c1fb3;
    --escuro: #0d1117;
    --card: #161b22;
    --texto: #ffffff;
    --texto-claro: #b0b0b0;
    --border: #30363d;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--escuro);
    color: var(--texto);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(13, 17, 23, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

/* LOGO NO HEADER */
.logo img {
    width: 150px;
    height: 70px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    width: 100px;
    height: 70px;
}

.logo span {
    display: none;
}

.menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.menu a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.menu a:hover {
    color: var(--azul);
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--azul), var(--roxo));
    transition: width 0.3s ease;
}

.menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--texto);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* LOGO NO HERO */
.hero-logo img {
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.3));
    transition: all 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(123, 46, 255, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--azul), var(--roxo), var(--azul));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 3s ease infinite;
    margin-top: 10px;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: 1.5rem;
    color: var(--texto-claro);
    margin-top: 10px;
}

.description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto;
    color: var(--texto-claro);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, var(--azul), var(--roxo));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid #25D366;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: white;
    transform: translateY(-3px);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(123, 46, 255, 0.1), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1), transparent 50%);
    z-index: 1;
}

/* ===== SECTION HEADER ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--azul), var(--roxo));
    margin: 0 auto;
    border-radius: 3px;
}

.section-header p {
    color: var(--texto-claro);
    margin-top: 15px;
}

/* ===== SOBRE SECTION ===== */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.sobre-texto p {
    margin-bottom: 20px;
    color: var(--texto-claro);
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--azul);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--texto-claro);
}

.sobre-ilustracao {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(123, 46, 255, 0.1));
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-icon {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 4rem;
}

.code-icon i {
    color: var(--azul);
    transition: all 0.3s ease;
}

.code-icon i:hover {
    color: var(--roxo);
    transform: translateY(-5px);
}

/* ===== PROJETOS SECTION ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* CARD PADRÃO */
.card {
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--roxo);
    box-shadow: 0 10px 30px rgba(123, 46, 255, 0.2);
}

/* CORREÇÃO DAS IMAGENS DOS CARDS */
.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #2563EB20, #7C3AED20);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

/* Para imagens específicas (Barbearia, Clare.ia) */
.card-image img[src*="barbearia"],
.card-image img[src*="clareia"],
.card-image img[alt*="Barbearia"],
.card-image img[alt*="Clare.ia"] {
    object-fit: contain;
    background: #1a1a2e;
    padding: 10px;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.btn-detalhes {
    background: linear-gradient(45deg, var(--azul), var(--roxo));
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-detalhes:hover {
    transform: scale(1.05);
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--texto-claro);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* TECNOLOGIAS NO CARD */
.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.card-tech span {
    background: rgba(0, 102, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #60A5FA;
    transition: all 0.3s ease;
}

.card-tech span:hover {
    background: linear-gradient(135deg, #0066ff20, #7b2eff20);
    transform: translateY(-2px);
}

/* BOTÃO DO CARD */
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60A5FA;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-card:hover {
    gap: 12px;
    color: var(--roxo);
}

.btn-card::after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-card:hover::after {
    transform: translateX(3px);
}

/* ===== CARD YOU BEE EM DESTAQUE ===== */
.card-youbee {
    border: 2px solid #7C3AED;
    position: relative;
    overflow: visible;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.2);
    animation: glow 2s ease-in-out infinite;
}

.card-youbee:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.3);
}

.card-youbee::before {
    content: '🐝';
    position: absolute;
    top: -12px;
    right: -12px;
    font-size: 1.5rem;
    background: #7C3AED;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.card-youbee .card-content h3 {
    color: #A855F7;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(124, 58, 237, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
    }
}

/* ===== DESTAQUE YOU BEE NA SEÇÃO SOBRE ===== */
.projeto-destaque {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2563EB15, #7C3AED15);
    border-radius: 12px;
    border-left: 4px solid #7C3AED;
}

.projeto-destaque h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #A855F7;
}

.projeto-destaque p {
    margin-bottom: 15px;
}

.btn-destaque {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #0066ff, #7b2eff);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-destaque:hover {
    transform: translateX(5px);
    color: white;
}

/* ===== TECNOLOGIAS SECTION ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    text-align: center;
}

.tech-item {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--azul);
}

.tech-item i {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.tech-item i.fa-html5 { color: #E44D26; }
.tech-item i.fa-css3-alt { color: #264DE4; }
.tech-item i.fa-js { color: #F7DF1E; }
.tech-item i.fa-php { color: #777BB4; }
.tech-item i.fa-database { color: #4479A1; }
.tech-item i.fa-linux { color: #FCC624; }
.tech-item i.fa-git-alt { color: #F05032; }
.tech-item i.fa-bootstrap { color: #7952B3; }
.tech-item i.fa-react { color: #61DAFB; }
.tech-item i.fa-node { color: #339933; }

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== SERVIÇOS SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--roxo);
}

.service-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--azul), var(--roxo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--texto-claro);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(123, 46, 255, 0.1));
    text-align: center;
}

.cta-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--texto-claro);
    margin-bottom: 30px;
}

.btn-cta {
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    font-size: 1.1rem;
    padding: 16px 40px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    width: 100px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-logo h3 {
    font-family: 'Orbitron', monospace;
    margin-bottom: 10px;
}

.footer-logo p {
    color: var(--texto-claro);
    font-size: 0.85rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--texto-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--azul);
}

.footer-contato-link {
    color: var(--texto-claro);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contato-link:hover {
    color: #25D366;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--texto-claro);
    background: var(--card);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: linear-gradient(45deg, var(--azul), var(--roxo));
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--texto-claro);
    font-size: 0.85rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--roxo);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--texto);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--roxo);
}

.modal-body {
    padding: 30px;
}

.modal-body h2 {
    margin-bottom: 20px;
    font-family: 'Orbitron', monospace;
}

.modal-detalhes p {
    margin-bottom: 20px;
    color: var(--texto-claro);
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.modal-tech span {
    background: rgba(0, 102, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.modal-features {
    margin-bottom: 30px;
}

.modal-features ul {
    list-style: none;
}

.modal-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--azul);
    font-weight: bold;
}

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--escuro);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        gap: 15px;
        border-top: 1px solid var(--border);
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-logo img {
        width: 130px;
        height: 130px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .logo img {
        width: 48px;
        height: 48px;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
    }
    
    .sobre-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 80%;
        justify-content: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .footer-logo img {
        width: 60px;
    }
    
    /* Ajuste altura dos cards no tablet */
    .card-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .sobre-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-logo img {
        width: 100px;
        height: 100px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        width: 42px;
        height: 42px;
    }
    
    .footer-logo img {
        width: 55px;
    }
    
    /* Ajuste altura dos cards no mobile */
    .card-image {
        height: 140px;
    }
}
