/* =========================================================
   === BASE STYLES ===
========================================================= */
* {
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: black;
  min-height: 100vh;
  width: 100%;
  color: white;
  font-family: sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  /* ✅ allow scrolling */
}

/* =========================================================
   === SECTION BASE ===
========================================================= */
section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  height: 100vh;
  margin-bottom: 2rem;
  gap: 0rem;
}

/* =========================================================
   === NAVIGATION ===
========================================================= */
nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  margin-top: 1rem;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
}
.nav-links li {
  list-style: none;
  display: inline;
}
.nav-links a {
  text-decoration: none;
  font-weight: bold;
  z-index: 2002;
}
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: all 0.3s ease;
  z-index: 11;
}

.burger .line {
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =========================================================
   === INTRO SECTION ===
========================================================= */
.intro {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 3rem;
  width: 100%;
  min-height: 65vh;
  position: relative;
}

/* Wrap boxes inside intro */
.wrap,
.wrap2 {
  flex: 1 1 45%;
  min-width: 300px;
  box-sizing: border-box;
  padding: 5rem;
}

/* Paragraph inside wrap */
.introParag {
  display: flex;
  flex-direction: column;
  font-size: clamp(16px, 1.5vw, 24px);
}

/* =========================================================
   === PROFILE & SHADOW ===
========================================================= */
.wrap2 {
  position: relative;
  height: 50vh;
}

/* Profile Shadow */
.profileshadow {
  position: absolute;
  top: 5vh;
  left: 5vw;
  width: 60%;
  height: 45vh;
  border: 2px solid rgb(48, 153, 6);
  border-radius: 1rem;
  z-index: 4;
  background: transparent;
}

/* Profile Image */
.profile {
  position: absolute;
  width: 60%;
  height: 45vh;
  border-radius: 1rem;
  right: 11vw;
  bottom: 3vh;
  z-index: 5;
  background-color: black;
  background-image: url(photos/profile.png);
  background-size: cover;
  background-position: center;
  box-shadow: 0px 0px 20px green;
}

.profile:hover {
  content: url(photos/sam.jpeg);
  background-position: center;
  background-size: auto;
}

#floating-card,
.profileshadow,
.corner-box {
  color: black;
  border-radius: 20px;
  box-shadow: 0 10px 30px green;
  animation: float 3s ease-in-out infinite;
}

.corner-box {
  background-color: transparent;
  padding: 2rem;
}

/* Keyframes to make it move up and down */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* =========================================================
   === SECTION STYLING ===
========================================================= */

.sec1A,
.sec2A,
.sec3A,
.sec4A {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to top,
    green,
    green,
    rgb(64, 63, 63),
    rgb(64, 63, 63)
  );
  width: 100%;
  height: 85vh;
}

.sec1B {
  display: flex;
  align-items: center;
  background-color: rgb(64, 63, 63);
  width: 80vw;
  height: 75vh;
  box-shadow: 0px 0px 40px black;
  border-radius: 1rem;
  flex-wrap: wrap;
  z-index: 0;
}

/* =========================================================
   === TEXT STYLING ===
========================================================= */
h2 {
  font-size: clamp(16px, 2vw, 34px);
}

ul li {
  list-style: none;
}

li {
  display: inline;
}

li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  margin-left: 1rem;
  font-size: clamp(14px, 1vw, 20px);
}

li a:hover {
  color: rgb(57, 214, 9);
}

.spanA {
  font-size: clamp(23px, 3.5vw, 40px);
  font-weight: 600;
  color: #f5be06;
}

.spanB {
  color: rgb(47, 233, 47);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 24px);
}

.spanB {
  /* animation*/
  display: inline-block;
  font-size: 1.5rem;
  color: rgb(0, 255, 0);
  font-weight: bold;
  letter-spacing: 2px;
  overflow: hidden;
  white-space: nowrap;

  animation: typing 3s steps(20, end) infinite alternate;
}

/* Typewriter effect */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Cursor blinking */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media (max-width: 600px) {
  .spanB {
    font-size: 1.2rem;
  }
}

/* =========================================================
   === SOCIAL ICONS ===
========================================================= */
.social-icons a {
  font-size: 1.3rem;
  color: #0cd009;
  margin: 0 0.5rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s;
}

.social-icons a:hover {
  transform: scale(1.6);
  color: #f5be06;
}

