/* ====== FUENTE ====== */
@font-face{
    font-family: "Born2BSporty";
    src: url("sources/Born2bSporty.ttf") format("truetype");
}

/* ====== CONFIG GLOBAL ====== */
body {
    font-family: "Born2BSporty", sans-serif;
    margin: 0;
    background: #0d0d0d;
    background-image:url("sources/pixelchiselbackground.png");
    background-size: cover;
    color: #ffffff;
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 110px;
}

/* ====== HEADER ====== */
header {
    background: #111;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}



/* LOGO */
.logo img {
    display: block;
}

/* ====== NAV ====== */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    opacity: 0.9;
    transition: opacity .2s;
}

nav a:hover {
    opacity: 1;
}

/* ====== DROPDOWN ====== */
.dropdown {
    position: relative;
}

.dropbtn {
    background: none;
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity .2s;
    font-family: "Born2BSporty";
    padding: 0;
}

/* CONTENIDO DEL DROPDOWN */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #111;
    min-width: 160px;
    border: 2px solid #222;
    display: block;

    /* Animación */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease-out, opacity .25s ease-out;
}

/* Abierto */
.dropdown.open .dropdown-content {
    max-height: 500px;
    opacity: 1;
}

/* Links */
.dropdown-content a {
    display: block;
    padding: 10px 12px;
    color: white;
    text-decoration: none;
    border-bottom: 2px solid #222;  /* estilo recto */
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #222;
}

/* ====== MENÚ MOBILE ====== */
.menu-btn {
    display: none;
    font-size: 32px;
    cursor: pointer;
    user-select: none;
}

/* Menú animado */
@media (max-width: 800px) {

    nav {
        position: absolute;
        top: 90px;
        right: 0;
        background: #111;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        border-top: 2px solid #222;

        /* Animación */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height .3s ease, opacity .3s ease;
    }

    /* nav abierto */
    nav.open {
        max-height: 500px;
        opacity: 1;
    }

    nav a {
        padding: 15px 20px;
        font-size: 22px;
        width: 100%;
        border-bottom: 2px solid #222;
    }
    .dropbtn {
        padding: 15px 20px;
    }

    .dropdown{
        border-bottom: 2px solid #222;
        width: 100%;
    }

    .dropdown-content {
        position: relative;
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .menu-btn {
        display: block;
    }

    
}

/* ====== HERO ====== */
.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
}

#typewriter {
    font-size: clamp(28px, 6vw, 48px);
    text-align: center;
    display: inline-block;
    min-height: 1em;
    border-right: 3px solid #fff; /* más recto, más “pixel” */
    padding-right: 8px;
    animation: blink 0.7s infinite;
    white-space: nowrap;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: #fff; }
}

/* ====== ABOUT ====== */
.about {
    padding: 80px 10%;
}

.about h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Texto */
.about-content p {
    max-width: 650px;
    font-size: clamp(20px, 2.2vw, 25px);
    line-height: 1.6;
    opacity: 0.9;
}

/* Imagen */
.about-image img {
    width: clamp(320px, 40vw, 360px);
    border: 2px solid #222;        /* bordes rectos */
    transition: 0.2s;
}

.about-image img:hover {
    opacity: 1;
    transform: scale(1.03);
}

/* ====== FOOTER ====== */
footer {
    text-align: center;
    padding: 20px;
    opacity: 0.6;
    font-size: 14px;
}

/* ---------- CONTACT SECTION ---------- */

.contact-section {
    padding: 80px 10%;
    text-align: center;
}

.contact-section h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Formulario */
.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Texto de labels */
.contact-form label {
    font-size: 18px;
    text-align: left;
    opacity: 0.9;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
    background: #0f0f0f;
    border: 2px solid #222;
    color: #fff;
    padding: 12px;
    font-size: 18px;
    outline: none;
    width: 100%;
    font-family: "Born2BSporty", sans-serif;
}

/* Quitar bordes redondeados para estilo PixelChisel */
.contact-form input,
.contact-form textarea,
.contact-form button {
    border-radius: 0;
}

/* Input focus */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff;
}

/* Textarea */
.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Botón */
.contact-form button {
    background: #fff;
    color: #000;
    border: 2px solid #fff;
    padding: 12px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: "Born2BSporty", sans-serif;
}

/* Hover */
.contact-form button:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
}

/* Mobile */
@media (max-width: 600px) {
    .contact-section {
        padding: 60px 8%;
    }

    .contact-form {
        gap: 15px;
    }

    .contact-form button {
        font-size: 18px;
        padding: 10px 16px;
    }
}

/* ---------- TEAM SECTION ---------- */

.team-section {
    margin-top: 80px;
    text-align: center;
}

.team-section h3 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding: 0 5%;
}

/* Tarjeta del desarrollador */
.team-card {
    background: #111;
    border: 3px solid #fff;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease-in-out, background 0.2s;
}

.team-card:hover {
    transform: translateY(-6px);
    background: #151515;
}

.team-card img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 3px solid #fff;
    image-rendering: pixelated; /* si tenés estilo pixel art */
}

.team-card h4 {
    font-size: 26px;
    margin: 20px 0 10px;
}

.team-card p {
    font-size: 18px;
    line-height: 1.4;
    opacity: 0.9;
}
