:root{
  --background: rgba(25 ,25, 25, 1);
  --background-alt: rgba(225, 225, 225, 1);
  --light-background: rgba(75, 75, 75, 1);
  --light-background-alt: rgba(175, 175, 175, 1);
  --main-text: rgba(50, 50, 50, 1);
  --main-text-alt: rgba(200, 200, 200, 1);
  --sub-text: whitesmoke;
  --sub-text-alt: black;
  --color1: rgba(0, 50, 255, 1);
  --color2: rgba(0, 100, 255, 1);
  --color3: rgba(0, 150, 255, 1);
  --color4: rgba(0, 200, 255, 1);
  
  --small-text: .5em;
  --p-size: .9em;
  --header-size: 2.2em;
  --sub-size: 1.7em;
  --h1-size: 2em;
  --h2-size: 1.5em;
  --h3-size: 1.1em;
  
  --heavy-weight: 800;
  --mild-weight: 500;
  --light-weight: 200;
  
}
/*html, body, header, paragraph,  all*/
*{
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style-type: none;
}

html{
  scroll-behavior: smooth;
}

body{
  background: var(--background);
  font-family: "Pliant", sans-serif;
}

h1{
  font-size: var(--h1-size);
  text-align: center;
  padding-top: 30px;
}

h2{
  font-size: var(--h2-size);
  text-align: center;
}

h3{
  font-size: var(--h3-size);
  text-align: left;
}

p{
  font-size: var(--p-size);
  text-align: left;
}

button{
  padding: 10px 15px;
  border: none;
  text-align: center;
  border-radius: 12px;
}

button:hover{
  transform: translateY(-2px);
}

section, header{
  border-bottom: 1px solid rgba(0, 255, 255, .1);
  margin-bottom: 30px;
}

/*Header Section*/
header{
  padding: 10px 20px;
}

.main-heading{
  color: var(--background-alt);
  font-size: var(--header-size);
}

span.heading{
  background: linear-gradient(to right, var(--color1), var(--color4));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-paragraph{
  color: var(--main-text-alt);
  padding: 50px 5px;
  text-align: center;
}

.buttons{
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 40px;
  width: 100%;
}

.header-button{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  color: var(--sub-text);
  margin-bottom: 40px;
  width: 20%;
}

button a{
  color: var(--sub-text);
}

#button1{
  border: 1px solid var(--main-text-alt);
  background: rgba(100, 100, 100, .1);
}

#button2{
  background-image: linear-gradient(to right, var(--color1), var(--color2), var(--color3),var(--color4) );
}

/*Navigation Bar*/
nav{
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, .1);
  
  backdrop-filter: blur(10px);/* Blurs the content underneath */
  z-index: 10;
  padding: 5px;
}

nav ul{
  display: flex;
}

nav li{
  color: var(--sub-text);
}

.letter-logo{
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, var(--color1), var(--color2), var(--color3),var(--color4));
  padding: 20px;
  height: 5px;
  width: 5px;
  color: var(--sub-text);
  font-weight: var(--heavy-weight);
  border-radius: 10px;
  margin: 10px;
}

.logo:not(.nav-list){
  float: left;
  font-weight: var(--heavy-weight);
  margin-top: 10px;
}

.logo-span{
  color: var(--main-text-alt);
  font-weight: var(--light-weight);
}

.nav-list{
  font-size: var(--p-size);
  padding: 10px;
  float: right;
}

.nav-links{
  position: absolute;
  top: 10px;
  right: 5px;
}

#contact-button{
  background: linear-gradient(to left, var(--color1), var(--color2), var(--color3),var(--color4));
  border-radius: 10px;
  padding: 10px 5px;
}

/*New Skill Section*/
/* Section Setup */
.skills-section {
  padding: 30px 10px;
  margin: 0 auto;
}

.skills-section h1 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--main-text-alt);
}
.skills-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--sub-text);
}

/* Grid Layout */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
}

/* Card Container & Perspective */
.skill-card {
  background-color: transparent;
  height: 60vh;
  perspective: 1000px; /* Essential for 3D effect */
  cursor: pointer;
}

