/* ===============================
   MASTERSTUDIOS PORTFOLIO CSS
=============================== */

/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

/* ROOT COLORS */
:root{
    --bg:#000000;
    --text:#f8f7ff;
    --surface:rgba(12,14,30,.82);
    --surface-strong:rgba(17,10,38,.92);

    --accent:#79c2f3;
    --accent-soft:#ffb4ef;
    --accent-warm:#ffd6f5;

    --muted:#d8c1de;
}

/* BASE */
html{
    scroll-behavior:smooth;
}

body{
    background:#000000;
    color:var(--text);
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    line-height:1.6;
    overflow-x:hidden;
}

/* BACKGROUND FX */
body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:0;
    background:
        radial-gradient(circle at 15% 20%, rgba(121,194,243,.07), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255,180,239,.06), transparent 30%);
}

/* CANVAS */
#particleCanvas{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    z-index:0;
    pointer-events:none;
}

/* LAYOUT */
.container{
    max-width:1120px;
    margin:0 auto;
    padding:0 32px;
    position:relative;
    z-index:1;
}

section{
    padding:80px 0;
}

/* TITLES */
h1,h2,h3{
    font-weight:600;
}

h2{
    font-size:2.1rem;
    text-align:center;
    margin-bottom:10px;
    background:linear-gradient(90deg,var(--accent-soft),var(--accent-warm));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.subtitle{
    text-align:center;
    opacity:.75;
    margin-bottom:40px;
}

/* LINKS */
a{
    text-decoration:none;
    color:#fff;
    transition:.25s ease;
}

/* ===============================
   NAVBAR
=============================== */
.navbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 36px;
    background:rgba(10,14,34,.42);
    border-bottom:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
}

.logo{
    font-size:1.25rem;
    font-weight:700;
    background:linear-gradient(90deg,var(--accent),var(--accent-soft));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.nav-links{
    display:flex;
    gap:24px;
    list-style:none;
}

.nav-links a{
    color:rgba(255,255,255,.88);
    position:relative;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:3px;
    border-radius:999px;
    background:linear-gradient(90deg,var(--accent),var(--accent-soft));
    transition:.25s ease;
}

.nav-links a:hover,
.nav-links a.active{
    color:var(--accent-soft);
}

.nav-links a:hover::after,
.nav-links a.active::after{
    width:100%;
}

/* ===============================
   HERO
=============================== */
.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    padding-top:90px;
}

.hero-content{
    max-width:760px;
}

.hero-name{
    font-size:5rem;
    line-height:1.05;
    font-weight:700;
    margin-bottom:10px;

    background:linear-gradient(90deg,#fff,var(--accent),var(--accent-soft));
    background-size:200% auto;
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;

    animation:flow 6s linear infinite;
}

.hero-title{
    font-size:2rem;
    color:#eef5ff;
    margin-bottom:18px;
}

.hero-tagline{
    font-size:1.15rem;
    color:#d7ddff;
    max-width:680px;
    border-left:4px solid var(--accent-soft);
    padding-left:18px;
}

/* ===============================
   ABOUT
=============================== */
.about{
    padding:80px 0;
}

.about-text{
    max-width:900px;
    margin:0 auto;
    padding:30px;
    border-radius:24px;
    background:var(--surface);
    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    color:rgba(248,247,255,.92);
    font-size:1.05rem;
    line-height:1.8;

    box-shadow:0 18px 42px rgba(25,29,68,.16);
    transition:.35s ease;
}

.about-text:hover{
    transform:translateY(-6px);
    border-color:var(--accent-soft);
    box-shadow:0 24px 60px rgba(25,29,68,.28);
}

.about-text strong{
    background:linear-gradient(90deg,var(--accent),var(--accent-soft));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

/* ===============================
   SKILLS
=============================== */
.skills-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

.skill-badge{
    background:var(--surface);
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    padding:16px 18px;
    text-align:center;
    font-weight:600;
    transition:.3s ease;
}

.skill-badge:hover{
    transform:translateY(-6px);
    border-color:var(--accent-soft);
    box-shadow:0 18px 42px rgba(25,29,68,.18);
}

/* ===============================
   PROJECTS
=============================== */
.projects-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:22px;
}

.projects-card{
    background:var(--surface);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:24px;
    transition:.35s ease;
}

.projects-card:hover{
    transform:translateY(-8px);
    border-color:var(--accent-soft);
    box-shadow:0 24px 60px rgba(25,29,68,.28);
}

.projects-card-title{
    font-size:1.35rem;
    margin-bottom:12px;
}

.projects-desc{
    opacity:.85;
    margin-bottom:16px;
}

.projects-tech{
    display:flex;
    flex-wrap:wrap;
    gap:0.6rem;
}

.tech-tag{
    font-size:.82rem;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
}

.projects-link{
    display:inline-block;
    margin-top:1rem;
    color:var(--accent);
    font-weight:600;
}

/* ===============================
   EXPERIENCE
=============================== */
.cards-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:22px;
}

