/* Custom properties */
:root {
  --main-blue: #045196;
  --dark-blue: #033b71;
  --blue-1: #ACD1E4;
  --blue-2: #67A3C4;
  --light-grey: #F0F1F5;
  --dark-grey: #DBDFE4;

  /* CSS HEX */
  --polynesian-blue: #045196ff;
  --platinum: #dbdfe4ff;
  --antiflash-white: #f0f1f5ff;
  --columbia-blue: #acd1e4ff;
  --air-superiority-blue: #67a3c4ff;
}

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

* {
  margin: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--main-blue);
  padding: 0.8em;
  z-index: 1000;
}

/* Navbar container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: var(--main-blue);
}

/* Logo styling */
.logo a {
  font-weight: 700;
  font-size: 32px;
  color: white;
  text-decoration: none;
}

/* Menu toggle */
.menu-toggle {
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 1010; 
  width: 30px;
}

.menu-toggle .bar {
  display: block;
  width: 30px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active state of menu toggle */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  left: 0;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg);
  position: absolute;
  top: 0;
  left: 0;
}

/* Navigation Links */
.nav-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100vw; 
  background-color: var(--dark-blue);
  position: fixed;
  top: 5.8em;
  left: -150%;
  transition: left 0.3s ease;
  z-index: 1000;
  border-radius: 0 0 2em 0;
}

.nav-links.active {
  left: 0;
}

.nav-links li {
  margin: 15px 0;
  text-align: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 2em;
  font-weight: 600;
  display: block;
  padding: 15px;
}

.nav-links a.active {
  color: var(--blue-1);
}

.nav-links a:hover, .logo a:hover {
  color: var(--blue-2);
}

/* Footer */
footer {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: var(--dark-grey);
  padding: 1em;
  color: black;
  font-weight: 600;
  text-align: center;
}

h1 {
  font-weight: 300;
  font-size: 72px;
  padding-bottom: 0.2em;
}

/* Hero Section */
#home {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  font-size: 1.2em;
  padding: 0.6em;
  text-align: center;
}

.hero-btn {
  padding-top: 1em;
  padding-bottom: 2em;
}

.links a {
  margin-top: 1em;
}

#about {
  background-color: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  font-size: 1.2em;
  padding: 0.6em;
}

.about-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 1em;
  gap: 2em;
}

.about-img {
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 100%;
  height: auto;
  border: 1em solid var(--dark-blue);
  border-radius: 0 0 0.8em 0;
  display: block;
}

.about-btn, .links a, .view-btn{
  display: inline-block;
  padding: 0.4em 1em;
  background-color: var(--main-blue);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 0 0 0.8em 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-btn:hover, .view-btn:hover, .links a:hover {
  background-color: var(--dark-blue);
  transform: scale(1.05);
}

/* Project Section */
#projects {
  display: flex;
  flex-direction: column;
}

.project-header {
  text-align: center;
  padding-top: 6em;
  padding-bottom: 4em;
}

/* Project Container */
.project {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 6em;
}

.project-info {
  padding: 1em;
  /* background-color: rgba(0, 0, 0, 0.6); */
  background-color: var(--dark-grey);
}

.project-desc {
  padding-bottom: .5em;
}

/* Project Image */

.project-img {
  border: 1em solid #033b71;
  border-radius: 0 0 .8em 0;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* View Buttons */


.view-btn:hover {
  background-color: var(--dark-blue);
}

.project-link {
  display: block;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(0.95);
}


/* Global Image Styling */


.about-img img {
  border: 1em solid #033b71;
  border-radius: 0 0 .8em 0;
  width: 80%;
  height: auto;
}

/* Base Styles already set for mobile-first */

/* Tablet Breakpoint: 768px */
@media only screen and (min-width: 768px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 3.5em;
  }

  .nav-links a {
    font-size: 1.5em;
  }

  .about-text p {
    font-size: 1.2em;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    background-color: transparent;
    width: auto;
    height: auto;
    top: auto;
    left: auto;
    transform: none;
    border-radius: 0;
  }

  .nav-links li {
    margin: 0 1.5em;
  }

  .nav-links a {
    font-size: 1em;
    padding: 0;
  }

  .about-body {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 2em;
    gap: 2em;
  }

  .about-img {
    flex: 0 0 40%;
  }

  .about-text {
    flex: 0 0 60%;
  }

  .about-img img {
    width: 100%;
    height: auto;
  }

  .project {
    flex-direction: row;
    gap: 2em;
  }

  .project-left {
    position: relative;
    bottom: 8px;
    right: 16px;
  }

  .project-right {
    position: relative;
    bottom: 8px;
    left: 16px;
  }

  .reverse {
    flex-direction: row-reverse;
  }
}

/* Desktop Breakpoint: 992px */
@media only screen and (min-width: 992px) {
  .about-body {
    padding: 2em 4em;
  }

  .about-img {
    flex: 0 0 30%;
  }

  .about-text {
    flex: 0 0 70%;
  }
}

/* Large Desktop: 1200px */
@media only screen and (min-width: 1200px) {
  .about-img {
    flex: 0 0 40%;
  }

  .about-text {
    flex: 0 0 60%;
  }
}
