/*  ========================================
    Root
    ======================================== */

:root {
    /* Portfolio Theme */
    --primary-colour: #7A35FF;
    --background-colour: #F0F2F5;
    
    /* Experinece Themes */
    --college-xp-color: rgba(35, 81, 157, 0.2);
    --currys-xp-color: rgba(82, 17, 159, 0.2);
    --cypro-xp-color: rgba(30, 136, 119, 0.2);
    --zebra-em-xp-color: rgba(196, 111, 37, 0.2);
    --west-wales-wiring-xp-color: rgba(232, 254, 103, 0.2);
    
    /* Project Themes */
    --west-wales-wiring-colour: rgb(232, 254, 103);
}



/*  ========================================
    Custom Fonts
    ======================================== */
    
    
/*  Borel - Apple "hello" like font */
    
    
@font-face {
    font-family: "Borel";
    src: url("../assets/fonts/borel-regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}


/*  SF Pro - Apple Defualt Font */


@font-face {
    font-family: "sf-pro";
    src: url("../assets/fonts/sf-pro.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}


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



body {
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: justify;
    background-color: var(--background-colour);
    font-family: "sf-pro", cursive;
}

main {
    background-color: var(--background-colour);
}

footer {
    text-align: center;
    font-size: 20px;
    background-color: var(--primary-colour);
    color: var(--background-colour);
    
}

h1 {
    font-size: 42px;
    color: var(--primary-colour);
}

h2 {
    font-size: 24px;
    color: var(--primary-colour);
}

p,
li {
    line-height: 1.6;
}

.apple-hello {
    font-family: "Borel", cursive;
    font-weight: 400;
}

.section-content {
    padding: 60px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.content {
    padding: 60px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

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

.black-background {
    background-color: black;
}



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

    
nav {
    text-align: center;
    font-size: 25px;
    padding: 15px 40px;
    background-color: var(--primary-colour);
    
    display: flex;
    justify-content: center;
    gap: 50px;
}

nav a {
    color: var(--background-colour);
    text-decoration: none;
    &:hover {
        text-shadow: 1px 0 0 currentColor;
    }
}

.current {
    font-weight: bolder;
}

.button {
    background: var(--primary-colour);
    border: 1px solid var(--background-colour);
    border-radius: 15px;
    color: var(--background-colour);
    display: inline-block;
    padding: 14px;
    text-decoration: none;
    margin: 10px auto;
    text-align: center;
    &:hover {
        background: var(--background-colour);
        color: var(--primary-colour);
    }
}



/*  ========================================
    Home Page
    ======================================== */


/*  Hero */


.hero {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.hero-text {
    flex: 1;
    padding: 60px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    display: block;
    border-radius: 100px 0 0 100px;
    
}

.hero-text h1 {
    font-size: 225px;
    line-height: 0.9;
    margin: 0;
    margin-top: 100px;
    
}

.hero-text h2 {
    margin-top: -40px;
    font-size: 75px;
    color: black;
}

.hero-text h3 {
    font-size: 50px;
    margin: 0;
}


/*  About */


.about {
    display: flex;
}

.about h1 {
    flex: 1;
}

.about div {
    flex: 5;
}


/*  Attributes */



/*  ========================================
    Experience Page
    ======================================== */


/*  Sections */


#pembrokeshire-college {
    background-color: var(--college-xp-color);
}

#currys{
    background-color: var(--currys-xp-color);
}

#pembrokeshire-cypro {
    background-color: var(--cypro-xp-color);
}

.previous-experience {
    border-bottom: 3px solid black;
}

#zebra-em {
    background-color: var(--zebra-em-xp-color);
}

#west-wales-wiring {
    background-color: var(--west-wales-wiring-xp-color);
}


/*  Banners */


.banner {
    height: 300px;
    
    background-size: cover;
    background-position: center;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.3)
        ),
        var(--banner-image);
}

.college-banner {
    --banner-image: url("../assets/images/banners/pembrokeshire_college.jpg");
}

.currys-banner {
    --banner-image: url("../assets/images/banners/currys_haverfordwest.jpg");
}

.cypro-banner {
    --banner-image: url("../assets/images/banners/pcc_county_hall.jpg");
}

.previous-experience-banner {
    --banner-image: url("../assets/images/banners/purple_hexagons.jpg");
}

.banner h1 {
    font-size: 80px;
    color: var(--background-colour);
}

.banner h2 {
    color: var(--background-colour);
}



/*  ========================================
    Education
    ========================================*/
    
    
    
.certifications-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.certification-card {
    border: 1px solid black;
    padding: 2rem;
    border-radius: 75px;
}

.certification-card img {
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 2rem auto 0;
}

.certification-card.planned {
    background-color: #f5c8be;
}

.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title h1 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    
    margin: 0;
    text-align: center;
    font-size: 70px;
}
    
    
/* Academic Studies */
    
    
.academic-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.education-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    
    padding: 2rem 0;
    border-top: 1px solid #ddd;
}
    
.academic-image img {
    width: 100%;
    border-radius: 75px;
}

    
    
/*  ========================================
    Projects
    ========================================*/
    
    
/* West Wales Wiring */
    
    
.west-wales-wiring {
    background-size: cover;
    background-position: center;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4)
        ),
        url("../assets/images/west-wales-wiring-background.png");
    color: var(--background-colour);
}

.west-wales-wiring :is(h1, h2 ,h3, p ,ul) {
    color: var(--background-colour);
}

.west-wales-wiring-nav {
    background-color: var(--west-wales-wiring-colour);
    color: black;
}

.west-wales-wiring-nav a {
    color: black;
    text-decoration: none;
}

.www-button {
    background: var(--west-wales-wiring-colour);
    border: 1px solid var(--west-wales-wiring-colour);
    border-radius: 15px;
    color: black;
    display: inline-block;
    padding: 14px;
    text-decoration: none;
    margin: 10px auto;
    text-align: center;
    &:hover {
        background: black;
        color: var(--west-wales-wiring-colour);
    }
}

#www-video {
    max-width: 1500px;
}