﻿@import "./variables.css";

html {
  height: 100%;
  overflow: hidden;
}

a {
  text-decoration: none;
}

.body {
    background-color: hsl(var(--primary-color) 50% 80%);
    height: 100%;
    width: 100%;
    margin: 0px;
}

.main {
  height: 100%;
}

.nav-bar {
  position: fixed;
  height: 5vh;
  width: 100vw;
  top: 0;
  background-color: transparent;
  padding-top: 2em;
  padding-bottom: 2em;
  z-index: 1000;
}

.nav-item {
  color: var(--primary-color);
  font-family: brandon-grotesque, sans-serif;
  font-size: 24px;
  text-decoration: none;
  margin-left: 1.5em;
  margin-right: 1.5em;
}

.home-page {
    position: relative;
    height: 100vh;
    width: 100vw;
    justify-content: space-between;
    align-items: center;
}

.background-image {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%; /* Takes up bottom half */
    background: url("/static/home/geesebackground.png") no-repeat center bottom / contain;
    z-index: -1; /* Keeps it behind content */
}

#projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 1rem;
  padding: 1rem;
  position: relative;
  margin-top: 15vh;
  margin-left: 12vh;
  margin-right: 12vh;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 15px;
  margin-left: 5vh;
  margin-right: 5vh;
  background-clip: content-box;
  perspective: 1000px;
  width: 85%;
  aspect-ratio: 3 / 4;
}

/* Inner wrapper that rotates */
.project-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* Flip on hover */
.project-item:hover .project-inner {
  transform: rotateY(180deg);
}

/* Front and back faces */
.project-front, .project-back {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 5px 18px 4px;
  border-radius: 15px;
}

.project-back {
  background: var(--primary-color);
  color: white;
  transform: rotateY(180deg);
  border-radius: 15px;
}

.project-back h2 {
  margin-top: 10%;
  font-weight: 400;
}

.project-icon {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom: 3px solid var(--primary-color);
}

.project-item-text {
  color: var(--primary-color);
}

.project-item-text p {
  font-size: 20px;
}

/* Ensure link states don't override the text styling */
a .project-text,
a:visited .project-text,
a:hover .project-text,
a:active .project-text {
    color: var(--primary-color);
}

.project-icon a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: inherit; /* Keeps the original text color */
  text-decoration: none; /* Removes underline */
}

.project-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.intro-text-block {
    max-width: 540px;
    padding-top: 12%;
    padding-left: 5%;
}

.emphasis-text {
    color: var(--primary-color);
    font-weight: 400;
}

.intro-text {
    color: #908a76;
    font-size: 32px;
    line-height: 48px;
}

#illustration-container-bottom {
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

#cloudStart-L {
  position: relative;
  top: 40%;
}

#h1-2 {
  width: 100%;
  height: 100%;
  fill: #908a76;
}

#h1-1 {
  color: #908a76;
}
}