.card{
    background:rgba(12,14,30,.82);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:26px;
    position:relative;
    overflow:hidden;
    transition:transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    backdrop-filter:blur(18px);
}

.card:hover{
    transform:translateY(-8px);
    box-shadow:0 24px 60px rgba(25,29,68,.28);
    border-color:var(--accent-soft);
}

.badge{
    position:absolute;
    top:16px;
    right:16px;
    padding:6px 12px;
    border-radius:999px;
    font-size:.78rem;
    font-weight:700;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.12);
    color:transparent;
    background-image:linear-gradient(90deg,var(--accent),var(--accent-soft));
    -webkit-background-clip:text;
    background-clip:text;
}

.card h3{
    font-size:1.25rem;
    margin-bottom:10px;
}

.meta-line{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:10px;
}

.role{
    font-weight:700;
    background:linear-gradient(90deg,var(--accent),var(--accent-soft));
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.date{
    font-size:.88rem;
    color:var(--muted);
    opacity:.82;
}

.server-line{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.server-line span{
    color:var(--muted);
}

.join-link{
    display:inline-block;
    color:#fff;
    font-weight:700;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(124,110,255,.28);
    padding:6px 12px;
    border-radius:999px;
}

.join-link:hover{
    background:rgba(124,110,255,.18);
    border-color:var(--accent-soft);
}

.card ul{
    list-style:none;
    margin-top:14px;
    padding-left:18px;
}

.card li{
    position:relative;
    padding-left:14px;
    margin-bottom:8px;
    opacity:.83;
}

.card li::before{
    content:"•";
    position:absolute;
    left:0;
    color:var(--accent);
}

/* ===============================
   CONTACT
=============================== */
.contact-form{
    max-width:760px;
    margin:0 auto;
    background:var(--surface);
    border:1px solid rgba(255,255,255,.08);
    border-radius:28px;
    padding:32px;
}

.form-group{
    margin-bottom:20px;
}

label{
    display:block;
    margin-bottom:8px;
    color:#dfe8ff;
}

input,
textarea{
    width:100%;
    border:none;
    outline:none;
    padding:14px 18px;
    border-radius:16px;
    background:rgba(255,255,255,.05);
    color:#fff;
}

textarea{
    min-height:160px;
    resize:vertical;
}

.btn-send{
    border:none;
    padding:14px 26px;
    border-radius:999px;
    font-weight:700;
    cursor:pointer;
    color:#000;
    background:linear-gradient(90deg,var(--accent),var(--accent-soft));
}

/* ===============================
   FOOTER
=============================== */
.footer{
    padding:35px 0;
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:50px;
}

.footer-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.footer-icons{
    display:flex;
    gap:14px;
}

.footer-icons a{
    width:42px;
    height:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.05);
}

.footer-icons a:hover{
    background:rgba(255,255,255,.12);
}

/* ===============================
   ANIMATIONS
=============================== */
@keyframes flow{
    0%{background-position:0% center;}
    100%{background-position:200% center;}
}

/* ===============================
   MOBILE
=============================== */
@media(max-width:768px){

    .navbar{
        padding:16px 18px;
        flex-direction:column;
        gap:12px;
    }

    .nav-links{
        gap:14px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .hero-name{
        font-size:3rem;
    }

    .hero-title{
        font-size:1.35rem;
    }

    .container{
        padding:0 18px;
    }

    .footer-inner{
        flex-direction:column;
        text-align:center;
    }

    .contact-form,
    .about-text,
    .projects-card,
    .card{
        padding:20px;
    }
}
