/* =====================================
   I MADE *****
   LIVE DEVELOPMENT TIMELINE
   ===================================== */

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


/* =====================================
   GENERAL
   ===================================== */

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

html{
    scroll-behavior:smooth;
}

body{

    min-height:100vh;

    background:#0b0d12;

    color:#e9e1d3;

    font-family:"Cormorant Garamond",serif;

    line-height:1.8;

    overflow-x:hidden;

    position:relative;
}


/* =====================================
   ATMOSPHERIC BACKGROUND
   ===================================== */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background:

        linear-gradient(
            rgba(8,10,14,.82),
            rgba(8,10,14,.93)
        ),

        url("../../project-three-background.jpg");

    background-size:cover;

    background-position:center;

    background-repeat:no-repeat;

    opacity:.65;

    z-index:-2;
}


/* subtle atmospheric layer */

body::after{

    content:"";

    position:fixed;

    inset:0;

    background:

        radial-gradient(
            circle at 50% 15%,
            rgba(216,199,255,.055),
            transparent 42%
        );

    pointer-events:none;

    z-index:-1;
}


/* =====================================
   LINKS
   ===================================== */

a{

    text-decoration:none;

    transition:.3s ease;

}


/* =====================================
   HEADER
   ===================================== */

header{

    max-width:1100px;

    margin:0 auto;

    padding:40px 35px 0;

}


.back-link{

    display:inline-block;

    color:#d8c7ff;

    font-size:18px;

    letter-spacing:.6px;

}


.back-link:hover{

    color:#ffffff;

    text-shadow:
        0 0 12px rgba(216,199,255,.45);

}


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

.hero{

    padding:75px 30px 65px;

    text-align:center;

    position:relative;

}


.hero-content{

    max-width:900px;

    margin:0 auto;

}


/* small decorative line */

.hero::after{

    content:"";

    display:block;

    width:140px;

    height:1px;

    margin:38px auto 0;

    background:rgba(216,199,255,.5);

}


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

.hero h1{

    margin:0 0 20px;

    font-family:"Cinzel",serif;

    font-size:54px;

    font-weight:500;

    letter-spacing:8px;

    color:#d8c7ff;

    text-transform:uppercase;

}


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

.hero-subtitle{

    max-width:760px;

    margin:0 auto;

    color:#efe7d8;

    font-family:"Cormorant Garamond",serif;

    font-size:25px;

    line-height:1.6;

    letter-spacing:.3px;

}


.hero-subtitle em{

    color:#d8c7ff;

}


/* =====================================
   MAIN CONTAINER
   ===================================== */

.timeline-container{

    max-width:1050px;

    margin:30px auto 110px;

    padding:0 30px;

}


/* =====================================
   SECTION HEADING
   ===================================== */

.timeline-container h2{

    margin:0 0 25px;

    text-align:center;

    border:none;

    font-family:"Cinzel",serif;

    font-size:30px;

    font-weight:500;

    letter-spacing:4px;

    color:#efe7d8;

    text-transform:uppercase;

}


/* =====================================
   INTRODUCTION
   ===================================== */

.timeline-intro{

    max-width:760px;

    margin:0 auto 65px;

    text-align:center;

    color:#c6c0c7;

    font-size:20px;

    line-height:1.9;

}


.timeline-intro em{

    color:#d8c7ff;

}


/* =====================================
   TIMELINE GRID
   ===================================== */

.timeline-grid{

    display:grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap:30px;

    align-items:stretch;

}


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

.timeline-card{

    position:relative;

    padding:42px 38px 40px;

    min-height:310px;

    background:

        linear-gradient(
            rgba(25,24,30,.94),
            rgba(17,18,23,.96)
        );

    border:1px solid rgba(216,199,255,.16);

    box-shadow:

        0 25px 65px rgba(0,0,0,.45);

    transition:

        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;

}


/* inner manuscript frame */

.timeline-card::before{

    content:"";

    position:absolute;

    inset:12px;

    border:1px solid rgba(216,199,255,.055);

    pointer-events:none;

}


/* subtle top ornament */

.timeline-card::after{

    content:"✦";

    position:absolute;

    top:19px;

    left:50%;

    transform:translateX(-50%);

    color:rgba(216,199,255,.55);

    font-size:12px;

}


/* =====================================
   ACTIVE MONTH
   ===================================== */

