/* ===========================
   ETHAN CLEMENTS PORTFOLIO
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#0d1117;
    color:#fff;
    line-height:1.6;
}

/* LINKS */

a{
    color:white;
    text-decoration:none;
}

/* ===========================
   HEADER
=========================== */

header{

    position:fixed;
    top:0;
    left:0;

    width:100%;

    background:rgba(13,17,23,.90);

    backdrop-filter:blur(14px);

    border-bottom:1px solid rgba(88,166,255,.2);

    z-index:1000;

}

nav{

    width:min(90%,1300px);

    margin:auto;

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    color:#58a6ff;

    font-size:28px;

    font-weight:700;

    letter-spacing:2px;

    transition:.3s;

}

.logo:hover{

    color:#7c5cff;

}

nav ul{

    display:flex;

    gap:35px;

    list-style:none;

}

nav ul li a{

    color:#ffffff;

    font-weight:600;

    font-size:15px;

    letter-spacing:1px;

    position:relative;

    transition:.3s;

}

nav ul li a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#58a6ff;

    transition:.3s;

}

nav ul li a:hover{

    color:#58a6ff;

}

nav ul li a:hover::after{

    width:100%;

}

/* ===========================
   HERO
=========================== */

.hero{

    min-height:90vh;

    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;

    text-align:center;

    padding:40px;
}

.hero h1{

    font-size:72px;
    margin-bottom:15px;
}

.hero p{

    color:#9ca3af;

    font-size:24px;

    margin-bottom:35px;
}

/* BUTTONS */

.button{

    display:inline-block;

    background:linear-gradient(90deg,#58a6ff,#7c5cff);

    padding:15px 35px;

    border-radius:50px;

    font-weight:bold;

    transition:.3s;
}

.button:hover{

    transform:translateY(-4px);

    box-shadow:0 10px 30px rgba(88,166,255,.35);

}

/* ===========================
   SECTION
=========================== */

section{

    width:90%;

    max-width:1200px;

    margin:auto;

    padding:80px 0;

}

section h2{

    font-size:42px;

    margin-bottom:40px;

    color:#58a6ff;

}

/* ===========================
   GRID
=========================== */

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

/* ===========================
   CARD
=========================== */

.card{

    background:#161b22;

    border:1px solid #30363d;

    border-radius:18px;

    overflow:hidden;

    transition:.3s;

}

.card:hover{

    transform:translateY(-8px);

    border-color:#58a6ff;

}

.card img{

    width:100%;

    height:220px;

    object-fit:cover;

}

.card-content{

    padding:25px;

}

.card h3{

    margin-bottom:12px;

}

.card p{

    color:#9ca3af;

}

/* ===========================
   ABOUT
=========================== */

.about{

    display:grid;

    grid-template-columns:350px 1fr;

    gap:60px;

    align-items:center;

}

.about img{

    width:100%;

    border-radius:20px;

}

.about h2{

    margin-bottom:20px;

}

.about p{

    color:#b9c0ca;

    margin-bottom:20px;

}

/* ===========================
   SKILLS
=========================== */

.skills{

    display:flex;

    flex-wrap:wrap;

    gap:15px;

    margin-top:20px;

}

.skill{

    background:#202938;

    padding:10px 18px;

    border-radius:50px;

}

/* ===========================
   DEMO REEL
=========================== */

iframe{

    width:100%;

    aspect-ratio:16/9;

    border:none;

    border-radius:20px;

}

/* ===========================
   CONTACT
=========================== */

.contact{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact input,
.contact textarea{

    background:#161b22;

    color:white;

    border:1px solid #30363d;

    padding:15px;

    border-radius:10px;

}

.contact textarea{

    resize:vertical;

    min-height:170px;

}

.contact button{

    border:none;

    cursor:pointer;

    font-size:17px;

}

/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:80px;

    padding:40px;

    text-align:center;

    color:#8b949e;

    border-top:1px solid #30363d;

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:900px){

nav{

flex-direction:column;

gap:20px;

}

nav ul{

flex-wrap:wrap;

justify-content:center;

gap:20px;

}

.hero h1{

font-size:48px;

}

.hero p{

font-size:18px;

}

.about{

grid-template-columns:1fr;

text-align:center;

}