/* MOBILE FIRST APPROACH */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --ff-primary: 'Source Sans Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;
    
    --fw-reg: 300;
    --fw-bold: 900;
    
    --clr-light: #fff;
    --clr-dark: #303030;
    --clr-accent-bg: transparent;
    --clr-accent-color: #fff;

    --sunday-funday: linear-gradient(to right, #8360c3, #2ebf91);
    --monday-getitdoneday: #02af02;
    --tuesday-bluesday: #1a84f1;
    --wednesday-winsday: red;
    --thursday-namaste: rgb(155, 121, 11);
    --friday-flyday: #a914d6;
    --saturday-caturday: linear-gradient(to right, #8a2387, #e94057);
    
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1rem;
    --fs-body: 1rem;
    
    --bs: .25em .25em .75em rgba(0, 0, 0,.25),
          .125em .125em .25em rgba(0, 0, 0,.15);
}

body {
    background: var(--clr-light);
    color: var(--clr-dark);
    margin: 0;
    font-family: var(--ff-primary);
    font-size: var(--fs-body);
    line-height: 1.6;
}

section {
    padding: 5em 2em;
}

strong { 
	font-weight: var(--fw-bold); 
}

:focus {
    outline: 3px solid var(--clr-accent-bg);
    outline-offset: 3px;
}

.btn {
    display: inline-block;
    padding: .5em 2.5em;
    background: var(--clr-accent-bg);    
    color: var(--clr-accent-color);
    text-decoration: none;
    cursor: pointer;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--fw-bold);
    transition: transform 200ms ease-in-out;
}

.btn:hover {
    transform: scale(1.1);
}

h1,
h2,
h3 {
    line-height: 1;
    margin: 0;
}

h1 { 
	font-size: var(--fs-h1); 
}
h2 { 
	font-size: var(--fs-h2);
}
h3 { 
	font-size: var(--fs-h3);
}

.section-title {
    margin-bottom: .25em;
}

.section-title--intro {
    font-weight: var(--fw-reg);
}

.section-title--intro strong {
    display: block;
}

.section-subtitle {
    margin: 0;
    font-size: var(--fs-h3);
}

.section-subtitle--intro,
.section-subtitle--about {
    background: var(--clr-accent-bg);
    color: var(--clr-accent-color);
    padding: .25em 1em;
    font-family: var(--ff-secondary);
    margin-bottom: 1em;
}

.section-subtitle--work {
    color: white;
    font-weight: var(--fw-bold);
    margin-bottom: 2em;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 1em;
}

.logo {
    max-width: 100px;
}

.nav {
	display: none;
    position: fixed;
    background: var(--clr-dark);
    color: var(--clr-light);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 250ms cubic-bezier(.5, 0, .5, 1);
}

.nav-list {
    list-style: none;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: inherit;
    font-weight: var(--fw-bold);
    font-size: var(--fs-h2);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--clr-accent-bg);
}

.nav-toggle {
    padding: .75em;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: fixed;
    right: 1em;
    top: 1em;
    z-index: 1000;
}

.nav-open .nav {
    transform: translateX(0);
}

.nav-open .nav-toggle {
    position: fixed;
}

.nav-open .hamburger {
    transform: rotate(.625turn);
}

.nav-open .hamburger::before {
    transform: rotate(90deg) translateX(-6px);
}

.nav-open .hamburger::after {
    opacity: 0;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--clr-accent-bg);
    color: var(--clr-accent-color);
    width: 2em;
    height: 3px;
    border-radius: 1em;
    transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
}

.hamburger::before { 
	top: 6px; 
}
.hamburger::after { 
	bottom: 6px; 
}

.intro {
    position: relative;
}

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

.intro-img {
    box-shadow: var(--bs);
	display: block;
    max-width: 55vw;
    margin: 0 auto;
}

.section-subtitle--intro {
    display: inline-block;
    max-width: 80vw;
}

.theme-acclaim {
    margin-top: -12px;
    font-weight: bold;
}

.my-services {
    background-color: var(--clr-dark);
    background-size: cover;
    color: var(--clr-light);
    text-align: center;
}

