/* 
  INDEX.CSS - ESTILOS DA PÁGINA INICIAL
  Contém estilos para Header, Hero, Skills e Footer.
*/

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Utilitário para páginas internas */
.page-content {
    padding-top: 150px;
    min-height: calc(100vh - 80px);
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 100px;
    gap: var(--space-lg);
}

.hero-content {
    flex: 1;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xs);
    background: linear-gradient(90deg, #fff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: var(--space-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    transition: var(--transition-normal);
    position: relative;
}

.hero-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SKILLS SECTION --- */
/* TESTE */
.skill-card {
    background: #0d0d0d;
    padding: 30px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.15);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;

    text-align: center;
    cursor: pointer;

    transition: all 0.3s ease;
}

/* HOVER MAIS FORTE */
.skill-card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #00d4ff;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}

/* ÍCONE GRANDE */
.skill-card i {
    font-size: 3.2rem;
    transition: 0.3s;
}

/* ANIMAÇÃO NO HOVER */
.skill-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* TEXTO */
.skill-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* GITHUB BRANCO */
.devicon-github-original {
    color: #fff;
}

/* TESTE */

/* --- SKILLS --- */

.skills {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: #00d4ff;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

/* CARD */
.skill-card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
}

/* HEADER (nome + %) */
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* ÍCONE + TEXTO */
.skill-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
}

.skill-icon i {
    font-size: 1.3rem;
}


/* --- FOOTER --- */
.main-footer {
    padding: var(--space-lg) 0;
    background: #050505;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.social-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 150px;
        justify-content: center;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-container {
        justify-content: center;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
