/* -----------------------------------------------------------------
   RESET & BASE STYLES
------------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html,
  body {
    height: 100%;
    margin: 0;
    padding: 0;
  }

  body {
    display: flex;
    flex-direction: column;
  
    /* Keep all your existing background properties, fonts, etc. */
    font-family: "Montserrat", sans-serif;
    color: #000;
    background: 
      linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), 
      url("images/Hands_2.png") center/cover no-repeat;
    background-attachment: fixed;
    /* etc. */
  }  
  
  
  /* -----------------------------------------------------------------
     NAVBAR
  ------------------------------------------------------------------ */
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
  }
  
  .navbar nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2rem;
    padding: 1rem 2rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover {
    color: #ff69b4; /* Pink highlight */
  }
  
  /* -----------------------------------------------------------------
     HERO SECTION
  ------------------------------------------------------------------ */
  /* Make the hero shorter; remove explicit "height" to keep it minimal. */
  .hero {
    position: relative;
    /* If you have a background image, uncomment & update path:
    background: url("images/mystical-bg.jpg") center/cover no-repeat; 
    */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Enough padding for some breathing room, but not too tall. */
    padding: 4rem 1rem 2rem;
    margin-top: 0px; /* space for navbar (~60px tall) */
  }
  
  .hero::before {
    /* Light overlay (optional) */
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
    margin: 0 1rem;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
  }
  
  /* -----------------------------------------------------------------
     MAIN CONTENT SPACING
  ------------------------------------------------------------------ */
  main {
    flex: 1;  /* This makes main grow to fill the available space */
    padding: 2rem 1rem 3rem;
  }  
  
  /* -----------------------------------------------------------------
     ABOUT ME & CONTACT SECTIONS
  ------------------------------------------------------------------ */
  .about-me,
  .contact {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 1rem auto;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(4px);
  }
  
  .about-me h2,
  .contact h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  /* -----------------------------------------------------------------
     FOOTER
  ------------------------------------------------------------------ */
  footer {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.3);
    /* Slightly overlap the last section for a tight layout. */
    margin-top: 1rem;
  }
  
  /* -----------------------------------------------------------------
     MEDIA QUERIES
  ------------------------------------------------------------------ */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 1.6rem;
    }
    .hero-subtitle {
      font-size: 0.9rem;
    }
    .navbar nav ul {
      gap: 1rem;
    }
  }
/* --------- Projects Grid --------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
  }
  
  .project-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    text-align: center;
  }
  
  .project-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
  }
  
  .project-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  /* Button styling (shared from earlier or new) */
  .button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ff69b4;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 700;
  }
  
  .button:hover {
    background-color: #ff69b4;
  }
  /* TAROT SECTION / FORTUNE TELLER */

.tarot-section {
  margin: 2rem auto;
  max-width: 700px;
  text-align: center;
  /* Optional: add a semi-translucent background or match your site's sections. */
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 8px;
}

.controls {
  margin-bottom: 2rem;
}

.controls label {
  margin-right: 0.5rem;
  font-weight: 600;
}

#category {
  padding: 0.4rem 0.6rem;
  margin-right: 1rem;
}

#drawBtn {
  padding: 0.5rem 1rem;
  background-color: #ffafcc;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#drawBtn:hover {
  background-color: #ff69b4;
}

.card-container {
  display: flex;
  justify-content: center;
  perspective: 1000px; /* 3D flip perspective */
}

.card {
  width: 310px;
  height: 488px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  cursor: pointer;
}

.card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The front is rotated 180 so it's hidden behind the back initially */
.card-face-front {
  background-color: #fefefe;
  transform: rotateY(180deg);
  padding: 1rem;
  text-align: center;
  border: 2px solid #ccc;
}

.card-face-back {
  background-color: #ddd;
}

/* Fortune message text */
.fortune-message {
  font-size: 0.95rem;
  color: #333;
}

/* MEDIA QUERIES (if needed for smaller screens) */
@media (max-width: 768px) {
  .card {
    width: 120px;
    height: 160px;
  }
}

.code-scrollbox {
  text-align: left;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  padding: 1rem;
  max-height: 200px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.85rem;
  border-radius: 6px;
  margin: 1rem 0;
  white-space: pre-wrap;
}

