/* ================================
   Global
================================ */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #090c12;
    color: #e8edf5;

    line-height: 1.6;
}



a {
    color: inherit;
    text-decoration: none;
}


h1,
h2,
h3 {
    margin-top: 0;
}


p {
    color: #b8c0cc;
}





/* ================================
   Hero
================================ */


.hero {

    min-height: 100vh;

    padding:
        30px 8%;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 80% 20%,
            rgba(80,150,255,0.25),
            transparent 35%
        ),

        radial-gradient(
            circle at 20% 80%,
            rgba(120,80,255,0.15),
            transparent 30%
        ),

        #090c12;
}



.hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 1px,
            transparent 1px
        );

    background-size:
        40px 40px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );

}




/* ================================
   Navigation
================================ */


nav {

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.logo {

    font-size: 30px;

    font-weight: 800;

    letter-spacing: 2px;

}



.links a {

    margin-left: 30px;

    color: #aeb8c7;

    transition: color .3s;

}


.links a:hover {

    color: white;

}





/* ================================
   Hero content
================================ */


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin-top: 15vh;

}



.tag {

    color: #69b7ff;

    text-transform: uppercase;

    letter-spacing: 4px;

    font-size: 14px;

    font-weight: 600;

}



h1 {

    font-size: clamp(42px, 7vw, 72px);

    line-height: 1.1;

    margin:

        20px 0;

}



.hero-content p {

    font-size: 20px;

    max-width: 700px;

}





.button {

    display: inline-block;

    margin-top: 30px;

    padding:

        14px 32px;


    background: white;

    color: #090c12;

    border-radius: 8px;

    font-weight: 600;

    transition:

        transform .3s,
        box-shadow .3s;

}



.button:hover {

    transform: translateY(-3px);

    box-shadow:

        0 10px 30px rgba(0,0,0,.4);

}





/* ================================
   Sections
================================ */


.section {

    padding:
        40px 8%;
}


.section h2 {
    font-size: 42px;
    margin-bottom: 50px;
}


/* ================================
   Projects
================================ */


.grid {

    display: grid;
    grid-template-columns:

        repeat(
            auto-fit,
            minmax(320px,1fr)
        );
    gap: 30px;
}

.card {

    background:
        rgba(255,255,255,0.04);
    border:
        1px solid rgba(255,255,255,0.08);

    border-radius: 18px;
    padding: 25px;
    transition:
        transform .3s,
        border-color .3s;
}

.card:hover {

    transform: translateY(-8px);
    border-color:

        rgba(100,180,255,.5);
}

.image-placeholder {

    height: 220px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:

        linear-gradient(
            135deg,
            #18202e,
            #111722
        );

    border-radius: 12px;
    color: #697586;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    overflow: hidden;    
    position: relative;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-placeholder video {
  width: 100%;
  height: 100%;

  object-fit: contain;
}

.card h3 {

    font-size: 26px;

}



.card p {

    min-height: 90px;

}





.tags span,
.skill-list span {


    display:inline-block;


    padding:

        6px 14px;


    margin:

        5px;


    border-radius: 30px;


    background:

        #171e2a;


    color:

        #bcd7ff;


    font-size:14px;

}





/* ================================
   About
================================ */


.about {

    max-width: 900px;

}



.about p {

    font-size: 19px;

}





/* ================================
   Skills
================================ */


.skill-list {

    max-width: 900px;

}





/* ================================
   Footer
================================ */


footer {

    padding:

        70px 8%;


    border-top:

        1px solid rgba(255,255,255,.1);

}




/* ================================
   Responsive
================================ */


@media(max-width:700px){


    .links {

        display:none;

    }


    .hero {

        padding:

            25px;

    }


    .section {

        padding:

            60px 25px;

    }


    h1 {

        font-size:42px;

    }
}

.hidden {
    opacity:0;
    transform:
        translateY(30px);
    transition:
        opacity .8s,
        transform .8s;
}

.visible {

    opacity:1;
    transform:
        translateY(0);

}

@media (max-width: 700px) {
    .hidden {
        opacity: 1;
        transform: none;
    }
}

.card-link {

    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:nth-child(1) {
    transition-delay: 0s;
}

.card-link:nth-child(2) {
    transition-delay: .1s;
}

.card-link:nth-child(3) {
    transition-delay: .2s;
}

.card-link:nth-child(4) {
    transition-delay: .3s;
}

.card-link:nth-child(5) {
    transition-delay: .4s;
}

.card-link:nth-child(6) {
    transition-delay: .5s;
}

.card-link:hover {
    color: inherit;
}

/* ================================
   Project Pages
================================ */
.project-hero {

    min-height: 70vh;
    padding: 40px 8%;
    position: relative;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(80,150,255,0.25),
            transparent 35%
        ),
        #090c12;
}

.project-hero .hero-content {
    margin-top: 80px;
    max-width: 900px;
}

.back {
    position: absolute;
    top: 30px;
    left: 8%;
    color: #9aa6b8;
    transition: color .3s;
}

.back:hover {
    color: white;
}

/* Larger placeholders for project pages */

.image-placeholder.large {
    height: 350px;
}

.project-hero + .section {
    max-width: 1200px;
}