/* ================================
   Global Styling and Base Styles
   ================================ */

/* Reset Styles */
html, body, ul {
  margin: 0;
  padding: 0;
}

body {
    background: var(--bkg-color);
    font-family: 'Lato';
  --text-color: #222;
  --bkg-color: #87CEFA;
  --switch-bkg-color: hsl(207, 44%, 80%);
  --switch-position: 4px;
}

/* Font Imports */
@font-face {
  font-family: 'Lato', sans-serif;
  font-family: 'Raleway', sans-serif;
  src: url();
}

/* Default Link Styles */
a { 
  text-decoration: none; 
}

a:visited, a:link, a:active {  
  color: var(--text-color); 
}

h1, p, main, #link1 {
  color: var(--text-color);
}

/* Hide scrollbar for Chrome, Safari, and Opera */
html {
  overflow: scroll;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 0;  /* Remove scrollbar space */
  background: transparent;  /* Optional: just make scrollbar invisible */
}

/* ================================
   Theme Controls and Dark Mode
   ================================ */

body.dark-theme {
  --text-color: #eee;
  --bkg-color: #121212;
  --switch-bkg-color: #2b2b2b;
  --switch-position: 30px;
}

@media (prefers-color-scheme: dark) {
  /* defaults to dark theme */
  body {
    --text-color: #eee;
    --bkg-color: #121212;
    --switch-bkg-color: #2b2b2b;
    --switch-position: 30px;
  }
  body.light-theme {
    --text-color: #222;
    --bkg-color: #87CEFA;
    --switch-bkg-color: hsl(207, 44%, 80%);
    --switch-position: 4px;
  }
}

/* ================================
   Font-Size Properties
   ================================ */

/* 1. CSS Custom Properties */
:root {
  --base-font-size: 16px;      /* Base size, equivalent to 1rem */
  --min-font-size: 1rem;       /* 16px */
  --max-font-size: 2rem;       /* 32px */
  --font-scaling-factor: 0.5;  /* The rate at which font size will scale with viewport */
}

/* 2. Fluid Typography with calc() and 3. clamp() */
body {
  /* This uses calc() to create a fluid base size and then clamp() to ensure it doesn't go below 1rem or above 2rem. */
  font-size: clamp(
      var(--min-font-size), 
      calc(var(--base-font-size) + var(--font-scaling-factor)*1vw), 
      var(--max-font-size)
  );
}

/* ================================
   Responsive Breakpoints
   ================================ */

   /* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) { 
  /* Placeholder */
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Define two columns with the second column being twice as wide */
    grid-template-areas: 
        "Projects Resume"
        "Education Resume"
        "Contact Resume";
    grid-auto-rows: minmax(200px, auto); /* This sets a minimum height for the rows but allows them to expand if the content requires more space */
}

#Projects {
    grid-area: Projects;
}

#Education {
    grid-area: Education;
}

#Resume {
    grid-area: Resume;
}

#Contact {
    grid-area: Contact;
    left: 0px;
}

#Contact .ContactName {
  font-size: 2.25rem; /* Setting font size for the main heading */
  font-weight: bold; /* Semi-bold */
  margin-bottom: 0.875em; /* Space below the main heading */
  position: relative;
  left: 0px;
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) { 

  /* (1) Site Navigation - top right*/
  
  nav a, #link1{
    padding: 16px 30px;
  }
  
  .switch {
    padding: 0px 15px;
  }
  
  nav a, nav .switch {
    text-align: center;
    font-weight: 400;
    display: inline-block;
   }
  
  /* (1.1) theme slider button */  
  .theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    top: 18.5px;
    right: 10px;
    width: 60px;
  }
  
  .theme-switch input {
    display:none;
  }
  
  .slider {
    background-color: var(--switch-bkg-color);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
  }
  
  .slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: var(--switch-position);
    position: absolute;
    transition: .4s; /* For some reason, will occur upon loading page for light */
    width: 26px;
  }
  
  input:checked + .slider {
    background-color: var(--switch-bkg-color);
  }
  
  /* input:checked + .slider:before {
  transform: translateX(26px);
  } */
  
  .slider.round {
  border-radius: 30px;
  }
  
  .slider.round:before {
  border-radius: 50%;
  }
  
  /* (1.2) Drop Down content for Projects) */
  
  /* Changes text for hover over*/
  nav a:hover a, nav #link1:hover,
  /* Changes background for hover over list item */
  nav a:hover {
    color: steelblue;
    background-color: hsl(207, 44%, 25%);
    border-radius: 0px 15px 0px 15px;
  }
  
   }
  
