/* General Reset */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
  --dark-color:   #000022;
  --green-color:  #3A4F41;
  --orange-color: #EDAE49;
  --yellow-color: #F9DF74;
  --white-color:  #F9EDCC;
}

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

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Arvo', 'Oswald', sans-serif;
  background: var(--white-color);
  color: var(--green-color);
  overflow: hidden;
}

  body {
    font-family: 'Arvo', serif;
  }

  h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
  }

/* Layout Container */
.layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* Top Bar */
.top-bar {
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* Pushes title left, links right */
  padding: 10px 20px;
  background-color: var(--white-color);
  color: var(--green-color);
}

.title-group {
  display: flex;
  flex-direction: column;
}

.top-links {
  display: flex;
  gap: 20px; /* spacing between links */
}

.top-links a {
  color: var(--green-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.top-links a:hover {
  color: black
}

/* Main Area */
.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar Styling */
.sidebar {
  width: 220px;
  background-color: var(--white-color);
  padding: 20px;
  border-right: 1px solid #333;
  overflow-y: auto;
}

.sidebar.right {
  border-right: none;
  border-left: 1px solid var(--white-color);
}

/* Center 3D Area */
.center {
  flex: 1;
  position: relative;
}

/* 3D Canvas Fills Center Area */
#container3D {
  width: 100%;
  height: 100%;
  display: block;
}

/* Info Panel Styling */
#infoPanel {
  position: fixed;
  top: 0;
  left: 0; /* Cover from the far left */
  width: 100%; /* Full viewport width */
  height: 100%; /* Full viewport height */
  padding: 15px;
  background: rgba(0, 0, 0, 0.9); /* Optional: make it a bit darker for full-screen effect */
  color: white;
  font-size: 16px;
  border-radius: 0; /* No rounded edges for full screen */
  display: none;
  z-index: 100;
  box-shadow: none; /* Shadow not necessary if full screen, optional */
  overflow-y: auto; /* Scroll if content too tall */
}


#infoPanel h2 {
  margin-bottom: 10px;
}

#infoPanel p {
  line-height: 1.4;
}

#closeInfo {
  position: absolute;
  width: 35px;
  height: 35px;
  top: 30px;
  right: 30px;
  background: white;
  border: none;
  font-size: 28px;
  color: black;
  cursor: pointer;
  z-index: 101; /* Ensure it's above content */
  border-radius: 25px;
  transition: color 0.2s ease;
}

#closeInfo:hover {
  color: gold;
}

.scroll-box::-webkit-scrollbar {
  width: 10px;
}

/* Track */
.scroll-box::-webkit-scrollbar-track {
  background: gray
}
 
/* Handle */
.scroll-box::-webkit-scrollbar-thumb {
  background: var(--orange-color);
}

/* Handle on hover */
.scroll-box::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

#hoverLabel {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.137);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-family:  'Arvo', 'Oswald', sans-serif;
  font-size: 25pt;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.2s ease;
}

  #education-section {
    height: 80%;
    display: flex;
    align-items: stretch;
    justify-content: center;
  }

  .education-container {
    display: flex;
    flex: 1;
    gap: 40px;
  }

 .html-box {
    background-color: #1e1e1e;
    border-left: 5px solid var(--orange-color);
    padding: 20px 25px;
    margin: 20px auto;
    max-width: 600px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--white-color);
    font-family: 'Arvo', 'Oswald', sans-serif;
    margin-bottom: 1rem;
  }

  .html-box h3 {
    margin-top: 0;
    font-size: 1.6rem;
    color: var(--white-color);
    font-style: italic;
    border-bottom: 1px solid var(--white-color);
    padding-bottom: 5px;
    margin-bottom: 10px;
  }

  .html-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #ccc;
  }

  .html-box em {
    font-style: italic;
    color: #aaa;
  }

  .columns {
    display: flex;
    gap: 40px;
    padding: 20px;
  }

  .column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  @media (max-width: 768px) {
    .columns {
      flex-direction: column;
    }
  }

.slide-in-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#infoNav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 10px 0;
  font-size: 18px;
  text-transform: uppercase;
}

#infoNav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

#infoNav a:hover {
  color: var(--orange-color); /* light green or any hover color you prefer */
}

#infoNav a.active {
  color: var(--yellow-color);
  font-weight: bold;
  text-decoration: underline;
}

.tile-row {
  height: 50%;
  display: flex;
  flex-wrap: nowrap;
  gap: 40px;
  overflow-x: auto;          /* Enable horizontal scroll */
  overflow-y: hidden;        /* Prevent vertical scroll */
  scroll-snap-type: x mandatory;
  padding: 20px;
}

.tile {
  background-color: #1a1a1a;
  width: 900px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  border-left: 5px solid var(--orange-color);
  padding: 0;
  margin: 20px auto 1rem auto;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  color: var(--white-color);
  font-family: 'Arvo', 'Oswald', sans-serif;
  flex-direction: column;
}

.tile:hover {
  background-color: #292929;
}

.tile-image-wrapper {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tile-img {
  width: 85%;
  height: auto;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 4px solid transparent;
}


.tile:hover .tile-img {
  width: 92%; 
  border: 4px solid var(--orange-color);
}

.tile-text {
  padding: 20px;
  text-align: left;
  white-space: normal;
}

.tile-text h1, .tile-text h2, .tile-text h3, .tile-text p {
  margin: 0 0 10px 0;
}

.tile-text ul {
  padding-left: 20px;
  margin-top: 0;
}

.skills-box {
  background-color: var(--yellow-color);
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 15px;
  color: black;
  transition: background-color 0.3s ease;
  width: 70%;
  margin: 0 auto;   /* this centers the box horizontally */
}