/* =========================================================
   === ABOUT SECTION ===
========================================================= */
/*-------------------------------------About---------------------*/

/* =========================================================
   === RESPONSIVE (MEDIA QUERIES) ===
========================================================= */
@media (max-width: 768px) {
  /* === Burger Menu === */
  .burger {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    height: 4vh;
    background: rgb(56, 54, 54);
    border-radius: 10px;
    text-align: start;
    border: 1px solid green;
    align-items: center;
    display: flex;
  }

  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 89%;
    background: transparent;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-in-out;
    z-index: 9999;
  }

  .nav-links.active {
    max-height: 300px;
    z-index: 999999;
  }

  /* Burger turns to color */
  .burger.toggle .line:nth-child(1),
  .burger.toggle .line:nth-child(2),
  .burger.toggle .line:nth-child(3) {
    background-color: rgb(15, 228, 15);
  }

  /* === Intro Responsive === */
  .intro {
    flex-direction: column;
    align-items: center;
  }

  .wrap,
  .wrap2 {
    position: static;
    text-align: center;
    padding: 2rem;
  }

  /* === Profile Responsive === */
  .profile,
  .profileshadow {
    width: 30vw;
    height: 21vh;
  }

  .profileshadow {
    top: 43vh;
    left: 29vw;
  }

  .profile {
    right: 23vw;
  }
}

/*------------------------About Section-------------------------------------------------------------*/
/*------------------------About Section-------------------------------------------------------------*/
.sec2A,
.sec3A {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sec2A h1,
.sec3A h1 {
  font-size: clamp(18px, 3vw, 24px);
  color: orange;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
}

.sec2A p {
  font-size: clamp(14px, 1.5vw, 24px);
  padding: 0.5rem;
  text-align: left;
  margin-bottom: 1rem;
}

button {
  margin-left: 1rem;
  width: 13vw;
  height: 4vh;
  border-radius: 1rem;
  border: none;
  font-size: clamp(12px, 1vw, 20px);
  font-weight: bold;
  background-color: orange;
  color: white;
  transition: background-color 0.3s;
  animation: scaleLoop 1.5s ease-in-out infinite alternate;
}

button:hover {
  background-color: green;
}

@keyframes scaleLoop {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

/* === Flip Box Styles === */

.sec2A .box {
  background-color: black;
  width: 70vw;
  height: 70vh;
  margin-bottom: 10px;
  padding: 3rem;
  box-shadow: 0px 10px 40px black;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: -0;
}

p .span1 {
  color: orange;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: bold;
}

p .span2 {
  color: #0cd009;
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: bold;
}

.corner-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 30vw;
  height: 50vh;
  margin-top: 1rem;
  border-radius: 50%;
}

/* Top-left corner */
.corner-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-top: 5px solid orange;
  border-left: 5px solid orange;
}

/* Bottom-right corner */
.corner-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-bottom: 5px solid orange;
  border-right: 5px solid orange;
}

img {
  background-image: url(photos/canva.png);
  
  width: 20vw;
  height: 36vh;
  border-radius: 50%;
}

.front {
  display: flex;
}

@media (max-width: 768px) {
  .box-container {
    perspective: 1000px;
    margin-bottom: 7rem;
  }

  .front {
    display: flex;
    flex-direction: column;
  }
  #flipBox .back {
    background-color: #0cd009;
    margin: 0;
  }

  #flipBox .back .backpageContainer {
    background-color: orange;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  #flipBox .back .backpage {
    width: 100%;
    margin: 0;
    transition: transform 0.5 ease-in-out;
  }
  #flipBox .back .backpage:hover {
    transform: scale(1.3);
    z-index: 1000;
  }

  .sec2A .box {
    width: 80vw;
  }

  .sec2A p {
    text-align: justify;
    margin: 0;
    padding: 0;
  }

  .box {
    flex-direction: column;
    justify-content: center;
  }

  .corner-box {
    margin: auto;
    width: 40vw;
    height: 20vh;
  }

  .corner-box img {
    width: 27vw;
    height: 15vh;
  }

  button {
    width: 28vw;
    height: 2.5vh;
    margin: 2rem;
    margin-left: 18vw;
  }

  .corner-box::before {
    border-top: 3px solid orange;
    border-left: 3px solid orange;
    width: 30px;
    height: 30px;
  }

  .corner-box::after {
    border-bottom: 3px solid orange;
    border-right: 3px solid orange;
    width: 30px;
    height: 30px;
  }

  #backBtn {
    left: 35%;
    transform: translateX(-40%);
    width: 30%;
    height: 10px;
    border-radius: 1rem;
  }

  .backpage {
    max-height: 19vh;
  }
}