/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) { 
  /* Placeholder */
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  /* Placeholder */
}

/* Media Query responsive web design standards (widths)
   1st - Phones in portrait           < 576px
   2nd - phones in landscape    576px <--> 768px 
   3rd - tablets                768px <--> 992px
   4th - desktops               992px <--> 1200px
   5th - large desktops         1200px <--> 1400px
   6th - extra large desktops   1400px <--> or larger
*/

/* X-Small devices (portrait phones, less than 576px) */
.mobile {
  display: block;
  position: fixed;
    padding:0;
    margin:0;

    top:0;
    left:0;

    width: 100%;
    height: 100%;
  background-color: steelblue;
  overflow: scroll;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  color: var(--text-color);
}

/* ================================
   Name + Contact Top Bar
   ================================ */

.flex-bar {
  box-sizing: border-box;
  display: flex;
  align-items: center; /* Vertically centers content if your bar has a specific height */
  padding: 0.62em;
  background-color: var(--bkg-color); /* Just for visualization */
  font-size: 1.5rem;
  text-align: center;
  border: none;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-background {
  background-color: var(--bkg-color); /* Set their background to black */
}

.Name {
  width: 200px; /* Set the width you desire for the left block */
  text-align: left;
  margin-top: clamp(0,(1vw*0.5), 10px);
  /* margin-left: calc(1vw*2.5); */
}

.space-block {
  flex-grow: 1; /* This ensures it takes up the remaining space */
}

.contact-block {
  width: 200px; /* Set the width you desire for the right block */
  text-align: right;
  margin-top: clamp(0,(1vw*0.5), 10px);
  /* margin-right: calc(1vw*2.5); */
}

.Name a, .contact-block a {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits the color of its parent so it doesn't have the default blue color */
}

/* ================================
   Intro Paragraph
   ================================ */

.mobileWelcome-background {
  background : linear-gradient(var(--bkg-color), steelblue);
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
}

.mobileWelcome {
    max-width: 1200px;
    display: block;
    font-size: 1rem; /* adjusted for better readability on mobile */
    padding: 15px; /* providing some padding around the content */
    color: var(--text-color);
    text-align: center; /* to center the header text */
    background : linear-gradient(var(--bkg-color), steelblue); /* gradient from steelblue to deepskyblue */
}

.mobileWelcome h1 {
    font-size: 2.5rem; /* making the welcome message larger */
    margin-bottom: 20px; /* providing some space between the header and the content */
  }

.mobileWelcome .nameHighlight {
    color: gold; /* making the name stand out */
    font-weight: bold; /* emphasizing the name */
}

.mobileWelcome p {
    margin-bottom: 15px; /* space between paragraphs */
}

/* ================================
   Grid
   ================================ */

.grid-container {
  display: grid;
  grid-template-columns: 1fr;  /* one column taking full width */
  max-width: 1200px;
  margin: 0 auto;
}

.mobileTile{
  display: block;
  color: var(--text-color);
  margin: auto;
  margin-top: 0%;   
  aspect-ratio: 1.4;
}

.slide, .slide_Education {
  /* font-size: 2.25rem; */
  box-sizing: border-box;
  display: none;
  margin: auto;
  /* margin-top: 1.5em;    */
  aspect-ratio: 1.4;
  width: 90%;
  border: 1px solid #d1d1d1;
  box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
  /* box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75); */
  background-color: rgba(173, 216, 230, 0.616);
  overflow: hidden;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;  /* can also use 'contain' based on requirement */
  object-position: center;
}

.slide_Education img {
  width: 100%;
  height: 100%;
  object-fit: fill;  /* can also use 'contain' based on requirement */
  object-position: center;
}

/* Caption text */
.text {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  position: absolute;
  bottom: 0px;
  left: 25%;
  width: 50%;
  text-align: center;
}

.projectTag {
  position: absolute;
  top: 10px;  /* Adjust this value as needed */
  left: 10px; /* Adjust this value as needed */
  z-index: 2;  /* To ensure it's on top of the image */
  color: white;  /* Color of the text, adjust as needed */
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background for visibility */
  padding: 5px 10px;  /* Padding around the word "project" */
  border-radius: 3px; /* Optional, for rounded corners */
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .3} 
  to {opacity: 1}
}

