/* General */
/* TODO figure out how to import this font later */
@font-face{
  font-family: "Montreal-regular";
  src: url('assets/montreal/NeueMontreal-Light.otf')
} 

@import url('https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css');

* {
   margin: 0;
   padding: 0;
}

:root{
   --background-color: rgba(230,230,230,255);
   --foreground-color: rgb(13, 13, 13);
   --gap: 10px
}

body{
   /* TODO update this font later */
   font-family: 'Montreal-regular', sans-serif;
   background-color: var(--background-color);
   /* overflow: hidden; */

   opacity: 0; /* Initially hide the body */
   transition: opacity 2s ease-in-out; /* Transition effect */
   position: relative;

}

html{
   scroll-behavior: smooth;
}



section {
   padding-top: 4vh;
   height: 96vh;
   box-sizing: border-box;
   min-height: fit-content;
 }
 
 .section-container {
   display: flex;
 }

.page-container {
   border: 1px solid var(--foreground-color);
   padding: var(--gap); 
   margin:  calc(var(--gap) * 2); 
   /* height: calc(100vh - calc(var(--gap) * 4));  */
   box-sizing: border-box; /* Ensures padding and border are included in the width/height */
   /* overflow: auto; Adds scroll if the content is larger than the screen */
   overflow: hidden;
}



p {
   color: rgb(85, 85, 85);
}


/* Transition */


a, 
.btn{
   transition: all 300ms ease;
}


/* Desktop Nav */

nav,
.nav-links {
   display: flex;
   flex-direction: column;
}

nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* aligns items to the start of the container */
}

.nav-links{
  padding-top: 2vh;
   gap: 1rem;
   list-style: none;
   font-size: 1.5rem;
} 

/* The links and their apperance */
/* TODO update the font color on this to be bolder than the other one */
a{
   color: var(--foreground-color);
   text-decoration: none;
   text-decoration-color: var(--background-color);
   list-style-type: none;

}


/* Effect of hovering over the link 
TODO update this so that it becomes like a grey highlight affect */

a:hover{
   color: grey;
   text-decoration: underline;
   text-underline-offset: 0.5rem;
   text-decoration-color: rgb(181, 181, 181);
}


/* Change the appearance of the name */
/* TODO update the font size on this */
.logo{
   font-size: 2rem;
   color: var(--foreground-color)
}

.logo:hover{
   cursor: default;
}


.loader-text {
   position: absolute;
   color:  var(--foreground-color);
   font-size: 2rem;
   text-align: center;
   width: 100%;
   top: 50%; /* Adjust as needed */
   left: 50%; /* Adjust as needed */
   transform: translate(-50%, -50%); /* Center the text */
   /* transition: opacity 0.5s ease; Text fades out first */
}


.loader-name, .loader-portfolio {
display: inline-block;
opacity: 1;
transition: opacity 0.5s ease;
}

.loader-portfolio {
transition-delay: 0.5s;
}

.loader--hidden .loader-name, .loader--hidden .loader-portfolio {
opacity: 0;
}


.loader img {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 5%; /* Adjust as needed */
   height: auto; /* Adjust as needed */
   position: relative;
   margin-top: 15vh;
   /* transition: opacity 1s, visibility 1s; */
   transition: opacity 0.5s ease; /* Image fades out after text, with delay */
}


/* Lodaing animations 
TODO add name in here probably like stagger them */
.loader {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   background: var(--background-color);
   transition: opacity 2s ease, visibility 0s linear 4s; /* Background fades out last */

}

.loader--hidden{
   opacity: 0;
   visibility: hidden;
}



/* For nice animations on scroll src  = https://www.youtube.com/watch?v=T33NN_pPeNI&ab_channel=BeyondFireship*/
.hidden{
   opacity: 0;
   filter: blur(5px);
   transform: translateX(-100%);
   transition: all 1s;
}

.show{
   opacity: 1;
   filter: blur(0);
   transform: translateX(0);
}


/* TODO enable this later */
/* @media(prefers-reduced-motion) {
   .hidden{
       transition: none;
   }
} */



/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  font-size: 2rem;

}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
} 

 /* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
  padding-right: 5rem;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.down-arrow {
  position: absolute;
  left: 90vw;
  bottom: 0vh;
}

.up-arrow{
  position: absolute;
  left: 10vw;
  bottom: 0vh;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  /* background: white; */
  border-radius: 2rem;
  /* border: rgb(53, 53, 53) 0.1rem solid; */
  /* border-color: rgb(163, 163, 163); */
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
  display: flex;
  justify-content: center;
}

.text-container{
  font-size: 1.5rem;
}


/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  padding-top: 5rem; /* Adjust this value to push the content down */
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%; /* Adjust the width to fit the content */
  max-width: 75rem; /* Maximum width */
  margin-left: auto; /* Centering horizontally */
  margin-right: auto; /* Centering horizontally */
}

