html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
}

main {
    position: relative;
}




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

.hero {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    background:
        radial-gradient(circle at top left,
            #34495e 0%,
            #1f2b38 35%,
            #111827 100%);


    min-height: 100vh;
    background-image: url("../images/del_hero.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

#leaves-canvas {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 1;

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            to left,
            rgba(8,12,18,.70),
            rgba(8,12,18,.30),
            rgba(8,12,18,.05)
        );

    z-index: 2;

}

.hero-container {

    position: relative;

    z-index: 3;

    width: 100%;

    display: flex;

    justify-content: flex-end;

    padding:

        0

        clamp(2rem, 6vw, 8rem);

}

.hero-content {

    width: min(560px, 100%);

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.hero-tagline p {

    color: #d6d6d6;

    letter-spacing: .18em;

    text-transform: uppercase;

    font-size: .85rem;

    padding: 0%;

}

.hero-description h1 {

    color: white;

    font-weight: 300;

    line-height: 1.15;

    font-size:

        clamp(2.5rem, 5vw, 4.5rem);

    max-width: 12ch;

}


/* =========================
   Cinematics
=========================

.cinematic-bars {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 30;

}

.bar {

    position: absolute;

    left: 0;

    width: 100%;

    height: 12vh;

    background: rgba(5,5,5,.96);

}

.bar-top {

    top: -12vh;

}

.bar-bottom {

    bottom: -12vh;

} */

.intro-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    pointer-events: none;

    z-index: 40;

}

.intro-text {
    position: relative;
    text-align: center;
    width: 100%;
}

.intro-line {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: blur(10px);
    color: white;
    font-weight: 300;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

/* Hero heading base */
.hero-heading-text {
    display: inline-block;
}



.hero-overlay {

    opacity: .45;

}

.hero-heading-text {

    display: inline-block;

}

/* Hero word animation base */
.hero-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}


.page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
    padding-left: 10%;
    padding-right: 10%;
}
.page-container,
.projects-grid,
.featured-grid,
.hero-container {
    box-sizing: border-box;
}


.page-container a {
    text-decoration: none;
    color: var(--click-link);
    font-style: italic;
}
/* =========================
   Projects
========================= */

.projects {
    padding: 3rem 0;

}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    

}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  
      
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.75rem;
  
}


.project-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    flex: 1;
  
}

.project-title {
    margin: 0;
}

.project-description {
    margin: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    list-style: none;
    padding: 0;
    margin: 0;
}

.project-tech li {
    padding: 0.3rem 0.7rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-actions a {
    text-decoration: none;
}

/* =========================
   Featured Reading
========================= */

.featured-reading {
    padding:  0;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-card {
    display: flex;
    flex-direction: column;

    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 1.5rem;
    flex: 1;
}

.featured-source {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.featured-title {
    margin: 0;
}

.featured-summary {
    flex: 1;
    line-height: 1.6;
}

.featured-link {
    margin-top: auto;
    width: fit-content;
}

.hero-actions{
    display:flex;
    gap:1rem;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:1rem 2.4rem;
    font-size:2rem;
    font-weight:600;
    text-decoration:none;
    letter-spacing:.05em;

    border-radius:999px;

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        color .25s ease;
}

.btn-primary{

    color:white;

    background:linear-gradient(
        135deg,
        #5c9f71,
        #6db985
    );

    border:none;

    box-shadow:
        0 12px 28px rgba(45,90,55,.35);
}

.btn-primary:hover{

    transform:translateY(-2px);

    filter:brightness(1.06);
}

.btn-secondary{

    color:white;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.28);

    backdrop-filter:blur(12px);
}

.btn-secondary{

    color:white;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.22);

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

    box-shadow:
        0 8px 24px rgba(0,0,0,.15);
}

.btn-secondary:hover{

    color:#eefdf3;

    border-color:#79b58a;

    background:rgba(94, 168, 115, .18);
}

.btn-secondary:active{

    transform:translateY(0);
}

