@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 0 10%;
  font-family: "Roboto", sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

header {
  padding: 1rem 0;
}

.header-content {
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content a{
  text-decoration: none;
}

header h1 {
  margin: 0;
  font-size: 33px;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1;
  color: #ffffff;
  font-weight: 100;
}

nav {
  margin: 0;
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  gap: 20;
  align-items: center;
}

nav a {
  color: #aaa;
  text-decoration: none;
  margin-left: 20px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

.top-bar {
  background-color: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  border-bottom: 1px solid #333;
}

.central-image-section {
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  text-align: center;
}

.central-image-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  max-width: 800px;
  padding: 0 20px;
}

.personal-header-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #121212;
}

.personal-header-section h3 {
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
}

h2{
font-size: 36px;
font-weight: 400;
}

.portfolio-grid {
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  gap: 20;
  align-items: flex-start;
  justify-content: stretch;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-grid a {
  display: block;
  position: relative;
  flex-shrink: 0;
  flex-grow: 1;
  overflow: hidden;
  width: 25%;
  height: 800px;
  padding: 0;
  text-align: center;
  line-height: 800px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 36px;
}

.portfolio-grid a:hover {
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: darken;
}

.gallery-category {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: #fff;
}

.gallery-category:hover {
  transform: translateY(-5px);
  border-color: #555;
}

.gallery-category img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.gallery-category h4 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.grid {
  width: 100%;
}

.grid:after {
  content: "";
  display: block;
  clear: both;
}

/* ---- .grid-item ---- */

.grid-sizer,
.grid-item {
  width: 33.333%;
}

.grid-item--width2 {
  width: 66.666%;
}

.grid-item {
  float: left;
  box-sizing: border-box;
  padding: 5px;
  overflow: hidden;
  border-radius: 4px;
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 4px;
  cursor: pointer;
}

.grid-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 0 auto;
  padding: 4rem 0;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border: 5px solid #1a1a1a;
}

main {
  flex: 1;
}

footer {
  text-align: left;
  padding: 2rem 0;
  font-size: 0.8rem;
  color: #888;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.central-image-section h2 {
  animation: fadeInUp 3s ease-out forwards;
}

@media (max-width: 1500px) {
  body{
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .portfolio-grid a{
      width: 100%;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    text-align: center;
  }
  nav{
    flex-flow: column;
  }
}
