/* =========================
   Robert Kennedy Portfolio
   Main Stylesheet
========================= */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', sans-serif;
    background: #0b0d10;
    color: #e8e8e8;
    line-height: 1.7;
}


h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}


h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}


p {
    font-size: 1.1rem;
    color: #c7c7c7;
    margin-bottom: 25px;
}


a {
    text-decoration: none;
    color: inherit;
}



/* =========================
   Navigation
========================= */


.navbar {

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 8%;

    z-index: 10;

}


.logo {

    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: .5px;

}


.nav-links {

    display: flex;
    gap: 30px;
    list-style: none;

}


.nav-links a {

    color: #ddd;
    font-size: .95rem;
    transition: .3s;

}


.nav-links a:hover {

    color: white;

}



/* =========================
   Hero
========================= */


.hero {

    background:
    linear-gradient(
        rgba(0,0,0,.70),
        rgba(0,0,0,.85)
    ),
    url("assets/images/hero.jpg");

    background-size:cover;
    background-position:center;

}


.hero-content {

    max-width: 850px;

    padding-left: 8%;
    padding-right: 8%;
    padding-top: 120px;

}


.eyebrow {

    text-transform: uppercase;
    letter-spacing: 3px;

    font-size: .85rem;

    color: #aaa;

    margin-bottom: 30px;

}



.hero h1 {

    font-size: clamp(3rem,5vw,4.5rem);

    line-height: 1.1;

    margin-bottom: 35px;

    max-width: 750px;

}



.hero-text {

    max-width: 650px;

    font-size: 1.25rem;

}




.button {

    display: inline-block;

    margin-top: 20px;

    padding: 14px 32px;

    border: 1px solid #777;

    border-radius: 50px;

    transition: .3s;

}


.button:hover {

    background: white;
    color: #111;

}





/* =========================
   Sections
========================= */


.section {

    padding: 110px 8%;

}


.dark {

    background: #11151a;

}



.container {

    max-width: 1100px;

    margin:auto;

}



.intro {

    max-width:700px;

    margin-bottom:50px;

}




/* =========================
   Cards
========================= */


.cards {

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:30px;

}



.card {

    background:#171c22;

    padding:35px;

    border-radius:18px;

    border:1px solid rgba(255,255,255,.08);

    transition:.35s;

}



.card:hover {

    transform:translateY(-8px);

    border-color:#777;

}



.card h3 {

    font-size:1.6rem;

    margin-bottom:20px;

}






/* =========================
   Split Sections
========================= */


.split {

    display:grid;

    grid-template-columns:
    1fr 1fr;

    gap:60px;

    align-items:center;

}



.quote {

    font-family:'Playfair Display',serif;

    font-size:2rem;

    color:white;

    border-left:3px solid #888;

    padding-left:30px;

}







/* =========================
   Contact
========================= */


.contact {

    text-align:center;

}


.contact-links a {

    max-width:350px;

    margin-left:auto;

    margin-right:auto;

}






/* =========================
   Footer
========================= */


footer {

    text-align:center;

    padding:40px;

    background:#070809;

    color:#777;

}





/* =========================
   Animation
========================= */


.hero-content {

    animation:fadeUp 1.2s ease;

}



@keyframes fadeUp {

    from {

        opacity:0;

        transform:translateY(40px);

    }


    to {

        opacity:1;

        transform:translateY(0);

    }

}







/* =========================
   Mobile
========================= */


@media(max-width:900px){


body {
    overflow-x:hidden;
}


/* Navigation */




.logo {

    font-size:1.2rem;

}

.nav-links {
    display:none;
}

/* Hero */

.hero {

    min-height:100vh;

    padding-top:35px;

    align-items:flex-start;

}


.hero-content {

    padding:40px 25px 80px;

    max-width:100%;

}


.eyebrow {

    font-size:.7rem;

    letter-spacing:2px;

    line-height:1.6;

    margin-bottom:20px;

}



.hero h1 {

    font-size:3rem;

    line-height:1.05;

    margin-bottom:25px;

}



.hero-text {

    font-size:1rem;

    line-height:1.7;

}



.button {

    width:100%;

    text-align:center;

}




/* Sections */

.section {

    padding:70px 25px;

}



h2 {

    font-size:2.2rem;

}



p {

    font-size:1rem;

}




/* Cards */

.cards {

    grid-template-columns:1fr;

}



.card {

    padding:25px;

}




/* Split sections */

.split {

    grid-template-columns:1fr;

    gap:30px;

}



.quote {

    font-size:1.4rem;

    padding-left:20px;

}



/* Contact Buttons */

.contact-links {

    flex-direction:column;

    width:100%;

}


.contact-links .button {

    width:100%;

}


}