/* GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  /* Scales the base font size from 16px to 12.8px (80%) */
  /* Everything using 'rem' units will now automatically scale down by 20% */
  font-size: 100%; 
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000000;
  width: 100%;
  overflow-x: hidden;
}

p {
  color: rgb(0, 0, 0);
  /* This automatically scales down from 28px to 22.4px due to html root change */
  line-height: 1.6rem; 
}

section {
  padding-left: 0px;
  padding-right: 0px;
}


/* TRANSITION */
a, .btn {
  transition: all 0.3s ease;
}

/* DESKTOP NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #000;
  z-index: 1000;
  display: flex;
  justify-content: center; /* Centers items horizontally */
  align-items: center;     /* Centers items vertically */
  height: 50px;            /* Fixed height for the header */
  padding: 0;
}

nav, .nav-links{
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height:3vh;
  background-color: hsl(0, 0%, 0%);
}

.nav-links {
  gap: 7rem;
  list-style: none;
  font-weight: 700;
  font-size: 1.25em;
}

a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  text-decoration-color:white;
}

a:hover {
  color: #ff7b00;
  text-underline-offset: 0.5rem;
  text-decoration-color:#ff7b00;
}

/* HAMBURGER MENU */ 
#hamburger-nav {
  display: none;
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 3px 0; 
  background: black; 
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
  padding-left: 10px;
}

.hamburger-icon span {
  width: 100%;
  height: 4px;
  background-color: rgb(255, 255, 255);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
  opacity: 0;
  visibility: hidden;      
  transition: all 0.4s ease-in-out;
}

.menu-links a {
  color: white;
  font-size: 2rem;       
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
  line-height: 5rem;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  opacity: 1;
  visibility: visible;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
  opacity: 1;
}

/* hero section */
#hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10rem 8rem;
  background-image: url('./Assets/CX_Bannel_Image_2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: white;
  padding-right: 20px;
}

.video {
  width: 100%;
  height: 100%;
  justify-content: center;
}

.video iframe {
  max-width: 100%;
  border-radius: 10px;
}

.bio {
  max-width: 100%;
  padding: 0px 50px;
  justify-content: center;
  padding-left: 150px;
}


.btn-container {
  display: flex;
  gap: 2rem;
  
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-color-1 {
  background-color: transparent;
  color: #f26500;
  border: 1.5px solid #f26500;
}

.btn-color-1:hover {
  background-color: #f26500;
  color: white;
}

.btn-color-2 {
  background-color: transparent;
  color: #f26500;
  border: 1.5px solid #f26500;
}

.btn-color-2:hover {
  background-color: #f26500;
  color: white;
}

/* EXPERIENCE SECTION */
#experience {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 4rem 10rem;
}

.work, .education {
  width: 50%;
}

h1 {
  color: #ffffff;
  font-size: 4rem;
  margin-bottom: 1rem;
}

h2 {
  color: #e85c0d;
  font-size: 1.8rem;
  border-bottom: 3px solid #e85c0d;
  padding-bottom: 0.5rem;
}

h3 {
  padding-bottom: 6px;
}

h4 {
  color: hsl(0, 0%, 100%);
  font-size: 1.5rem;
  margin-top: 1rem;
  font-weight: 500;
}

h5{
  color: hsl(0, 0%, 100%);
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: 400;
  line-height: 2;
}


/* PORTFOLIO SECTION */
#portfolio {
  background-color: #f0f0f0;
  padding: 4rem 12rem;
  justify-content: space-around;
}

.filters {
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.filters button {
  font-family: 'Montserrat', sans-serif;
  background: none;
  border: none;
  color: #e85c0d;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 1rem;
  cursor: pointer;
}

.filter-btn {
  background: none;
  border: none;
  color: #ff7b00;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.filter-btn:hover {
  color: #333;
}

.filter-btn.active {
  padding-bottom: 0.75rem;
  border-bottom: 4px solid #ff7b00;
  color: #333;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.card-link{
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.card {
  height: 216px;
  width: 320px; 
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor:pointer;
  zoom: 85%;
}

.card:hover {
  transform: translateY(-10px);
  outline: 4px solid #ff7b00;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card h3 {
  color: #333;
  font-size: 1rem;
  text-align: center;
  border-bottom: none;
  padding-top: 8px;
}

/* CONTACT SECTION */
#contact {
  background-color: hsl(0, 0%, 100%);
  padding: 6rem 12rem;
  justify-content: space-around;
}

.contact-info{
  flex:1;
  justify-content: center;
  padding-top: 10px;
  padding-left: 70px;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  grid-template-rows: repeat(3, auto); 
  gap: 30px; 
  width: 100%;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  flex-direction: row;      
  align-items: center;      
  gap: 15px;                
  text-decoration: none;
  color: inherit;
}

.social-icons img {
  width: 33px;              
  height: 33px;
  margin-bottom: 0;         
}
.social-icons img:hover {
  transform: scale(1.1);
}

/* FOOTER */
footer {
  padding: 6px 0;          
  text-align: center;       
  background-color: #000;   
  color: white;             
}

.text {
  margin-bottom: 10px;
}




/*** PROJECT WEBPAGE***/




/* PROJECT PAGE */
#project-page {
  width: 100%;
  margin: 0;
  padding-top: 20px;
}

/* GALLERY */
.gallery-wrapper {
  position: relative; 
  width: 100%;
}

.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./Assets/CX_Bannel_Image_2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  padding: 100px;
  position: relative;
  gap: 30px;
}

/* SLIDES */
.gallery-content {
  display: none;
  width: 100%;
  width: min(1000px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
}

.gallery-content.active {
  display: block;
  aspect-ratio: 16 / 9;
}

.gallery-content img,
.gallery-content iframe,
.gallery-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ARROWS */

.gallery-btn {
  width: 65px;
  height: 85px;
  border: 1px solid #000000;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  color: #000000;
  cursor: pointer;
  font-size: 3rem;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 5;
  flex-shrink: 0;
  padding-bottom: 5px;
}

.gallery-btn:hover {
  border: 1px solid hsl(0, 0%, 100%);
  background: #e85c0d;
  color: white;
}

/* DOTS */
.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.dot {
  width: 12.5px;
  height: 12.5px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #f26500;
}

/* CONTENT */
#project-info { 
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 40px 160px;
}

.project-content {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Main content vs Sidebar */
  gap: 1rem;
  padding-top: 1rem;
}

.project-sidebar {
  border-left: 1.5px solid #aaaaaa;
  padding-left: 5rem;
}

.info-block {
  margin-bottom: 1.5rem;
}

.info-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #333;
}

.info-block li {
  padding-bottom: 10px;
}

/* RETURN TO PORTFOLIO PAGE */
#back-button {
  display: flex;
  justify-content: center; 
  align-items: center;     
  padding: 30px 0;         
  width: 100%;            
}
