/* ===================================== */
/*               Imports                  */
/* ===================================== */

/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600&family=Playfair+Display:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

/* Custom Font Face */
@font-face {
  font-family: 'TheFont';
  src: url("https://garet.typeforward.com/assets/fonts/shared/TFMixVF.woff2") format('woff2');
  font-weight: 100 900; /* Defines the range of weights available */
  font-display: swap; /* Ensures text is displayed immediately using a fallback until the font loads */
}

/* ===================================== */
/*            CSS Variables               */
/* ===================================== */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #2c3e50;
  --text-color: #2c3e50;
  --background-color: #ffffff;
  --transition-speed: 0.4s;
  --red: #ef4036;

  /* New Shadow Colors */
  --shadow-play: #ff91d9; /* Fuchsia */
  --shadow-interact: #ffa34d; /* Burnt-Orange */
  --shadow-brand: #b0fff6; /* Cyan */

  /* Gradient Colors for Play Section Shadow */
  --gradient-play-start: hsla(56, 83%, 59%, 1);
  --gradient-play-end: hsla(307, 100%, 66%, 1);
}

/* ===================================== */
/*         Reset and Base Styles          */
/* ===================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  display: flex;
}

/* ===================================== */
/*          Navigation Styles             */
/* ===================================== */
nav {
  width: 12vw;
  height: 100vh;
  background-color: var(--background-color);
  padding: 40px 20px;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-speed);
  z-index: 1000;
}

.logo {
  color: var(--primary-color);
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  text-decoration: none;
  margin-bottom: 40px;
  display: block;
  text-align: center; /* Center the logo */
}

.logo img {
  max-width: 80px; /* Adjusted size */
  height: auto;
}

nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
}

nav ul li {
  margin-bottom: 20px;
}

nav ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 300;
  transition: color var(--transition-speed), transform var(--transition-speed);
  display: flex;
  align-items: center;
}

nav ul li a.active {
  font-weight: 600;
  transform: scale(1.1);
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li a i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.social-links {
  margin-top: 10px;
}

.social-links a {
  color: var(--red);
  font-size: 1.5rem;
  margin-right: 10px;
  margin-bottom: 5px;
  transition: color var(--accent-color);
}

.social-links a:hover {
  color: var(--accent-color);
}

/* ===================================== */
/*         Main Content Styles            */
/* ===================================== */
main {
  margin-left: 14vw;
  width: 90vw;
  background-color: var(--background-color);
  transition: margin-left var(--transition-speed), width var(--transition-speed);
}

.hero {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--background-color);
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.hero-content {
  z-index: 1;
    margin-top: 10vh;
}

.hero-content a {
  color: var(--red);
}

.hero-content h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: 5rem;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content p {
  font-size: 2.2rem;
  margin-bottom: 30px; /* Existing margin-bottom */
  width: 95%;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.7s;
}

.specialties p {
  width: 95%;
  font-size: 1.2rem;
  margin-bottom: 30px; /* Existing margin-bottom */
  opacity: 0;
}

.specialties ul {
  list-style-type: disc;
  margin-left: 20px;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 30px;
  transition: all var(--transition-speed);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards 0.9s;
  align-self: flex-start; /* Ensures button aligns to start */
}

.btn:hover {
  background-color: var(--red);
  color: white;
  /*transform: translateY(-3px);*/
  /*box-shadow: 4px 4px 0px var(--primary-color);*/
}

/* ===================================== */
/*            Projects Section             */
/* ===================================== */
.projects {
  display: flex;
  flex-direction: row; /* Ensure horizontal layout */
  flex-wrap: wrap; /* Allow wrapping */
  justify-content: flex-start;
  gap: 40px; /* Adjust gap */
}

.project-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0px 0px var(--red); /* Default Shadow */
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  width: 30%; /* Three cards per row */
  display: flex;
  flex-direction: column;
  position: relative; /* Necessary for pseudo-element positioning */
}

.project-skills {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.project-card {
  cursor: hand !important; /* Ensure cursor stays visible */
}


.project-card a {
    text-decoration: none;
}

/*.cursor {*/
/*  position: fixed;*/
/*  width: 40px;*/
/*  height: 40px;*/
  background-color: rgba(0, 0, 0, 0.8); /* Visible */
/*  border-radius: 50%;*/
/*  pointer-events: none;*/
/*  transition: transform 0.1s linear, opacity 0.2s;*/
/*  z-index: 10000;*/
/*}*/

a, button, .view-case-study {
  cursor: hand !important; /* Hide default pointer on clickable elements */
}



/* Shadow Colors per Section */
#works .project-card {
  box-shadow: 0px 0px 0px var(--primary-color);
}