.article-container {
  display: flex;
  text-align: center; /* Center the text inside the articles */
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem; /* This sets the gap between the articles */
  justify-content: center; /* This will center the articles horizontally */
  align-items: center; /* This will center the articles vertically */
}

article {
  display: flex;
  width: 7rem; /* Fixed width for each article */
  flex-direction: column; /* Stack the icon and text vertically for each article */
  justify-content: center; /* Center the content within each article vertically */
  align-items: center; /* Center the content within each article horizontally */
  gap: 0.5rem; /* Space between icon and text */
}

article .icon {
  cursor: default;
}




/* TODO decide if I should keep Background Lines */
.line {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  /* background: var(--background-color); */
  overflow: hidden; } 
  .line::after {  
    content: '';
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 75%, #ffffff 100%); */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--foreground-color) 75%, var(--foreground-color) 100%);
    animation: drop 30s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97); }
  .line:nth-child(1) {
    margin-left: -25%; }
    .line:nth-child(1)::after {
      animation-delay: 5s; }
  .line:nth-child(3) {
    margin-left: 25%; }
    .line:nth-child(3)::after {
      animation-delay: 10s; }

@keyframes drop {
  0% {
    top: -50%; }
  100% {
    top: 110%; } }




/* For the projects */
.wrapper {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  height: 450px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
}

/* Ensure that the card-container is a column flexbox so items stack vertically */
.card-container {
display: flex;
height: 450px;
flex-direction: column; /* Stack items vertically */
align-items: center; /* Center items horizontally */
margin: 0 10px; /* Maintain the horizontal margin */
height: 100%;
}

.card {
  width: 80px;
  height: calc(100% - 40px);
  border-radius: .75rem;
  background-size: cover;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2rem;
  margin: 0 10px;
  display: flex;
  align-items: flex-end;
  transition: .6s cubic-bezier(.28,-0.03,0,.99);
  box-shadow: 0px 10px 30px -5px var(--foreground-color);
}

.card > .row {
  color: var(--background-color);
  display: flex;
  flex-wrap: nowrap;
}

.card > .row > .icon {
  background: var(--foreground-color);
  color: var(--background-color);
  border-radius: 50%;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
}

.card > .row > .description {
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  height: 80px;
  width: 500px;
  opacity: 0;
  transform: translateY(30px);
  transition-delay: .3s;
  transition: all .3s ease;
}



/* Style the Read More button */
.readMoreBtn {
display: none;
height: 30px;
padding: 10px 20px; /* give some padding to the button */
margin-top: 10px; /* add margin to the top */
align-self: center; /* center button in the card */
background: var(--foreground-color); /* example button color */
color: white; /* text color for the button */
border: none; /* remove border */
border-radius: 2rem; /* round the corners */
cursor: pointer;
transition: opacity 0.3s ease, transform 0.3s ease, left 0.3s ease; /* Transition for opacity, position, and left property */
}

.readMoreBtn:hover {
background-color: #0056b3; /* darker shade on hover */
}

/* Only show the Read More button when the corresponding radio button is checked */
input:checked + label + .readMoreBtn {
display: block;
}

input {
display: none;
}

input:checked + label {
width: 600px;
}

input:checked + label .description {
opacity: 1 !important;
transform: translateY(0) !important;
}


/* The Modal (background) */
.modal {
  display: flex; /* always set to block */
  justify-content: center;
  align-items: center;
  visibility: hidden; /* hide it by default */
  opacity: 0; /* start fully transparent */
  position: fixed;
  z-index: 999; /* make sure it's on top */
  left: 0;
  top: -5vh;
  width: 100%; /* full width */
  height: 100%; /* full height */
  background-color: rgba(230,230,230,0.5);
  backdrop-filter: blur(5px); /* Increase the px value for more blur */
  -webkit-backdrop-filter: blur(5px); /* For Safari */
  transition: opacity 0.5s ease, visibility 0s linear 0.5s; /* transition for opacity and visibility */
  padding: 20px;
  border-radius: 8px;
}

.modal.active {
  visibility: visible; /* make it visible */
  opacity: 1; /* fade to fully visible */
  transition-delay: 0s; /* apply the transition immediately */
  transition: opacity 0.5s ease, visibility 0s linear; /* apply the visibility transition immediately */
}

.modal:not(.active) {
  visibility: hidden; /* hide it when not active */
  opacity: 0; /* fade to transparent */
  transition-delay: 0s; /* delay the visibility transition until after the opacity transition */
  transition: opacity 0.5s ease, visibility 0s linear 0.5s; /* transition for opacity and visibility */

}

.modal {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center; /* Align items vertically */
  justify-content: flex-start; /* Align content to the start */
}



