@import url('https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500,600,700|Exo:100,200,300,400,500,600,700');

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
    margin: 0;
}

/*Header*/
.header {
    height: 360px;
    overflow: hidden;
    background-color: #676767;
}

.header-row {
    height: 360px;
}

.logo-container {
    height: 360px;
    display: flex;             /* centers child */
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
    padding: 1rem 0;
    margin: auto;  
    background-color: #00308f;
}

/* Image click and drag */
/* Prevent image selection */
.circle-slider,
.circle-slider img,
.divider {
  user-select: none;   /* prevent text/image selection */
  -webkit-user-drag: none; /* prevent image drag ghost */
}

.circle-slider {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px solid #333A3F;
    overflow: hidden;
}

.circle-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Top image reveals with clip-path */
.circle-slider .top-image {
    clip-path: inset(0 90% 0 0);
}

/* Divider handle */
.divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    left: 10%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 2;
}

/* Knob for grabbing */
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #333;
}


/* Right hand of header */
.name-section {
    height: 240px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* stack children vertically */
    justify-content: flex-start; /* keep name & title at the top */
    position: relative;
}

.name {
    font-family: "Exo", "Roboto", "Segoe UI", "Arial", sans-serif;
    font-weight: 100;
    font-size: 2.8rem;
    margin-top: 3rem;
    padding-left: 2rem;
    color: #f5f5f5;
}

.title {
    font-family: "Roboto", "Segoe UI", "Arial", sans-serif;
    font-weight: 200;
    font-size: 1.75rem;
    margin-top: 1.25rem;
    padding-left: 2rem;
    color: #f5f5f5;
}

.job-seeking {
    font-family: "Roboto", "Segoe UI", "Arial", sans-serif;
    text-align: center;
    font-size: 1.25rem;
    color: #f5f5f5;
    margin: 0;
    margin-top: auto;
    background-color: #0B6623; 
    padding: 0 0.5rem 0;
}

.nav-section {
    height: 120px;
    width: 100%;
}

#nav {
    margin: 0;
    height: 120px;
}

.menuitem {
    height: 120px;
    text-align: center;
    padding: 0;
}

.menuitem a {
    font-size: 0.8rem;
    width: 100%;
    text-decoration: none;
    color: #f5f5f5;
    height: 120px;
    display: flex;            /* enable flex layout */
    flex-direction: column;   /* stack icon above text */
    align-items: center;      /* horizontally center */
    justify-content: center;  /* vertically center */
    text-align: center;       /* center text inside span */
}

.menuitem a i {
    display: block;
    color: #fafafa;
    font-size: 1.5rem;
}

.menuitem span {
    display: block;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.cv-link {
    height: 60px !important;
    padding: 0.5rem;
}

.cv-link i,
.cv-link span {
    display: inline-block !important;
}

.ui-menu-color-home {
    background-color: #CA5500;
}

.ui-menu-color-portfolio {
    background-color: #2E7D32;
}

.ui-menu-color-resume {
    background-color: #6C3483;
}

.ui-menu-color-contact {
    background-color: #2367A0;
}

.ui-menu-color-read {
    background-color: #00796B;
}

.ui-menu-color-download {
    background-color: #D84315;
}

.navigation-link {
    position: relative;          /* needed for pseudo-element */
    display: inline-block;       /* or block depending on layout */
    overflow: hidden;            /* clip the overlay */
    color: inherit;
    text-decoration: none;
}

.navigation-link::before {
    content: "";
    position: absolute;
    top: -100%;                  /* start above the link */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.15); /* semi-transparent black */
    transition: top 0.5s ease;   /* animate the fall */
    pointer-events: none;        /* allow clicking the link */
    z-index: 1;                  /* below text */
}

.navigation-link:hover::before {
    top: 0;                      /* slide overlay down to cover */
}

/*Footer*/
/*Make the footer stick to the bottom*/
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    background-color: #525252;
    color: #fafafa;
    min-height: 100px;
    height: fit-content;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: "Roboto", "Segoe UI", "Arial", sans-serif;
    font-size: 1rem;
}

.footer-socials {
    margin: 0;
    margin-top: 1rem;
}

.footer-social-link {
    display: inline-block;
}

/* Common rules */
.github-link,
.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Segoe UI', sans-serif;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: bold;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin-bottom: 0.5rem;
}

/* Social media icons */
.github-link i,
.linkedin-link i {
    font-size: 1.2rem;
}

/* GitHub */
.github-link {
    background-color: #24292e; /* GitHub dark */
    margin-right: 1rem;
}

.github-link:hover {
    transform: scale(1.05);
    background-color: #000;
    box-shadow: 0 0 8px rgba(36,41,46,0.6);
}

/* LinkedIn */
.linkedin-link {
    background-color: #0077B5;
}

.linkedin-link:hover {
    transform: scale(1.05);
    background-color: #005582;
    box-shadow: 0 0 8px rgba(0,119,181,0.6);
}

/* Copywrite */
.footer-copyright {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.footer-copyright a {
    text-decoration: none;
    font-weight: bold;
    color: #f5f5f5;
}

/* Media queries */
@media(max-width: 1430px) {
    .circle-slider {
        height: 245px;
        width: 245px;
    }
}

@media(max-width: 970px) {
    .name,
    .title {
        padding-left: 1rem;
    }
}

@media(max-width: 840px) {
    .menuitem span{
        font-size: 0.78rem;
    }
}

@media(max-width: 768px) {
    /* Resize header components */
    .header {
        height: fit-content;
    }

    .header-row {
        height: auto;
    }

    .logo-container {
        height: 250px;
    }

    .name-section {
        padding: 1rem 0 0 0 !important;
        height: fit-content;
    }

    .name {
        margin-top: 0;
        padding: 0;
        text-align: center;
    }

    .title {
        margin: 0;
        font-size: 1.2rem;
        padding: 0;
        text-align: center;
    }

    .job-seeking {
        margin-top: 1rem;
    }

    .nav-section,
    #nav {
        height: 120px;
    }
}

@media(max-width: 576px) {
    .navigation-link,
    .menuitem {
        height: 100px !important;
    }

    .cv-link {
        height: 50px !important;
    }

    .nav-section,
    #nav {
        height: 200px !important;
    }

    /*Footer*/
    .footer-socials,
    .footer-copyright {
        width: fit-content;
    }
}

@media (max-width: 500px) {
    .name {
        font-size: 1.8rem;
    }
}
