/* ===================================================
   INFRA255
   Author: Infra255
   Version: 1.0
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root{

    --background:#081018;
    --background2:#101b2b;

    --primary:#2563EB;
    --secondary:#38BDF8;

    --white:#ffffff;

    --text:#CBD5E1;

    --border:#1E293B;

    --card:#111827;

    --shadow:0 15px 40px rgba(0,0,0,.30);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Inter",sans-serif;

    background:var(--background);

    color:var(--white);

    overflow-x:hidden;

}

/*========================
LOADER
========================*/

#loader{

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#000;

}

.terminal{

    font-family:Consolas, monospace;

    color:#4ADE80;

    font-size:18px;

    line-height:32px;

}

/*========================
NAVBAR
========================*/

header{

    position:fixed;

    width:100%;

    top:0;

    left:0;

    z-index:999;

    backdrop-filter:blur(16px);

    background:rgba(8,16,24,.80);

    border-bottom:1px solid rgba(255,255,255,.05);

}

.navbar{

    width:min(1200px,92%);

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:80px;

}

.logo{

    font-size:28px;

    font-weight:700;

    letter-spacing:2px;

    color:white;

}

.menu{

    display:flex;

    gap:35px;

    list-style:none;

}

.menu a{

    text-decoration:none;

    color:#CBD5E1;

    transition:.3s;

}

.menu a:hover{

    color:var(--secondary);

}

.language{

    display:flex;

    gap:8px;

}

.language a{

    color:white;

    text-decoration:none;

    font-weight:600;

}

/*========================
HERO
========================*/

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    width:min(1200px,92%);

    margin:auto;

    gap:60px;

}

.hero-content{

    flex:1;

}

.hero h1{

    font-size:58px;

    line-height:1.15;

    margin-bottom:30px;

}

.hero p{

    font-size:22px;

    color:var(--text);

    line-height:1.8;

    max-width:700px;

}

.hero-buttons{

    margin-top:50px;

    display:flex;

    gap:20px;

}

.btn-primary{

    background:var(--primary);

    padding:18px 32px;

    border-radius:12px;

    text-decoration:none;

    color:white;

    font-weight:600;

    transition:.3s;

}

.btn-primary:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 30px rgba(37,99,235,.35);

}

.btn-secondary{

    border:1px solid #3B82F6;

    padding:18px 32px;

    border-radius:12px;

    color:white;

    text-decoration:none;

    transition:.3s;

}

.btn-secondary:hover{

    background:#1E3A8A;

}

/*========================
SECTIONS
========================*/

section{

    padding:120px 0;

}

section h2{

    text-align:center;

    font-size:42px;

    margin-bottom:70px;

}

/*========================
CARDS
========================*/

.cards{

    width:min(1200px,92%);

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

.card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    padding:35px;

    transition:.35s;

}

.card:hover{

    transform:translateY(-10px);

    border-color:#2563EB;

    box-shadow:var(--shadow);

}

.card h3{

    margin-bottom:18px;

    font-size:24px;

}

.card p{

    color:var(--text);

    line-height:1.7;

}

/*========================
TECH GRID
========================*/

.tech-grid{

    width:min(1100px,90%);

    margin:auto;

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(170px,1fr));

    gap:25px;

}

.tech-grid div{

    background:#111827;

    border-radius:15px;

    border:1px solid var(--border);

    padding:28px;

    text-align:center;

    transition:.3s;

}

.tech-grid div:hover{

    background:#1E293B;

    transform:translateY(-6px);

}

/*========================
ABOUT
========================*/

#about{

    width:min(900px,90%);

    margin:auto;

    text-align:center;

}

#about p{

    font-size:20px;

    line-height:2;

    color:var(--text);

}

/*========================
CONTACT
========================*/

#contacto{

    text-align:center;

}

#contacto p{

    font-size:22px;

    margin-bottom:30px;

}

#contacto a{

    color:#38BDF8;

    text-decoration:none;

    font-size:24px;

}

footer{

    text-align:center;

    padding:40px;

    color:#94A3B8;

}

/*========================
RESPONSIVE
========================*/

@media(max-width:900px){

.hero{

    flex-direction:column;

    text-align:center;

    padding-top:120px;

}

.hero h1{

    font-size:42px;

}

.hero-buttons{

    justify-content:center;

}

.menu{

    display:none;

}

section h2{

    font-size:34px;

}

}
/* =========================
   SCROLL ANIMATIONS
========================= */

.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