.timeline-card.active-month{

    border-color:rgba(216,199,255,.28);

    box-shadow:

        0 30px 75px rgba(0,0,0,.55),

        0 0 35px rgba(216,199,255,.035);

}


.timeline-card.active-month:hover{

    transform:translateY(-6px);

    border-color:rgba(216,199,255,.52);

    box-shadow:

        0 35px 80px rgba(0,0,0,.60),

        0 0 30px rgba(216,199,255,.07);

}


/* =====================================
   UPCOMING MONTH
   ===================================== */

.timeline-card.upcoming-month{

    opacity:.58;

    border-color:rgba(216,199,255,.09);

}


.timeline-card.upcoming-month:hover{

    opacity:.72;

    transform:translateY(-3px);

    border-color:rgba(216,199,255,.18);

}


/* =====================================
   LABEL
   ===================================== */

.timeline-label{

    display:block;

    margin-bottom:18px;

    text-align:center;

    font-family:"Cinzel",serif;

    font-size:12px;

    letter-spacing:3px;

    text-transform:uppercase;

    color:#bca8ef;

    font-weight:500;

}


/* =====================================
   MONTH
   ===================================== */

.timeline-card h3{

    position:relative;

    margin:0 0 20px;

    text-align:center;

    font-family:"Cinzel",serif;

    font-size:31px;

    font-weight:500;

    letter-spacing:3px;

    color:#d8c7ff;

}


/* =====================================
   CARD TEXT
   ===================================== */

.timeline-card p{

    position:relative;

    max-width:600px;

    margin:0 auto 30px;

    text-align:center;

    color:#c2bbc5;

    font-size:19px;

    line-height:1.9;

}


/* =====================================
   TIMELINE BUTTON
   ===================================== */

.timeline-button{

    position:relative;

    display:block;

    width:max-content;

    margin:0 auto;

    font-family:"Cinzel",serif;

    font-size:14px;

    letter-spacing:2px;

    text-transform:uppercase;

    color:#d8c7ff;

}


.timeline-button:hover{

    color:#ffffff;

    text-shadow:

        0 0 12px rgba(216,199,255,.55);

}


/* =====================================
   FOOTER
   ===================================== */

.legal-footer{

    margin-top:40px;

    padding:0 30px 55px;

    text-align:center;

}


.copyright{

    color:rgba(233,225,211,.42);

    font-family:"Cormorant Garamond",serif;

    font-size:17px;

    letter-spacing:1px;

}


/* =====================================
   TEXT SELECTION
   ===================================== */

::selection{

    background:rgba(216,199,255,.30);

    color:#ffffff;

}


/* =====================================
   SCROLLBAR
   ===================================== */

::-webkit-scrollbar{

    width:10px;

}


::-webkit-scrollbar-track{

    background:#11141b;

}


::-webkit-scrollbar-thumb{

    background:#5d5376;

    border-radius:20px;

}


::-webkit-scrollbar-thumb:hover{

    background:#80729d;

}


/* =====================================
   MOBILE
   ===================================== */

@media(max-width:900px){

    header{

        padding:30px 22px 0;

    }

    .hero{

        padding:60px 22px 55px;

    }

    .hero h1{

        font-size:40px;

        letter-spacing:6px;

    }

    .hero-subtitle{

        font-size:22px;

    }

    .timeline-container{

        padding:0 22px;

    }

    .timeline-grid{

        grid-template-columns:1fr;

    }

    .timeline-card{

        min-height:0;

    }

}


@media(max-width:600px){

    .back-link{

        font-size:16px;

    }

    .hero{

        padding:50px 18px 45px;

    }

    .hero h1{

        font-size:30px;

        letter-spacing:4px;

    }

    .hero-subtitle{

        font-size:20px;

        line-height:1.55;

    }

    .timeline-container{

        margin-top:20px;

        padding:0 18px;

    }

    .timeline-container h2{

        font-size:23px;

        letter-spacing:3px;

    }

    .timeline-intro{

        font-size:18px;

        line-height:1.85;

        margin-bottom:45px;

    }

    .timeline-card{

        padding:38px 25px 35px;

    }

    .timeline-card h3{

        font-size:26px;

        letter-spacing:2px;

    }

    .timeline-card p{

        font-size:18px;

        line-height:1.85;

    }

}