/* ----------------------
GLOBAL STYLES
---------------------- */
:root {
    /* COLOURS */
    --charcoal: #30302F; /* rgb(48, 48, 47); */
    --ruby: #E8202E; /* rgb(232, 32, 46); */
    --concrete: #636567; /* rgb(99, 101, 103); */
    --aqua: #8CB2B5; /* rgb(140, 178, 181); */
    --tan: #F2E3CB; /* rgb(242, 227, 203); */
    --black: #000000; /* rgb(0, 0, 0); */
    --white: #FFFFFF; /* rgb(255, 255, 255); */
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: "proxima-nova", sans-serif;
    font-size: 1.6rem;
    font-weight: 200;
    color: var(--concrete);
    background-color: var(--ruby);
}

a {
    text-underline-offset: 3px;
    color: inherit;
}

hr {
    border: 0.5px solid var(--concrete);
}

/*-----------------------
LOADER
---------------------- */

.loader {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide content initially */
.hidden {
    display: none;
}


/* ----------------------
TYPOGRAPHY
---------------------- */

/* Menu and Folio */
h1 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1 a {
    color: var(--concrete);
    text-decoration: none;
}

/* Body Titles */
h2 {
    font-family: "itc-fenice", serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Feature Gallery */
h3 {
    font-size: 2rem;
    font-weight: 100;
    line-height: 2.4rem;
}

/* Thumbnail Gallery */
h4 {
    font-size: 1.6rem;
    font-weight: 100;
    line-height: 2rem;
}

/* Portfolio Titles */
h5 {
    font-size: 4rem;
    font-weight: 200;
    color: var(--aqua);
    line-height: 3.6rem;
}

strong {
    font-size: 1rem;
    text-transform: uppercase;
}

* li {
    list-style: none;
}

dt {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

dl a {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Emphasis */
.ruby-highlight {color: var(--ruby);}

.fenice-highlight {
    font-family: "itc-fenice";
    font-weight: 700;
    font-size: 1.1rem;
}

/* Filters */ 
.shadow {
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, .7));
}

/* ----------------------
LETTERBOXES
---------------------- */
#letterbox-top, #letterbox-bottom {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background-color: var(--black);
    z-index: 1000;
    gap:10px;
}

/* TOP LETTERBOX */ #letterbox-top {top:0;}
/* BOTTOM LETTERBOX */ #letterbox-bottom {bottom:0;}

#logo-lockup {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

#km-logo {
    width: 20px;
    height: 20px;
    background-image: url("../images/km-logo.png");
    background-size: contain;
}

/* NAVIGATION */
.navigation {
    position: fixed;
    align-self: flex-start;
    right: 0px;
}

.navigation ul {
    list-style: none;
    overflow: hidden;
    background-color: var(--black);
    text-align: right;
    width: auto;
}

.navigation li a {
    display: block;
    text-decoration: none;
    padding: 5px 15px;
}

.navigation .menu {
    clear: both;
    max-height: 0;
    transition: max-height .5s ease-out; 
}

.navigation .menu-icon {
    cursor: pointer;
    float: right;
    padding: 25px 15px;
    position: relative;
    user-select: none;
}

.navigation .menu-icon .navicon {
    background-color: var(--concrete);
    display: block;
    height: 2px;
    position: relative;
    transition: background-color .2s ease-out;
    width: 20px;
}

.navigation .menu-icon .navicon:before,
.navigation .menu-icon .navicon:after {
    background: var(--concrete);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}

.navigation .menu-icon .navicon:before {
    top: 4px;
}

.navigation .menu-icon .navicon:after {
    top: -4px;
}

/* HIDDEN CHECKBOX */
.navigation .menu-btn {
    display: none;
}

.navigation .menu-btn:checked~.menu {
    max-height: 50vh;
}

.navigation .menu-btn:checked~.menu-icon .navicon {
    background: transparent;
}

.navigation .menu-btn:checked~.menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.navigation .menu-btn:checked~.menu-icon .navicon:after {
    transform: rotate(45deg);
}

.navigation .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
.navigation .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
    top: 0;
}

/* ----------------------
SECTIONS
---------------------- */

#container {
    position: absolute;
    top: 0;
    left: 0;
}

/* Intermissions */
.intermission {
    position: relative;
    display: flex;
    width: 100vw;
    height: 50px;
    align-items: center;
    justify-content: center;
    color: var(--aqua);
    background-color: var(--black);
} /* End of Intermissions */

/* Construction */
#construction {
    position: relative;
    width: 75vw;
    color: var(--ruby);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Hero Scroll */
#hero-scroll {
    position: absolute;
    background-image: url(../images/gbl-arrow.svg);
    bottom: 10rem;
    width: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ----------------------
HERO SECTION
---------------------- */
.hero {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction:column;
    opacity: 0.8;
    scale: 1;
    animation: appear 5s ease;
}

@keyframes appear {
    from {opacity: 0; transform: scale(1.1)}
    to {opacity: 0.8}
}

#sizzlereel {
    position: fixed;
    min-width: 100vw;
    min-height: 100vh;
    top: 50%;
    left: 50vw;
    z-index: -10;
    transform: translateX(-50%) translateY(-50%);
}

#vignette {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    z-index: -5;
    background-image: radial-gradient(90vh at center, rgba(0,0,0,0), rgba(0,0,0,1));
}

/* End of Hero Section */