/* === Flip Effect (added only, doesn’t replace anything) === */
.box-container {
  perspective: 1000px;
}

#flipBox {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

#flipBox.flip {
  transform: rotateY(180deg);
}

#flipBox .front,
#flipBox .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  padding: 2rem;
}

#flipBox .back {
  background-color: rgb(64, 63, 63);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  transform: rotateY(180deg);
}

#backBtn {
  margin-top: 0;
  margin: 6% auto 0;
  height: 1.6rem;
}
.back .backpageContainer {
  margin: 2% auto 0;
  background-color: orange;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 77%;
  gap: 1rem;
}
.backpage {
  background-color: gray;
  margin-top: 2rem;
  width: 30vw;
  height: 50vh;
  box-shadow: 0px 10px 15px black;
  transition: transform 0.6s ease-in-out;
}
.backpage:hover {
  transform: scale(1.1);
  background-color: green;
}
.backpage:hover .skills,
.backpage:hover .education,
.backpage:hover .experience {
  background-color: grey;
}

.skills,
.education,
.experience {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-size: clamp(14px, 1vw, 20px);
  font-weight: bold;
  text-align: center;
  background-color: green;
  width: 35%;
  height: 20px;
  margin: auto;
  outline: 1px solid white;
}

.skills-list {
  margin-top: 2rem;
  list-style: decimal;
  text-align: left;
  display: inline-block;
  padding-left: 1rem;
  font-size: clamp(12px, 1.2vw, 20px);
}

.skills-list li {
  margin: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.skills-list li i {
  font-size: 1.3rem;
}

@media (max-width: 600px) {
  .skills-list li i {
    font-size: 1rem;
    margin: 0;
  }
  .skills-list {
    margin: 0;
    margin-top: 0.2rem;
    list-style: decimal;
    text-align: left;
    display: inline-block;
    padding-left: 1rem;
  }
}
.education {
}
.education-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  padding-left: 0;
  font-size: clamp(12px, 1.3vw, 20px);
  text-align: center;
}

@media (max-width: 600px) {
}

.experienceH3 strong {
  color: orange;
}
.experienceH3 {
  text-align: center;
  font-size: clamp(14px, 1.3vw, 20px);
  margin-bottom: 0;
  margin-top: 0.5rem;
}
.experience-list {
  text-align: center;
  font-size: clamp(12px, 1.1vw, 20px);
  padding: 0.5rem;
}

@media (max-width: 600px) {
  @media (max-width: 600px) {
    /* Make sure text inside boxes doesn't overflow */
    .skills,
    .education,
    .experience {
      width: 90%; /* fit inside the container */
      font-size: clamp(12px, 1.3vw, 20px); /* adjust font for small screens */
      word-wrap: break-word; /* wrap long text */
      text-align: center; /* center text if needed */
      padding: 0.5rem; /* small padding for breathing room */
    }

    /* Optional: make lists stack nicely */
    .skills-list {
      padding-left: 1rem; /* indent bullets a bit */
      font-size: clamp(12px, 3vw, 18px);
      text-align: left;
    }

    .skills-list li {
      margin: 0.4rem 0;
    }
  }
  .education {
    margin-bottom: 0;
  }
  .education-list li {
    text-align: center;
  }
}

/* === Education & Experience List Alignment === */

.education-list ul,
.experience-list ul {
  margin: 0; /* remove top/bottom spacing */
  padding: 0;
  /* remove default ul padding */
  /* bullets inside container */
}

.education-list li {
  margin-top: 0; /* remove spacing between list and container */
  padding: 0.2rem 0; /* tiny spacing between items for readability */
  line-height: 1.2;
}

.experience-list {
  padding: 1rem; /* keeps your box padding */
}
.experienceH3 {
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}

.experience-list li {
  margin: 0; /* remove spacing outside li */
  padding: 0.2rem 0; /* small spacing between items */
  line-height: 1;
  color: white;
}
.skills,
.education,
.experience {
  width: 35%;
  font-size: 12px;
}