.section-title--services, .section-title--work {
    position: relative;
    background: var(--clr-accent-bg);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.section-title--services::after {
    content: '';
    display: block;
    width: 2em;
    height: 1px;
    margin: .5em auto 1em;
    background: var(--clr-light);
    opacity: .25;
}

.services {
    margin-bottom: 4em;
}

.service {
    min-width: 250px;
    max-width: 500px;
    margin: 0 auto;
}

.about-me {
    max-width: 1000px;
    margin: 0 auto;
}

.my-work {
    background-color: var(--clr-dark);
    color: var(--clr-light);
    text-align: center;    
}

.portfolio {
	width: 80%;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.portfolio-item {
	padding: 20px;
	background: white;
	color: black;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 20px;
}


.portfolio-header {
	font-weight: bold;
	font-size: 1.5em;
    text-align: center;
}

.portfolio-description {
    text-align: left;
}

.portfolio-description img {
	height: 48px;
	width: auto;
}

.portfolio-img {
    cursor: pointer;
	max-width: 100%;
	max-height: 400px;
	margin: 0 auto;
}

.portfolio-icons {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-top: 25px;
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 2.5em 0;
    font-size: var(--fs-h3);
}

.footer a { 
    color: inherit;
    text-decoration: none;
}

.footer-link {
    font-weight: var(--fw-bold);
}

.footer-link:hover,
.social-list-link:hover {
    opacity: .7;
}

.footer-link:hover {
    text-decoration: underline;
}

.social-list {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 2em 0 0;
    padding: 0;
}

.social-list-item {
    margin: 0 .5em;
}

.social-list-link {
    padding: .5em;
}

.portfolio-item-individual {
    padding: 0 2em 2em;
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-item-individual p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes upScale {
	to {
		transform: scale(1.1);
	}
}

/* DESKTOP STYLES */

@media (min-width: 800px) {
    :root {
        --fs-h1: 4.5rem;
        --fs-h2: 3.75rem;
        --fs-h3: 1.5rem;
        --fs-body: 1.125rem;
    }

    .services {
        display: flex;
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service + .service {
        margin-left: 2em;
    }
}


@media (min-width: 1300px) {
    .intro {
        display: grid;
        width: min-content;
        margin: 0 auto;
        grid-column-gap: 1em;
        grid-template-areas: 
            "img title"
            "img subtitle";
        grid-template-columns: min-content max-content;
    }

    .theme-acclaim {
        display: inline-block;
        grid-row: 3;
        background: transparent;
        color: black;
        top: -45px;
        align-self: start;
        grid-column: -1 / 1;
        text-align: right;
        position: relative;
        left: 0;
        width: calc(100% + 6.5em);
        font-size: 1em;
        padding: .25em 1em;
        font-family: var(--ff-secondary);
        font-weight: normal;
        margin-bottom: 1em;
        max-width: 80vw;
        margin-top: 10px;
    }
    
    .theme-color-name {
        font-weight: bold;
        color: transparent;
        background: var(--clr-accent-bg);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .intro-img {
        grid-area: img;
        min-width: 250px;
        position: relative;
        z-index: 2;
		display: block;
    	max-width: 100%;
    }    
    
    .section-subtitle--intro {
        align-self: start;
        grid-column: -1 / 1;
        grid-row: 2;
        text-align: right;
        position: relative;
        left: -1.5em;
        width: calc(100% + 6.5em);
    }

    .about-me {
        display: grid;
        grid-template-columns: 1fr 200px;
        grid-template-areas: 
            "title img"
            "subtitle img"
            "text img";
        grid-column-gap: 2em;
    }
    
    .section-title--about {
        grid-area: title;
    }
    
    .section-subtitle--about {
        grid-column: 1 / -1;
        grid-row: 2;
        position: relative;
        left: -1em;
        width: calc(100% + 2em);
        padding-left: 1em;
        padding-right: calc(200px + 4em);
    }
    
    .about-me-placeholder {
        grid-area: img;
        position: relative;
        z-index: 2;
    }

	.portfolio {
		width: 50%;
	}

	.portfolio-item {
		flex-direction: row;
	}

	.portfolio-header {
        color: black;
        font-weight: bold;
        font-size: 2em;
    }

	.portfolio-icons {
        flex-direction: row;
    }

	.portfolio-img {
        display: inline-block;
        width: 45%;
        height: auto;
        margin: 10px 0;
    }

	.portfolio-img:hover {
		animation: upScale .25s ease-in forwards;
	}

    .portfolio-description {
        text-align: left;
    }
}