@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --base-color: #ffffff;
    --text-color: #000000;
    --primary-color: #e07264;
    --secondary-color: #e9e0bb;
    --color-1: #ffdfdf;
    --color-2: #F3F7F9;
    --color-3: #F6F3F9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    font-family: Oswald, 'Playfair Display';
    color: var(--text-color);
}

/* Dark Top Navigation Bar */
header {
    margin: 0;
    width: 100%;
    padding: 0;
    background-color: #121921; /* Dark navy/grey background */
    border-radius: 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 2em;
}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2em;
}

/* Hero Section with Dark Overlay */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 650px;
    /* Black overlay at 50% opacity combined with background image */
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), 
                url('images/image.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-content {
    max-width: 800px;
    padding: 2em;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 0.25em;
}

.hero-content p {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 1.5em;
}

.hero-buttons {
    display: flex;
    gap: 1em;
    justify-content: center;
}

h1, h2, h3 {
    font-family: Oswald, 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 2em;
}

nav li:first-child {
    margin-right: auto;
    font-family: Oswald, 'Playfair Display';
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    text-decoration: underline;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em;
}

header img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom;
}

.text-container {
    flex: 0 1 34em;
}

h1 {
    font-size: 2.5rem
}

.flex-container p {
    margin:.75em 0 1em 0;
    font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: black;
    background-color: var(--primary-color);
    padding: .75em 1.25em;
    border-radius: .5em;
    font-weight: 600;
}

.secondary {
    background-color: var(--secondary-color);
}

section {
    margin: 2em auto;
    width: min(75em, 90%);
    padding: 3em min(2em, 15%);
    background-color: var(--color-2);
    margin: 2em auto;
    border-radius: 1.5em;
}

h2 {
    font-size: 2rem;
}

section p {
    margin-top: 1em;
    font-size: 1.25rem;
}

section#my-work{
    background-color: var(--color-3);
}

.grid-container {
    margin-top: 3em;
    margin-bottom: 3em;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
    "img-1 img-1 img-2 img-3"
    "img-1 img-1 img-4 img-5";
    gap: 1em;
}

.grid-container img {
    height: 100%;
    width: 100%;
    border-radius: .5em;
    transition: 100ms ease;
}

.grid-container img:hover {
    scale: 1.05;
    
}

details {
    margin-top: 1em;
    background-color: var(--base-color);
    border-radius:1em;
}

details summary {
    padding: 1em;
    font-size: 1,7em;
    font-family: Oswald;
}

details p {
    padding: 0 2em 0.5em 2em;
    font-size: 1.25rem;
}

details ul {
    list-style-position: outside;
    padding: 0 2em 2em 3.5em;
    font-size: 1.25rem;
}

details li {
    margin-top: 0.4em;
}

footer {
    padding-bottom: 1.5em;
    text-align: center;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover {
    text-decoration: underline;
}