@font-face {
  font-family: PlayfairDisplay;
  src: url("resources/files/PlayfairDisplay-VariableFont_wght.ttf");
}
@font-face {
  font-family: Average;
  src: url("resources/files/Average-Regular.ttf");
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  cursor: url(resources/cursors/coffeeNormal.png), auto;
  margin: 0;
  padding: 1rem;
  font-family: Average, serif;
  background: linear-gradient(#563526 0%, #3f292b 100%);
  color: #dea450;
  font-size: 1.125rem;
  text-align: center;
  list-style: none;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
  margin: 0 auto 1rem;
  font-family: PlayfairDisplay, serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3.5vw, 1.875rem);
}

h4 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

a {
  color: #f7d1ae;
}

a:hover {
  cursor: url(resources/cursors/coffeeSteaming.png), pointer;
  color: #e7ddd7;
}

img {
  max-width: 100%;
  height: auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #3f292b;
  font-family: PlayfairDisplay, serif;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.navbar ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style-type: none;
  padding: 0.75rem 0;
  margin: 0;
  background-color: #3f292b;
}

.navbar li {
  flex: 1;
  text-align: center;
  background-color: #3f292b;
}

.navbar a {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar a:hover {
  cursor: url(resources/cursors/coffeeSteaming.png), pointer;
  color: #f7d1ae;
  background: #563526;
}

#logo {
  flex: auto;
  align-items: left;
}
#logo a {
  background: none;
  padding: 0;
}
#logo a:hover {
  background: none;
  padding: 0;
  cursor: url(resources/cursors/coffeeSteaming.png), auto;
}

/* Main Content */
.tab-content {
  margin-top: 80px;
  padding: 1rem 0;
}

[data-tab-content] {
  display: none;
}

.active[data-tab-content] {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* Profile Section */
.intro {
  margin-bottom: 2rem;
}

.profile-pic {
  width: 100%;
  max-width: clamp(50%, 60vw, 600px);
  aspect-ratio: 5 / 3;
  border-radius: 15%;
  margin: 1rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.intro a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.intro a:hover {
  color: #f7d1ae;
  background: #563526;
}

/* Project Sections */
/* Project Grid Layout */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

/* Individual Project Cards */
.project {
  color: #e7ddd7;
  display: flex;
  flex-direction: column;
  border: 1px solid #3f292b;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #3f292b;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px #f7d1ae;
}

/* Project Images */
.project img {
  width: 100%;
  object-fit: scale-down;
  display: block;
}

/* Project Content */
.project h3 {
  margin: 0;
}

.project h3 a {
  display: block;
}

.project p {
  padding: 1rem;
  margin: 0;
  flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .projects {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Skills Lists */
.info {
  margin-bottom: 2rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.skill-category {
  text-align: center;
}

.skill-category ul,
li {
  list-style: none;
  padding: 1rem;
  background: rgba(106, 74, 60, 0.1);
  border-radius: 8px;
  margin: 0;
}

.skill-category li {
  padding: 0.25rem 0;
}

/* Gallery */
#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

#gallery figure {
  display: flex;
  flex-direction: column;
  background: rgba(106, 74, 60, 0.1);
  border-radius: 8px;
  padding: 0 2rem;
}

#gallery img {
  border-radius: 4px;
}

#gallery figcaption {
  text-align: center;
  padding: 0.75rem 0 0;
  font-style: italic;
}

/* Column Layout for Larger Screens */
.row {
  display: grid;
  gap: 2rem;
}

.column {
  width: 100%;
}

/* Media Queries */
@media (min-width: 768px) {
  body {
    padding: 2rem;
    font-size: 1.25rem;
  }

  .tab-content {
    margin-top: 100px;
  }

  .active[data-tab-content] {
    padding: 2rem;
  }

  .row {
    grid-template-columns: 1fr 1fr;
  }

  .skills-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  body {
    padding: 3rem;
  }

  .active[data-tab-content] {
    padding: 3rem;
  }
}