.output-images {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap; /* ensures it stacks on mobile */
  margin-top: 1rem;
}

.output-img {
  width: 45%;        /* or try 300px if you want fixed width */
  max-height: 500px; /* adjust based on your ideal size */
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.voxel-image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.voxel-img {
  width: 100%;
  max-width: 800px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* ----------------------------------------
   FINAL PROJECT DESCRIPTION BOX
---------------------------------------- */
.project-section {
  margin: 2rem auto;                /* same vertical spacing as .tarot-section */
  max-width: 700px;                 /* cap width so it doesn’t stretch too wide */
  text-align: left;                 /* change to center if you prefer */
  background-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: 8px;
}
.project-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.project-section p {
  line-height: 1.6;
}
/* ----------------------------------------
   FINAL PROJECT PAGE STYLES
---------------------------------------- */

/* Video container for responsive embedding */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  margin: 2rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Section headers and spacing */
.project-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

/* Table styles for shader mapping and influence chain */
.shader-mapping-table, .influence-chain-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.shader-mapping-table th, .shader-mapping-table td,
.influence-chain-table th, .influence-chain-table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  text-align: center;
}

.shader-mapping-table th, .influence-chain-table th {
  background-color: rgba(255, 105, 180, 0.1);
  font-weight: bold;
}

.shader-mapping-table tr:nth-child(even),
.influence-chain-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Code sample display */
.code-sample {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  font-family: monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Section dividers */
.section-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 105, 180, 0.5), transparent);
  margin: 2rem 0;
  border: none;
}

/* Influence diagram and caption */
.influence-diagram {
  margin: 1rem 0;
  text-align: center;
}

.diagram-caption {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  color: #555;
}

/* Unordered list styling */
.project-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-section li {
  margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .shader-mapping-table, .influence-chain-table {
    font-size: 0.85rem;
  }
  
  .shader-mapping-table th, .shader-mapping-table td,
  .influence-chain-table th, .influence-chain-table td {
    padding: 0.5rem;
  }
  
  .code-sample {
    font-size: 0.8rem;
    padding: 0.75rem;
  }
}
/* Project links - vertical stacking with spacing */
.project-links {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  align-items: center; /* Center-align buttons */
  gap: 1rem; /* Space between buttons */
  margin: 2rem auto; /* Space around the entire button group */
  max-width: 300px; /* Limit width for better appearance */
}

/* Style for the individual buttons */
.project-links .button {
  display: block; /* Make buttons take full width of their container */
  width: 100%; /* Full width of the container */
  padding: 0.75rem 1rem; /* Slightly more vertical padding */
  text-align: center; /* Center the text */
  font-size: 1rem; /* Consistent font size */
  background-color: #ff69b4; /* Match your site's pink theme */
  color: #fff; /* White text for contrast */
  text-decoration: none;
  border-radius: 6px; /* Slightly rounded corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow for depth */
  transition: all 0.3s ease; /* Smooth transitions for hover effects */
}

/* Hover effect for buttons */
.project-links .button:hover {
  background-color: #ff4da6; /* Slightly darker shade on hover */
  transform: translateY(-2px); /* Slight lift effect */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* Enhanced shadow on hover */
}

/* Fix for layout extending to edges of screen */

/* Ensure the project section has proper width constraints */
.project-section {
  margin: 2rem auto;
  max-width: 700px;
  width: 90%; /* Ensures some margin on mobile */
  padding: 2rem;
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Make tables responsive */
.shader-mapping-table, 
.influence-chain-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block; /* This allows the table to scroll horizontally if needed */
  margin: 1rem 0;
  box-sizing: border-box;
}

/* Table wrapper to handle overflow better */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Code sample overflow fix */
.code-sample {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word; /* Allow long words to break */
}

/* Responsive typography */
@media (max-width: 768px) {
  .project-section {
    padding: 1rem;
    width: 95%;
  }
  
  .project-section h2 {
    font-size: 1.3rem;
  }
  
  .project-section h3 {
    font-size: 1.1rem;
  }
  
  .shader-mapping-table th, 
  .shader-mapping-table td,
  .influence-chain-table th, 
  .influence-chain-table td {
    padding: 0.4rem;
    font-size: 0.8rem;
  }
}