#games .project-card {
  box-shadow: 0px 0px 0px var(--primary-color);
}

#ai .project-card {
  box-shadow: 0px 0px 0px var(--primary-color);
}

#art .project-card {
  box-shadow: 0px 0px 0px var(--primary-color);
}



/* Specific Hover Effects for Sections */
/*#play .project-card:hover,*/
/*#interact .project-card:hover,*/
/*#ai .project-card:hover,*/
/*#a .project-card:hover,*/
/*#art .project-card:hover {*/
/*  transform: translate(-5px, -5px) scale(1.03);*/
/*  box-shadow: 5px 7px 0px var(--red); */
/*}*/

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* ===================================== */
/*        Subtitles & Lists Styles        */
/* ===================================== */

/* Subtitles Styling */
.subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-top: 10px;
  font-weight: 400; /* Normal weight */
  text-align: center;
}

/* Lists Styling */
.case-study-section ul,
.case-study-section ol {
  margin-left: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.case-study-section li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ===================================== */
/*           About Me Section             */
/* ===================================== */
.about-me {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-content {
  max-width: 600px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}


/* ===================================== */
/*          Back Button Styles            */
/* ===================================== */
.back-button {
  position: sticky;
  top: 0;
  z-index: 1001;
  background-color: var(--accent-color);
  color: var(--background-color);
  padding: 10px 20px;
  margin-top: 20px; /* Adds space above the button */
  border-radius: 25px;
  text-decoration: none;
  transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.back-button:hover {
  background-color: var(--red);
  color: var(--background-color);
  transform: translateY(-3px);
}

/* ===================================== */
/*         Case Study Styles              */
/* ===================================== */


/* Level Sketches */
.level-sketches {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.level-sketches img {
  width: calc(50% - 10px);
  max-height: 300px; /* Constrain height */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Case Study Container */
.case-study-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================== */
/*         Video & Iframe Styles          */
/* ===================================== */

/* Video Container Styling */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 60px; /* Space after the video */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Iframe Container Styling */
.iframe-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 60px; /* Space after the iframe */
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================== */
/*         Responsive Adjustments         */
/* ===================================== */

/* Tablets and Small Desktops */
@media (max-width: 1024px) {
  nav {
    width: 15vw;
  }

  main {
    margin-left: 15vw;
    width: 85vw;
    margin-top: 5vh; /* Adjust based on nav height */
  }
  
  .hero-content {
    margin-top: 1vh;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .project-card {
    width: 30%; /* Three cards per row */
  }

  .case-study-header h1 {
    font-size: 2.5rem;
  }

  .case-study-section h2 {
    font-size: 1.75rem;
  }
  
  .case-study-section h3 {
    font-size: 5rem;
    color: var(--accent-color);
  }

  .level-sketches img {
    width: calc(50% - 10px);
  }
  
  .section-title{
  padding-top: 0vh;
  margin-top:0vh; !important 
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  nav {
    width: 20vw;
  }

  main {
    margin-left: 15vw;
    margin-top: 20vh; /* Adjust based on nav height */
    width: 100%;
    padding: 10px;
  }


  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .project-card {
    width: 30%; /* Three cards per row */
  }

  .case-study-header h1 {
    font-size: 2rem;
  }

  .case-study-section h2 {
    font-size: 1.5rem;
  }

  .level-sketches img {
    width: 100%;
  }

  /* Adjust subtitle font size for smaller screens */
  .subtitle {
    font-size: 1.2rem;
  }
}

/* Smartphones */
@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .back-button {
    top: 10px;
    left: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  nav {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px;
  }

  nav ul {
    flex-direction: row;
    justify-content: space-around;
    padding: 10px 0;
  }

  nav ul li {
    margin-bottom: 0;
    padding: 10px;
  }

  main {
    margin-left: 10vw;
    margin-top: 38vh; /* Adjust based on nav height */
    width: 100%;
    padding: 10px;
  }

  .hero {
    height: 30vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }

  .projects {
    flex-direction: column; /* Stack vertically on very small screens */
    align-items: center;
    gap: 40px;
  }

  .project-card {
    width: 90%; /* Single card per row */
  }

  /* Adjust about section for small screens */
  .about-me {
    flex-direction: column;
    align-items: center;
  }

  .about-image, .about-content {
    max-width: 100%;
    flex: none;
  }

  .about-content {
    text-align: center;
    padding: 20px;
  }

  /* Adjust subtitle font size for very small screens */
  .subtitle {
    font-size: 1rem;
  }
  
  .section-title{
  padding-top: 0vh;
  }

}


/* ===================================== */
/*       Project Card Description        */
/* ===================================== */

/*.project-content {*/
/*  position: relative;*/
  /*overflow: hidden; /* Hide any overflowing content 
/*}*/

.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}


/* Style for the project description */
.project-description {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--secondary-color);
  opacity: 0;               /* Initially hidden */
  max-height: 0;            /* Collapsed height */
  transition: opacity 0.3s ease, max-height 0.3s ease;
  margin: 10px 0;           /* Optional: Adjust spacing */
  font-size: 0.9em;         /* Slightly smaller text */
  color: #555;              /* Subtle color */
}

/* Show description on hover */
.project-card:hover .project-description {
  opacity: 1;               /* Fully visible */
  max-height: 100px;        /* Adjust based on content */
}

/* Optional: Enhance hover effect on project-card */
.project-card:hover {
  transform: translateY(-5px); /* Slight lift effect */
  box-shadow: 0 15px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}




/* ===================================== */
/*        Additional Spacing Adjustments  */
/* ===================================== */

/* Add more space after <p> tags that follow section titles */
.section-title + p {
  margin-top: 20px;      /* Space between the section title and the paragraph */
  margin-bottom: 30px; 
  font-size: 1.25rem;
}

/* Specifically reduce the margin-top for <p> tags in the Play section */
#play .section-title + p {
  margin-top: 10px;      /* Smaller gap between Play title and its paragraph */
}

/* ===================================== */
/*              Animations                */
/* ===================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Breathe Animation */
@keyframes breathe {
  0%, 100% {
    font-variation-settings: 'wght' 100;
  }
  50% {
    font-variation-settings: 'wght' 400;
  }
}

/* Apply Breathe Animation to Section Titles */
.section-title {
  font-family: 'TheFont', sans-serif; /* Updated to use 'TheFont' */
  font-size: clamp(2.5rem, 5vw, 4rem); /* Adjusted for better responsiveness */
  color: var(--primary-color); /* Maintained original color */
  text-align: center; 
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 20px; /* Added margin for spacing */
  padding-top: 5vh;
  animation: breathe 5s ease-in-out infinite; /* Added breathe animation */
}



/* ===================================== */
/*          QR Code Styles               */
/* ===================================== */

/* Wrapper for QR code and text */
.qr-wrapper {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  align-items: flex-start; /* Align items to the left */
  margin-bottom: 30px; 
  
}

/* Specific class for QR codes */
.qr-code {
  width: 200px; /* Adjust the width as needed */
  height: auto; /* Maintain aspect ratio */
  margin-bottom: 0px; /* Space between QR code and text */
}

/* Responsive adjustments for smaller devices */
@media (max-width: 768px) {
  .qr-code {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .qr-code {
    width: 100px;
    height: 100px;
  }
}


/* ===================================== */
/*       Case Study Styles         */
/* ===================================== */

/* Case Study Images */
.case-study-image {
  margin-bottom: 60px;
}

.case-study-image img {
  width: 80%;
  max-height: 400px; /* Constrain height */
  object-fit: contain; /* Maintain aspect ratio */
}

/* Case Study Images - Side by Side */
.case-study-images {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;    
  justify-content: flex-start;   /* Aligns images horizontally to the left */
  gap: 20px;
  margin-bottom: 60px;
}

.case-study-images img {
  width: calc(50% - 10px); /* Two images side by side */
  max-height: 300px; /* Constrain height */
  object-fit: cover; /* Ensures images cover the container without distortion */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Case Study Header */
.case-study-header {
  text-align: left;
  margin-bottom: 20px;
}

.case-study-header h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.case-study-header .subtitle {
  text-align: left;
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

/* Case Study Sections */
.case-study-section {
  margin-bottom: 60px;
}

.case-study-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.case-study-section h3 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.case-study-section li {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.case-study-section p {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--text-color);
}