/*------------------------Projects Section-------------------------------------------------------------*/
.sec3A h1 {
  margin-bottom: 1rem;
}

.cards {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80%;
  height: 70vh;
  margin: 5px auto;
}

.card {
  background: green;
  box-shadow: 0px 20px 20px rgb(64, 63, 63);
  width: 22vw;
  height: 55vh;
  border-radius: 20px;
  transition: transform 0.6s ease-out;

}
#card2:hover{
background-image: url(photos/card2.png);
}

.card:hover{
  transform: scale(1.2);
  background-image: url(photos/My\ Porfolio2.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0px 10px 20px black;
}
.card:hover .project-card p{
  display: none;

}
.card:hover .project-card h3{
  display: none;

}
.card:hover .project-card a{
  align-self: center;
  background-color: #f5be06;
  margin-top: 100%;
}



.card:hover .logo, .card:hover .logo2 {
  transform: rotate(360deg);
}

.logo, .logo2 {
  background: #f5be06;
  background-image: url(photos/web\ logo.png);
  background-size: cover;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  border: 8px solid rgb(64, 63, 63);
  margin: -40px auto;
  transition: transform 0.8s ease-in-out;
}
.logo2 {
  background-image: url(photos/2nd-project-web.png);
}
.project-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: start;
}

.project-card h3 {
  color: orange;
  margin-top: 1.7rem;
  font-size: clamp(16px, 1.5vw, 18px);
}

.project-card p {
  margin-top: 1rem;
  font-size: clamp(12px, 1.3vw, 18px);
}

.btn-project {
  margin-top: 2rem;
  font-size: clamp(10px, 1.1vw, 18px);
  font-weight: bold;
  display: inline-block;
  background: green;
  box-shadow: 0px 0px 10px white;
  color: black;
  padding: 2px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-project:hover {
  background: green;
  color: white;
}

@media (max-width: 700px) {
  .cards {
    flex-direction: column;
    margin-top: 2rem;
  }

  .card {
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: 0px 5px 10px rgb(64, 63, 63);
  }

  .card:hover {
    transform: scale(1.1);
    background-image: url(photos/My\ Porfolio.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0px 5px 10px black;

  }
  .card:hover .project-card a{
    align-self: center;
    margin-top: 40%;
   
  }

  .logo, .logo2 {
    width: 60px;
    height: 60px;
    margin: -30px auto;
  }

  .btn-project {
    margin-top: 0;
  }

  .project-card h3 {
    margin-top: 0.7rem;
  }

  .project-card p {
    margin-top: 0.5rem;
  }
}

/*-------------------Contacts---------------*/

.sec4Acontainer {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 85%;
  height: 80vh;
  padding: 1rem;
  border-radius: 20px;
  background-image: url(photos/contact.jpg);
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  color: white;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #242c24;
  width: 100%;
  padding: 0;
}

.sec4Acontainer h2 {
  font-size: clamp(18px, 2vw, 22px);
  color: green;
  font-weight: 800;
}

.sec4Acontainer p {
  font-weight: bold;
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1.2;
  opacity: 0.9;
  color: black;
}

.contact-form {
  background: rgba(85, 206, 5, 0.1); /* Transparent */
  backdrop-filter: blur(12px); /* Frosted glass effect */
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  align-self: center;
  gap: 0.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  height: 60vh;
  box-shadow: 0px 10px 20px black;
  border-radius: 10px;
  margin-top: 0.5rem;
}
.contact-btn {
  align-self: center;
  width: 30%;
  height: 20px;
  max-width: 500px; /* optional max width */
  font-size: 1rem;
  margin-top: 1rem;
}

.name,
.email {
  height: 2rem;
}
.message,
.name,
.email {
  outline: 1.5px solid orange;
}
form .social-icons {
}

@media (max-width: 768px) {
  .sec4Acontainer {
    display: flex;
    flex-direction: column;
  }
  .sec4Acontainer h2 {
    margin-bottom: 1rem;
  }
  .contact-form {
    width: 70vw;
    height: 50vh;
    padding: 1rem;
    justify-content: center;
    margin-top: 1rem;
  }
  .contact-btn {
    margin-left: 2rem;
    margin-bottom: 0;
    width: 50%;
  }
}