.text-content {
  flex: 1; /* Allows text content to grow */
  padding-right: 20px; /* Add padding between text and image */
}
/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 10px;
  display: flex; /* Set modal-content to use flexbox */
  flex-direction: column; /* Stack children vertically */
}

.modal-header {
  display: flex;
  justify-content: space-between; /* Aligns children on opposite ends */
  align-items: flex-start; /* Aligns children at the top */
}

.modal h1 {
  color: #333;
  font-size: 1.8rem;
}

.modal h2 {
  color: #555;
  font-size: 1.3rem;
  margin-top: 5px;
}

.modal p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 10px;
}

.modal .skills-used {
  margin-top: 20px;
}

.modal .skills-used h3 {
  font-size: 1.2rem;
  color: #333;
}

.modal .skills-used ul {
  list-style: none;
  padding: 0;
}

.modal .skills-used li {
  background-color: #eee;
  display: inline-block;
  padding: 5px 15px;
  margin: 5px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.header-image {
  /* Adjust the width if necessary, or max-width if you want it to be responsive */
  width: 300px;
  height: auto;
  /* Align the image to the top */
  align-self: start;
}

.modal-footer {
  text-align: center; /* Center-align the content */
  padding: 5px; /* Add space above the button */
}

.source-code-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--foreground-color); /* Bootstrap primary color for example */
  color: white;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  max-height: 80%;
}

.source-code-btn:hover {
  background-color: #0056b3; /* Darker shade for hover effect */
  text-decoration: none; /* No underline on hover */
  color: white;
}

/* The Close Button */
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}


.description p {
  /* TODO not sure if I should update this color */
  color: #b0b0ba;
  padding-top: 5px;
}

/* If the background is dark, use this class */
.dark-background .description p,
.dark-background .description h4{
color:  rgba(230,230,230,255) !important; /* white color for dark backgrounds */
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8); /* black shadow for legibility */
text-shadow:
3px 3px 6px rgba(0, 0, 0, 0.9), /* larger and darker shadow for legibility */
-1px -1px 5px rgba(0, 0, 0, 0.9), /* additional shadow for depth */
1px -1px 5px rgba(0, 0, 0, 0.9),
-1px 1px 5px rgba(0, 0, 0, 0.9),
1px 1px 5px rgba(0, 0, 0, 0.9);

}

.light-background .description p,
.light-background .description h4 {
color: rgb(13, 13, 13) !important; /* deep, rich black color */
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8), /* primary white shadow */
            3px 3px 6px rgba(255, 255, 255, 0.9), /* larger and softer shadow for depth */
            -1px -1px 5px rgba(255, 255, 255, 0.9), /* additional shadows for 3D effect */
            1px -1px 5px rgba(255, 255, 255, 0.9),
            -1px 1px 5px rgba(255, 255, 255, 0.9),
            1px 1px 5px rgba(255, 255, 255, 0.9);
}



.card[for="c1"] {
  background-image: url('assets/TSPanimation.gif');
}
.card[for="c3"] {
  background-image: url('/assets/pongation.gif');
}
.card[for="c2"] {
background-image: url('/assets/database-image.webp');
}
.card[for="c4"] {
background-image: url('/assets/0hh1.gif');
}

/* CONTACT */

#contact {
display: flex;
justify-content: center;
flex-direction: column;
height: 60vh;
}

.contact-info-upper-container {
display: flex;
justify-content: center;
border-radius: 2rem;
border: rgb(53, 53, 53) 0.1rem solid;
border-color: rgb(163, 163, 163);
background: (250, 250, 250);
margin: 2rem auto;
padding: 0.5rem;
width: 50%;

}

.contact-info-container {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin: 1rem;
width: 300px;
}

.contact-info-container p {
font-size: larger;
}

.contact-icon {
cursor: default;
}

.email-icon {
height: 2.5rem;
}


/* Resets the flex-direction for the bottom navigation links */
#nav-bottom .nav-links {
display: flex;
flex-direction: row; /* This will align the links horizontally */
justify-content: center; /* Center the links horizontally */
gap: 2rem;
list-style: none;
font-size: 1.5rem;
padding: 0; /* Remove default padding if any */
}

/* Ensures that the footer is positioned at the bottom of the viewport */
footer {
position: relative; /* or 'absolute' if you want to position it at the bottom of the page */
bottom: 0;
width: 100%; /* Full width */
/* height: 80vh;  */
margin-top: 0vh; /* Adjust the negative margin to push the footer to the bottom */
}

/* Specific style for the bottom navigation container */
#nav-bottom {
position: absolute; /* Position it at the bottom of the footer */
bottom: -50vh;
left: 0;
right: 0; /* These ensure that nav-bottom spans the entire width of the footer */
height: 17vh;
}