#Resume {
  /* grid-column: span 1;
  grid-row: span 1; */
  box-sizing: border-box;
  display: block;
  flex-direction: column;
  justify-content: space-between;
  align-items: left;
  width: 100%;
  padding: 0% 5%; /* Updated from 10px to em unit */
  flex-wrap: wrap; /* Allows the items to wrap to the next line if needed */
}

.accordion-container {
  flex: 1;/* This will give both containers equal width when they are side by side */
  margin: 0.3125em; /* Updated from 5px to em unit */
}

.ResumeName {
  position: relative;
  left: -2.5%;
  color: var(--text-color);
  font-size: 2.25rem; /* Setting font size for the main heading */
  font-weight: bold; /* Semi-bold */
  margin-bottom: 0.875em; /* Space below the main heading */
}

.ResumeDownload {
  font-size: 1.5rem; /* Font size for the download link */
  font-weight: bold; /* Light weight for subtlety */
  text-decoration: underline; /* Underlined as it's a link */
  margin-bottom: 0.75em; /* Spacing below the download link */
}
.accordion-container {
  width: 100%;
}

.accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: steelblue;
  color: var(--text-color);
  padding: 10px 20px;
  width: 100%;
  text-align: left;
  border: 1px solid steelblue;
  border-top: 1px solid white;
  outline: none;
  cursor: pointer;
  font-size: 2rem;
  transition: background-color 0.2s ease;
  font-family: 'Lato';
}

.accordion-btn:hover {
  color: lightgrey;
}

.panel {
  max-height: 0;
  overflow: hidden;
  background-color: steelblue;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.arrow {
  transition: transform 0.3s ease;
}

/* ================================
   Resume Section Styles
   ================================ */

.resume-section {
  margin-bottom: 30px; /* Spacing between resume sections */
  padding: 20px; /* Internal spacing for each resume section */
  border: 1px solid #e0e0e0; /* A light border around each section */
  border-radius: 5px; /* Rounded corners */
  background-color: #f9f9f9; /* Light background color for each section */
}

.resume-section h2 {
  font-size: 1.5rem; /* Main resume title size */
  margin-bottom: 10px; /* Spacing after the title */
  color: #333; /* Dark text color for contrast */
  font-weight: bold; /* Bold text for emphasis */
}

.resume-section h3 {
  font-size: 1.2rem; /* Sub-title/role size */
  margin-bottom: 5px; /* Spacing after the sub-title */
  color: #555; /* A slightly lighter shade for sub-titles */
  font-style: italic; /* Italic text for a different look. Can be removed if not desired */
}

.resume-section p {
  margin-bottom: 15px; /* Spacing after paragraphs (like Date and Location) */
  color: #666; /* Color for general text */
}

.resume-section p strong {
  color: #444; /* Darker text color for labels like 'Date:' and 'Location:' for emphasis */
}

.resume-section ul {
  margin-left: 20px; /* Indentation for the bullet list */
  list-style-type: disc; /* Regular disc bullet points, can be changed to another style if desired */
}

.resume-section li {
  margin-bottom: 10px; /* Spacing between bullet points */
  color: #666; /* Text color for bullet points */
}

/* Optionally, style for the active button */
.accordionButton.active {
  background-color: #0056b3; /* A darker shade of blue */
}

/* ================================
   Contact Section Styles
   ================================ */

#Contact {
  position: relative;
  left: 5%;
  color: var(--text-color);
  min-height: 175px;
}

#Contact .ContactName {
  display: block;
  font-size: 2.25rem; /* Setting font size for the main heading */
  font-weight: bold; /* Semi-bold */
  margin-bottom: 0.875em; /* Space below the main heading */
  position: relative;
  left: -2.5%;
}

.googleForm {
  font-size: 1.5rem; /* Font size for the download link */
  font-weight: bold; /* Light weight for subtlety */
  text-decoration: underline; /* Underlined as it's a link */
  margin-bottom: 0.75em; /* Spacing below the download link */
}

#Contact p {
  font-size: 1rem;
}

.flex-bar-footer {
  box-sizing: border-box;
  display: flex;
  align-items: center; /* Vertically centers content if your bar has a specific height */
  padding: 0.62em;
  background-color: steelblue; /* Just for visualization */
  font-size: 1.5rem;
  text-align: center;
  border: none;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-background-footer {
  background-color: steelblue; /* Set their background to black */
}

aside, main, footer, .dropdown-Projects-1, nav {
  display: none;
}



