/* This is the required project styling. Will contain essential CSS styles like:
   * Flex property
   * Grid layout
   * Cards and sections
*/

@import url(https://fonts.googleapis.com/css?family=Raleway:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

/* variables */
:root {
  /* Colors */
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #ffffff;
  --text-color: #222222;
  --text-color-two: #ffffff;
  --bg-secondary: #000000;
  --card-background: #f4f4f4;
  --bg-secondary-two: #111111;

  --shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  /* Font Weight */
  --weight-small: 400;
  --weight-semibold: 600;
  --weight-bold: 800;

  /* Max width */
  --width-small: 600px;
  --width-medium: 1100px;
  --width-large: 1300px;
}

[data-theme="dark"] {
  --primary-color: #ffcd42;
  --secondary-color: #ffd35c;
  --bg-primary: #000000;
  --text-color: #ffffff;
  --text-color-two: #222222;
  --bg-secondary: #ffffff;
  --card-background: #111111;
  --bg-secondary-two: #f4f4f4;
  --shadow: 0 2px 10px rgba(95, 95, 95, 0.2);
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

/* Main styling */
body {
  background: var(--bg-primary);
  color: var(--text-color);
  font-family: "Raleway", sans-serif;
  line-height: 1.5;
}

/* Site background video - fixed behind everything */
#site-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}
.site-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.82);
  z-index: -1;
}
[data-theme="dark"] .site-bg-overlay {
  background: rgba(0, 0, 0, 0.72);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  height: 80px;
  width: 100%;
}

.navbar .nav-menu {
  display: flex;
  align-items: center;
  background: transparent;
}

.navbar .nav-link {
  margin: 0 1rem;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}

.navbar #logo img {
  display: block;
  width: 40px;
}

.navbar .btn {
  margin-right: 1.5rem;
}

.fas.fa-arrow-right {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* hamburger */
.hamburger {
  margin-bottom: 0.1rem;
  display: none;
}

.bar {
  display: block;
  width: 23px;
  height: 3px;
  margin: 4px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 30px;
  background-color: var(--bg-secondary);
}

/* Hero section */
#hero {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  animation: bounce 1s infinite alternate;
  border: 3px solid var(--primary-color);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Argis corner buddy */
.argis-corner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  cursor: pointer;
}
.argis-corner img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  box-shadow: var(--shadow);
  display: block;
  animation: bounce 1s infinite alternate;
}
.argis-tooltip {
  position: absolute;
  bottom: 110%;
  right: 0;
  white-space: nowrap;
  background: var(--bg-secondary);
  color: var(--text-color-two);
  font-size: 0.85rem;
  font-weight: var(--weight-semibold);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.argis-corner:hover .argis-tooltip {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-10px);
  }
}

.division {
  width: 100%;
  height: 2px;
  background-color: var(--card-background);
  margin: 5.5rem 0;
}
/* Projects */
#projects {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}

#projects .btn {
  align-self: center;
  margin: 2rem 0;
}
/* Blog - direct posts, no cards */
#blog {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}
.blog-post {
  text-align: left;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--card-background);
}
.blog-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.blog-meta {
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-color);
}
.blog-post h3 {
  font-size: 1.6rem;
  margin: 0.5rem 0;
  line-height: 1.3;
}
.blog-post p {
  margin: 0.5rem 0 1rem;
  max-width: 700px;
}
.blog-post-side {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.blog-text {
  flex: 1;
  min-width: 0;
}
.blog-side-img {
  width: 440px;
  max-width: 48%;
  min-width: 320px;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  border: 1px solid var(--card-background);
  display: block;
}
@media (max-width: 800px) {
  .blog-post-side {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-side-img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }
}
.blog-link {
  font-weight: var(--weight-semibold);
  font-size: 0.9rem;
}
/* Waitlist */
#waitlist {
  display: flex;
  flex-direction: column;
  margin: 2rem auto 5rem;
}
.waitlist-box {
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  background: var(--card-background);
  border-radius: 12px;
  padding: 2rem;
}
#waitlist-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}
#waitlist-email {
  flex: 1;
  min-width: 220px;
  padding: 0.75rem 1.2rem;
  border-radius: 30px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-family: inherit;
}
.waitlist-msg {
  margin-top: 1rem;
  font-weight: var(--weight-semibold);
  min-height: 1.5em;
}
.waitlist-count {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 0.3rem;
}

.project {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(340px, auto);
  grid-gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.card .project-bio p {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  margin: 0.3rem 0 0 0;
}

.card .project-bio h3 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  margin: 0;
  line-height: 1.2;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 1;
  position: relative;
  transition: 0.5s ease-in-out;
  height: 100%;
  min-height: 300px;
  padding: 1.2rem;
}

.project-bio {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  top: auto;
  left: auto;
  text-align: left;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.card:hover .project-bio,
.card:focus-within .project-bio {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .project-bio {
    opacity: 1;
    transform: none;
  }
}

/* Footer */
#footer {
  background: #111111;
}

#footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 160px;
  text-align: center;
}

#footer a {
  font-size: 0.8rem;
  color: #fff;
}

#footer a:hover {
  opacity: 0.6;
}

#footer .social {
  margin: 0.9rem 0;
}

#footer .social img {
  width: 20px;
  height: 20px;
}

#footer .social a {
  margin: 0 0.5rem;
}

#footer p {
  font-size: 0.8rem;
}

.top-skills {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

.social-icon {
  font-size: 20px;
  color: #fff;
}

.footer-email {
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
}

.footer-contact {
  font-style: normal;
  font-size: 0.8rem;
  color: #fff;
  margin-top: 0.4rem;
  opacity: 0.9;
}

/* Responsiveness */

@media (max-width: 1000px) {
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
  .navbar .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    width: calc(80% - 10px);
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 5px;
    align-items: flex-start;
  }

  .navbar .btn {
    margin: 0;
    margin-top: 1rem;
  }

  .nav-menu.active {
    right: 20px;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
    margin: 0 0.2rem;
  }

  .nav-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .nav-menu .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
  }

  .hamburger.active {
    border: 1px dotted gray;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 600px) {
  .project {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-container .btn {
    border-radius: 5px;
    width: 80%;
  }
}
