/* DEFALUTS */

/* 
colors:
red: #e63946
light grey: #f1faee
light blue: #a8dadc
medium blue: #457b9d
dark blue: #1d3557
*/

body, html {
    margin: 0;
    padding: 0;
    transition: background 0.5s ease;
}

body {
    background-color: #f1faee;
}

img {
    width: 40%;
}

/* HEADER & NAVIGATION */

header {
    width: 100%;
    position: absolute;
    top: 0;
}

nav {
    position: fixed;
    width: 100%;
    margin-left: auto;
    float: left;
}

nav ul {
    list-style: none;
    overflow: hidden;
    padding: 0;
    text-align: center;
    margin: 0;
    transition: 1s;
}

nav.main ul {
    background-color: #08324400;
}

nav ul li {
    display: inline-block;
    padding: 20px;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    font-family: poppins;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: inherit;
    transition: color 0.5s ease;
}

#main-nav {
    background: transparent;
    transition: background 500ms ease-in;
    color: #457b9d;
}

#main-nav a {
  transition: color 0.5s ease;
}

#main-nav.scrolled {
    background-color: #457b9d;
    color: #f1faee;
    z-index: 1000;
}

.container {
    display: grid;
    text-align: center;
    font-size: 2em;
    margin-right: auto;
    margin-top: 7rem;
    animation: fadeIn 3s;
}

.aboutContainer {
  padding: 2rem 2rem;
  background-color: #1d3557;
  color: #f1faee;
}

.about-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2em;
  letter-spacing: 0.25rem;
  color: #a8dadc;
  font-weight: 800;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* text left, images right */
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: Helvetica, sans-serif;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-images img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.about-images img:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-images {
    grid-template-columns: 1fr;
  }
}

.projectContainer {
    padding-top: 2rem;
    display: grid;
    text-align: center;
    font-size: 1.5em;
    background-color: #f1faee;
    color: #457b9d;
    font-family: helvetica;
}

.projectContainer h1 {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 1.5em;
    padding-bottom: 1rem;
}

.resumeContainer {
    display: grid;
    text-align: center;
    font-size: 1.5em;
    margin-right: auto;
    margin-top: auto;
    animation: fadeIn 3s;
}

iframe {
    margin-left: auto;
    margin-right: auto;
    width: 75%;
    height: 700px;
}

.tagline, h1 {
    padding: 5px;
    font-weight: 600;
    color: #457b9d;
}

.meImage {
    display: flex;
    margin-left: 70%;
    margin-top: -25%;
    width: 30%;
    height: auto;
    float: right;
}

#myTitle {
    font-weight: 900;
    margin-top: -40px;
}

#about {
    background-color: #1d3557;
    color: #f1faee;
    text-align: center;
    text-transform: uppercase;
    font-family: Helvetica;
    letter-spacing: 0.25rem;
}

#resume {
    margin-top: 4rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #1d3557;
    color: #f1faee;
    font-size: 2em;
    text-align: center;
    text-transform: uppercase;
    font-family: Helvetica;
    letter-spacing: 0.25rem;
}

/* BUTTONS */

button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    font-size:0.6em;
    font-weight: 600;
    color: #f1faee;
    font-family: helvetica;
    text-decoration: none;
    letter-spacing: 0.1em;
}

button.learn-more {
    text-transform: uppercase;
    padding: 1em 2.5em;
    margin-left: 1em;;
    background: #457b9d;
    border: 2px solid #1d3557;
    border-radius: 0.75em;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
    transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), background 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.learn-more::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #67b4b7;
    border-radius: inherit;
    -webkit-box-shadow: 0 0 0 2px #1d3557, 0 0.625em 0 0 #a8dadc;
    box-shadow: 0 0 0 2px #1d3557, 0 0.625em 0 0 #a8dadc;
    -webkit-transform: translate3d(0, 0.75em, -1em);
    transform: translate3d(0, 0.75em, -1em);
    transition: transform 150ms cubic-bezier(0, 0, 0.58, 1), box-shadow 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-transform 150ms cubic-bezier(0, 0, 0.58, 1), -webkit-box-shadow 150ms cubic-bezier(0, 0, 0.58, 1);
}

button.learn-more:hover {
    background: #457b9d;
    -webkit-transform: translate(0, 0.25em);
    transform: translate(0, 0.25em);
}

button.learn-more:hover::before {
    -webkit-box-shadow: 0 0 0 2px #1d3557, 0 0.5em 0 0 #a8dadc;
    box-shadow: 0 0 0 2px #1d3557, 0 0.5em 0 0 #e63946;
    -webkit-transform: translate3d(0, 0.5em, -1em);
    transform: translate3d(0, 0.5em, -1em);
}

button.learn-more:active {
    background: #457b9d;
    -webkit-transform: translate(0em, 0.75em);
    transform: translate(0em, 0.75em);
}

button.learn-more:active::before {
    -webkit-box-shadow: 0 0 0 2px #1d3557, 0 0 #a8dadc;
    box-shadow: 0 0 0 2px #1d3557, 0 0 #a8dadc;
    -webkit-transform: translate3d(0, 0, -1em);
    transform: translate3d(0, 0, -1em);
}

/* TILES */
.tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 85%;
    margin: auto;
    padding-bottom: 4rem;
}

.tile {
    flex: 1 0 300px;
    background-color: #1d3557;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    color: #f1faee;
    font-weight: 600;
    font-family: Helvetica;
}

.tile h2 { 
    font-size: 1em;
    margin-bottom: 10px;
}

.tile p {
    font-size: 0.75em;
    line-height: 1.4;
    color: #f1faee;
    font-family: Helvetica;
    font-weight: 400;
}

.tile:hover {
    transform: scale(1.05);
}

.tile img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* FOOTER */
.site-footer {
  background-color: #1d3557;
  color: #f1faee;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-container p {
  margin: 0;
  font-size: 0.9rem;
  color: #a8dadc;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: #f1faee;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #e63946; /* red hover */
  transform: scale(1.2);
}

/* KEYFRAMES & ANIMATIONS */

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

body.resume-page {
  background-color: #1d3557; /* dark blue */
}
body.resume-page #main-nav, body.resume-page #main-nav a {
  color: #f1faee; /* white text */
  background-color: #1d3557;
}

  