/* ----------------------
INTRO SECTION
---------------------- */
#intro {
    display: flex;
    min-height: 90vh;
    flex-direction: column;
    background-image: radial-gradient(#fff, var(--charcoal));
    justify-content: center;
    align-items: center;
    padding: 5rem 0;
}

/* SCREENPLAY FORMAT */
.screenplay {
    font-family: courier, monospace;
    line-height: 2rem;
    color: #000;
    width: 85vw;
    max-width: 760px;
}

.sp-logline {
    text-transform: uppercase;
    font-size: 1.6rem;
    padding-bottom: 2rem;
}

.sp-action {
    padding-bottom: 2rem;
}

.sp-character {
    margin: 0 30%;
    width: 40%;
    text-indent: 10%;
}

.sp-dialogue {
    margin: 0 15% 2rem;
    width: 70%;
}

.sp-fade {
    text-align: right;
    text-transform: uppercase;
}

/* ----------------------
WORK SECTION
---------------------- */
#work {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    gap: 5rem;
    width: 100%;
    min-height: 90vh;
    background-image: radial-gradient(var(--charcoal), var(--black));
}

/******** Feature Gallery ********/
.feature-gallery {
    display: flex;
    width: 90vw;
    flex-direction: column;
    gap: 5vw;
}

/* Individual Features */
.feature {
    flex: 1;
    height: 20vh;
    background-position: center;
    background-size: cover;
    background-repeat: none;
    transition: flex 0.8s ease-in-out;
    border-radius: 5px;
    text-decoration: none;
}

/* Feature 1 */ .feature-1 {background-image: url(../images/portfolio/bg-gravolginger.jpg);}
/* Feature 2 */ .feature-2 {background-image: url(../images/portfolio/bg-gaviscon.jpg);}
/* Feature 3 */ .feature-3 {background-image: url(../images/portfolio/bg-undeading.jpg);}
/* Feature 4 */ .feature-4 {background-image: url(../images/portfolio/bg-turnsoundon.jpg);}
/* Feature 5 */ .feature-5 {background-image: url(../images/portfolio/bg-prolia.jpg);}

/* Individual Feature Grow Animation */
.feature:hover {
    flex:8;
    transition: flex 0.8s ease-in-out;
}

/* Gradient and Text Overlay */
.feature-overlay {
    position:relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* Overlay Animation */
.feature:hover .feature-overlay {
    opacity: 1;
}

/* Feature Text */
.feature-description {
    color: var(--white);
    opacity: 0.7;
    padding: 0 0 1rem 1rem;
}

.feature-description p {
    display: none;
}

/* Feature Text Animation Delay */
.feature-overlay:hover .feature-description {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s;
}

.feature-arrow {
    position: relative;
    background-image:url(../images/gbl-arrow.svg);
    width: 1.2rem;
    height: 1.2rem;
    bottom: 15px;
    left: 1rem;
    transition: all 0.5s ease-out;
}

.feature-overlay:hover .feature-arrow {
    transform: translate(1rem, 0);
    opacity: 1;
}

/******** Thumbnail Gallery ********/
.thumbnail-gallery {
    display: flex;
    width: 90vw;
    flex-wrap: wrap;
}

.thumbnails {
    display: flex;
    flex-wrap:wrap;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.thumbnail-img {
    width: 30vw;
    height: 30vw;
    object-fit: cover;
    transition: all 0.5s;
}

.thumbnail-link:hover .thumbnail-img {
    transform: scale(1.1);
}

.thumbnail-link {
    position: relative;
    overflow: hidden;
}

.thumbnail-name {
    position: absolute;
    width: 90%;
    height: 90%;
    opacity: 0;
    color: var(--white);
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thumbnail-arrow {
    position: absolute;
    background-image:url(../images/gbl-arrow.svg);
    width: 1rem;
    height: 1rem;
    z-index: 11;
    right: 1rem;
    bottom: 1rem;
} 
/* End of WORK Section */

/* ----------------------
CREDENTIALS SECTION
---------------------- */
#credentials {
    display: flex;
    width:100vw;
    min-height: 90vh;
    padding: 5rem 0;
    align-items: center;
    justify-content: center;
    background-image:radial-gradient(var(--tan), var(--aqua));
    color: var(--black);
}

#creds-content {
    display: flex;
    flex-direction: column-reverse;
    width: 80vw;
    gap: 2rem;
    max-width: 1440px;
}

#creds-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    flex: 1;
}

#education {
    display: flex;
    flex-direction: column;
}

#awards {
    display: flex;
    flex-direction: column;
}

#creds-history {
    display: flex;
    flex-direction: column;
    flex: 2;
}

#creds-history h2 {
    text-align: center;
}

#creds-history p {
    margin-bottom: 1rem;
}
/* End of Credentials Section */

/* ----------------------
CONTACT SECTION
---------------------- */
#contact {
    display: flex;
    width:100vw;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-image:radial-gradient(var(--ruby), var(--black));
}

#contact-content {
    display: flex;
    flex-direction: column;
    width: 60vw;
    height: 80vh;
    border-radius: 20px;
    justify-content: center;
    gap: 2rem;
    color: var(--tan);
    text-align: center;
    transition: color 1s ease;
}

#contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#contact-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.links {
    display: in-line;
    height: 25px;
    filter: brightness(50%);
    transition: filter 1s ease;
    cursor: pointer;
}

.links:hover {
    filter: brightness(100%);
    transition: filter 1s ease;
}
/* End of Contact Section */