/* Inner wrapper to handle rotation */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* Toggle Class applied via JavaScript */
.skill-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

/* Front & Back Face Base Styles */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari support */
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Front Styling */
.card-front {
  background: linear-gradient(135deg, var(--color1), var(--color2), var(--color3), var(--color4));
  color: var(--sub-text);
}

/* Back Styling */
.card-back {
  background-color: var(--background-alt);
  color: var(--sub-text-alt);
  transform: rotateY(180deg);
}

/* Content Layout Inner Padding */
.card-content {
  padding: 40px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Front Face Elements */
.card-front h3 {
  font-size: var(--h2-size);
  margin: 10px 0;
}

.card-front p {
  font-size: var(--p-size);
  line-height: 2;
  opacity: 0.9;
}

/* Back Face Elements & Experience List */
.card-back h3 {
  font-size: var(--h2-size);
  margin-bottom: 20px;
  color: var(--color3);
  border-bottom: 2px solid var(--sub-text-alt);
  padding-bottom: 10px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.skills-list li:last-child {
  border-bottom: none;
}

.skill-name {
  font-weight: 600;
  color: var(--sub-text-alt);
}

.years {
  background-color: var(--main-text-alt);
  padding: 5px 15px;
  border-radius: 10px;
  font-size: var(--p-size);
  font-weight: var(--heavy-weight);
  color: var(--sub-text-alt);
}

/* Subtle prompt text at the bottom */
.hint-text {
  font-size: var(--p-size);
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-top: 15px;
}

/*Project Section*/
.project-header{
  color: var(--main-text-alt);
}

.project-sub{
  color: var(--sub-text);
  font-weight: var(--light-weight);
}

/*Filter Section*/
.filter-buttons {
    display: inline-flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 40px;
    width: 100%;
}

.btn {
    background-color: inherit;
    border: 1px solid var(--sub-text);
    color: var(--sub-text);
    padding: 10px 15px;
    font-size: var(--p-size);
    font-weight: var(--mild-weight);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, .btn.active {
    background-color: var(--background-alt);
    color: var(--sub-text-alt);
}

/* Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card Styling */
.project-card {
    background: var(--background-alt);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block; /* Default block behavior */
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.project-content {
    padding: 20px;
}

.project-category {
    font-size: var(--small-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: var(--small-text);
    color: var(--color3);
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
}

.project-title {
    margin: 0 0 10px 0;
    font-size: var(--main-text);
    color: var(--color2);
}

.project-description {
    margin: 0;
    color: var(--sub-text-alt);
    font-size: var(--p-size);
    line-height: 1.5;
}

/* Filter Logic Classes managed by JS */
.project-card.hide {
    display: none;
}

.project-card.show {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/*Workflow Section*/
.workflow-header{
  color: var(--sub-text);
}

.workflow-sub{
  color: var(--main-text-alt);
}

.workflow-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.workflow-card{
  width: auto;
  padding: 50px 25px;
  margin: 10px;
  border-radius: 10px;
  background: var(--main-text);
}

.workflow-number{
  color: var(--main-text-alt);
  font-weight: var(--heavy-weight);
  font-size: var(--sub-size);
}

.workflow-title{
  color: var(--sub-text);
  padding: 10px 0;
}

.workflow-paragraph{
  color: var(--light-background-alt);
}

/*Review Section*/
/* Reviews Section Styling */
.reviews-section {
  padding: 15px 5px;
  margin: 0 auto;
  text-align: center;
}

.review-header{
  font-size: var(--h1-size);
  color: var(--main-text-alt);
  margin-bottom: 20px;
}

/* Carousel Outer Container */
.carousel-container {
  position: relative;
  margin: 0 auto;
  padding: 50px;
}

/* Inner Window that hides non-visible cards */
.carousel-track-container {
  overflow: hidden;
  width: 100%;
}

/* Moving Track */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
}

/* Review Card Styling */
.review-card {
  min-width: 100%; /* Show 1 card at a time on mobile */
  box-sizing: border-box;
  padding: 35px;
  background: var(--background-alt);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Desktop Adjustment: Show 2 cards at a time if preferred */
@media (min-width: 768px) {
  .review-card {
    min-width: calc(50% - 20px); /* Adjusting for spacing */
    margin: 0 10px;
  }
}

/* Star Rating */
.stars {
  color: var(--color3);
  font-size: var(--h1-size);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

/* Review Text */
.review-text {
  font-size: var(--p-size);
  line-height: 1.5;
  color: var(--main-text);
  font-style: italic;
  margin-bottom: 20px;
}

/* Client & Project Meta */
.client-name {
  font-size: var(--h2-size);
  font-weight: var(--mild-weight);
  color: var(--main-text);
  margin: 0 0 5px 0;
}

.project-type {
  font-size: var(--p-size);
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--background);
  color: var(--sub-text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, opacity 0.3s ease;
  z-index: 10;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* Disabled button look when reaching limits */
.carousel-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.5;
}

/*Form Section*/
.contact-header{
  color: var(--main-text-alt);
}

.contact-paragraph{
  color: var(--main-text-alt);
  text-align: center;
  margin-bottom: 20px;
}

.interested{
  text-align: center;
}

.fill-text{
  display: inline-flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 40px;
  width: 100%;
}

.contact-form {
      background: rgba(30, 30, 30, 1);
      border-radius: 12px;
      padding: 0 10px;
      margin: 10px;
      box-shadow: 0 5px 5px -3px var(--background);
      border: 1px solid ;
      width: 95%;
  }

  .form-group {
      margin-bottom: .5em;
      color: var(--sub-text);
      padding: 0 10px;
  }

  label {
      display: block;
      margin-bottom: .5em;
      font-weight: var(--mild-weight);
  }

  input[type="text"],
  input[type="email"] {
      width: 100%;
      padding: 0.75em;
      border: none;
      border-radius: 5px;
      box-sizing: border-box;
      font-size: var(--p-size);
  }

  .checkbox-group {
      display: inline-flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 30px;
      width: 100%;
  }

  .checkbox-label {
      align-items: center;
      cursor: pointer;
      font-weight: var(--light-weight);
      font-size: var(--p-size);
      border: 1px solid var(--color2);
      border-radius: 5px;
      padding: 10px;
      margin: 5px;
      display: flex;
  }

  .checkbox-label input {
      margin-right: 0.75em;
      width: 1.5em;
      height: 1.5em;
  }

  #submit-btn {
    margin-bottom: 40px;
    width: 30%;
    background: linear-gradient(to right, var(--color1), var(--color4));
    color: var(--sub-text);
    padding: 1em;
    border: none;
    border-radius: 5px;
    font-size: var(--sub-text);
    font-weight: var(--mild-weight);
    cursor: pointer;
    transition: background-color 0.2s;
  }

  #submit-btn:hover {
      background: var(--sub-text);
  }

  /* Popup Notification Styles */
  .popup-notification {
      display: none;
      position: fixed;
      top: 20px;
      right: 20px;
      background: var(--sub-text-alt);
      color: var(--sub-text);
      padding: 1em 2em;
      border-radius: 5px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      font-weight: var(--mild-weight);
      z-index: 1000;
      animation: slideIn 0.3s ease-out;
  }

  @keyframes slideIn {
      from { transform: translateY(-20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
  }
  
  /*Media Qeuries*/
  @media only screen and (max-width: 680px){
    body{
      max-width: 97%;
    }
    
    #services, #work, #process, #reviews{
      display: none;
    }
    
    #contact-botton{
      width: 100%;
    }
    
    .main-heading{
      font-size: 3em;
    }

    .header-button {
      width: 100%;
    }
    
    .skill-card {
      height: 350px;
    }
    
    .skills-grid {
      grid-template-columns: 1fr;
    }
    
    .filter-buttons {
      display: flex;
      flex-wrap: wrap;
    }
    
    .workflow-grid {
      grid-template-columns: 1fr;
    }
    
    #submit-btn {
      width: 95%;
    }
    
    .fill-text {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 40px;
      width: 100%;
    }
    
  }