* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body {
  background: #0d0d0d; 
  color: #ffffff;
  line-height: 1.6;
}

h1, h2 {
  color: #ff2e2e; 
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  color: #d9d9d9;
}

a {
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff2e2e;
}


header {
  background: black;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0,0,0,0.5);
  border-bottom: 1px solid #e50914;
  box-shadow: 0 0 300px red;
}

#navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 15px 50px;
}

#navbar a {
  margin: 0 15px;
  font-weight: bold;
  position: relative;
  font-size: 1rem;
  transition: transform ease-in-out 0.3s;
}
#navbar a:hover{
    transform: scale(1.1);
}
#navbar a::after {
  content: "";
  display: block;
  height: 2px;
  background: #ff2e2e;
  width: 0;
  transition: width 0.3s;
  margin-top: 5px;
}

#navbar a:hover::after {
  width: 100%;
  
}


.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px 10%;
  background: linear-gradient(to right, #0d0d0d, #1a1a1a);
}

.home .text {
  flex: 1;
}

.home h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

.home .bio p {
  font-size: 1.2rem;
  margin-top: 20px;
}

.home #name {
  color: #ff2e2e;
  font-weight: bold;
}

.socials {
  margin-top: 20px;
}

.socials a {
  font-size: 1.5rem;
  margin-right: 20px;
}

.image {
  flex: 1;
  text-align: right;
}

.image img {
  width: 280px;
  height: auto;
  border-radius: 20px;
  border: 3px solid #ff2e2e;
  margin-left: 20px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #ff2e2e;
}



section {
  padding: 80px 10%;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  border-left: 5px solid #ff2e2e;
  padding-left: 10px;
}

.about p {
  font-size: 1.1rem;
  text-align: justify;
  line-height: 2.5;
}


.works, .educations{
  padding: 70px 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.work, .education {
  position: relative;
  padding-left: 10px;
  border-left: 3px solid #e50914;
  transition: transform 0.3s ease;
}

.work:hover, .education:hover {
  transform: scale(1.05);
}

.work p, .education p {
  color: #ddd;
  line-height: 1.6;
  font-size: 1.1rem;
}

.work b, .education b {
  color: #e50914;
  font-size: 1.1rem;
}


.work::before, .education::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 10px;
  width: 12px;
  height: 12px;
  background: #e50914;
  border-radius: 50%;
  transition: transform 0.3s;
}

.work:hover::before, .education:hover::before {
  transform: scale(1.3);
}

.contact {
  padding: 80px 60px;
  background: linear-gradient(180deg, black, rgb(47, 47, 47));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-top: 200px;
}

.contact h2 {
  font-size: 2.8rem;
  color: #e50914;
  margin-bottom: 20px;
}

#mail {
  font-size: 1.3rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

#mail i {
  color: #e50914;
}

#or {
  color: #aaa;
  margin: 10px 0;
  display: block;
}

#textbox {
  width: 70%;
  max-width: 500px;
  background: #121212;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
  font-size: medium;
  margin: 10px 0;
  resize: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#textbox:focus {
  outline: none;
  border-color: #e50914;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

#submit {
  width: 70%;
  max-width: 500px;
  background: #e50914;
  border: none;
  padding: 12px;
  border-radius: 30px;
  color: #fff;
  font-size: 1rem;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#submit:hover {
  background: #fff;
  color: #111;
  transform: scale(1.05);
}

#rights {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #777;
}

/* =========================
   LARGE DESKTOPS (1400px+)
========================= */
@media (min-width: 1400px) {
  .home {
    padding: 120px 15%;
  }

  .home h1 {
    font-size: 4.5rem;
  }

  .image img {
    width: 350px;
  }

  section {
    padding: 100px 15%;
  }
}


/* =========================
   TABLETS (768px – 1024px)
========================= */
@media (max-width: 1024px) {

  #navbar {
    padding: 15px 20px;
  }

  .home {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .image {
    text-align: center;
  }

  .image img {
    width: 240px;
    margin: 0;
  }

  .home h1 {
    font-size: 2.8rem;
  }

  .works, .educations {
    padding: 60px 30px;
  }

  .contact {
    padding: 60px 30px;
  }

  #textbox,
  #submit {
    width: 90%;
  }
}


/* =========================
   MOBILE (Below 768px)
========================= */

@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  header {
    height: auto;
  }

  #navbar {
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
  }

  #navbar a {
    font-size: 0.9rem;
  }

  /* HOME SECTION */
  .home {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 30px;
  }

  .home h1 {
    font-size: 2rem;
  }

  .home .bio p {
    font-size: 1rem;
  }

  .image {
    text-align: center;
  }

  .image img {
    width: 180px;
    max-width: 90%;
    margin: 0 auto;
  }

  .socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .socials a {
    font-size: 1.3rem;
    margin: 0;
  }

  /* GENERAL SECTIONS */
  section {
    padding: 50px 20px;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .about p {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: left;
  }

  /* WORKS + EDUCATION */
  .works,
  .educations {
    padding: 40px 20px;
    gap: 25px;
  }

  .work,
  .education {
    padding-left: 15px;
  }

  .work p,
  .education p {
    font-size: 0.95rem;
  }

  /* CONTACT */
  .contact {
    padding: 50px 20px;
    margin-top: 60px; /* reduced from 200px */
    gap: 20px;
  }

  .contact h2 {
    font-size: 1.8rem;
  }

  #textbox {
    width: 100%;
    max-width: 100%;
  }

  #submit {
    width: 100%;
  }

}
/* =========================
   HAMBURGER BASE STYLE
========================= */

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #ff2e2e;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 30px;
}

/* =========================
   MOBILE NAVIGATION
========================= */

@media (max-width: 768px) {

  #navbar {
    justify-content: space-between;
    padding: 15px 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: black;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    transform: translateY(-200%);
    transition: transform 0.4s ease;
    border-top: 1px solid #e50914;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1rem;
  }

}
