* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(135deg, #f9faff 0%, #f0f4ff 100%);
  color: #25282b;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* ==================== HEADER ==================== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  transition: all 0.3s ease;
  background: rgba(249, 250, 255, 0.85);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.15rem;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  cursor: default;
  background: linear-gradient(135deg, #25282b 0%, #fdc435 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  background: linear-gradient(135deg, #fdc435 0%, #ffd966 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #25282b;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: rotate(90deg);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-list li a {
  text-decoration: none;
  color: #25282b;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fdc435;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-list li a:hover::after {
  width: 100%;
}

.nav-list li a:hover {
  color: #fdc435;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding: 120px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-subtitle {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fdc435;
  margin-bottom: 1rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 1rem 0 1.5rem;
  color: #25282b;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.description {
  color: #636363;
  line-height: 1.8;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin: 0 0 2.5rem;
  max-width: 90%;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.btns-container {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid #25282b;
  background: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #25282b;
  display: inline-block;
}

.btn:hover {
  background: #25282b;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 40, 43, 0.2);
}

.btn-yellow {
  background: linear-gradient(135deg, #fdc435 0%, #ffd966 100%);
  border: none;
  color: #25282b;
  box-shadow: 0 4px 15px rgba(253, 196, 53, 0.3);
}

.btn-yellow:hover {
  background: linear-gradient(135deg, #ffd966 0%, #fdc435 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(253, 196, 53, 0.4);
  color: #25282b;
}

.btn a {
  text-decoration: none;
  color: inherit;
}

/* ==================== SECTION TITLES ==================== */
.section-title {
  font-family: "Montserrat", sans-serif;
  color: #25282b;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #fdc435, #ffd966);
  border-radius: 3px;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.profile-image-container {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: white;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.profile-image-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.profile-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.about-text .section-title::after {
  left: 0;
  transform: none;
  width: 60px;
}

.about-description {
  font-size: 1.1rem;
  color: #636363;
  line-height: 1.9;
  margin: 0;
  max-width: 100%;
}

#resume {
  align-self: flex-start;
  margin-top: 1rem;
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.projects-section > .section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.project-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 4rem auto;
  max-width: 1100px;
  border-radius: 25px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 400px;
}

.project-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-container.row-reverse {
  direction: rtl;
}

.project-container.row-reverse > * {
  direction: ltr;
}

.project-description {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.project-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #25282b;
  margin-bottom: 0.5rem;
}

.project-details {
  font-size: 1.05rem;
  color: #636363;
  line-height: 1.8;
  margin: 0;
  max-width: 100%;
}

.project-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-container:hover img {
  transform: scale(1.05);
}

.view-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
  padding: 100px 5%;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-form > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 1rem;
  font-weight: 600;
  color: #25282b;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  font-size: 1rem;
  padding: 14px 18px;
  border: 2px solid #e8ecf4;
  border-radius: 12px;
  font-family: "Open Sans", sans-serif;
  transition: all 0.3s ease;
  background: #fafbfc;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #fdc435;
  background: white;
  box-shadow: 0 0 0 4px rgba(253, 196, 53, 0.1);
  transform: translateY(-2px);
}

textarea {
  height: 150px;
  resize: vertical;
  font-family: "Open Sans", sans-serif;
}

input[type="submit"] {
  align-self: flex-end;
  margin-top: 0.5rem;
  cursor: pointer;
}

/* ==================== FOOTER ==================== */
footer {
  margin-top: 100px;
  padding: 80px 5% 60px;
  background: linear-gradient(135deg, #25282b 0%, #1a1d20 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(./images/Vector.png) top right no-repeat;
  background-size: cover;
  background-position: top right;
  opacity: 0.15;
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media a:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(253, 196, 53, 0.2);
  border-color: rgba(253, 196, 53, 0.4);
  box-shadow: 0 8px 20px rgba(253, 196, 53, 0.2);
}

.social-media img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.social-media a:hover img {
  filter: brightness(0) invert(1) sepia(100%) saturate(10000%) hue-rotate(30deg);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  header {
    padding: 1.2rem 4%;
  }

  .about-section,
  .project-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-container.row-reverse {
    direction: ltr;
  }

  .project-container img {
    height: 300px;
    order: -1;
  }

  .project-container.row-reverse img {
    order: -1;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 800px) {
  header {
    padding: 1rem 4%;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 4%;
    right: 4%;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 1rem 0;
    margin-top: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f0f0f0;
  }

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

  .hamburger {
    display: block;
  }

  .hero-section {
    padding: 120px 5% 80px;
  }

  .about-section {
    padding: 80px 5%;
  }

  .projects-section,
  .contact-section {
    padding: 80px 5%;
  }

  .profile-image-container {
    margin-bottom: 2rem;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .btns-container {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .project-description {
    padding: 2rem;
  }
}

@media (max-width: 600px) {
  main {
    padding: 0;
  }

  header {
    padding: 0.8rem 4%;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero-section,
  .about-section,
  .projects-section,
  .contact-section {
    padding: 60px 4% 40px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .social-media {
    gap: 1.5rem;
  }

  .social-media a {
    width: 45px;
    height: 45px;
  }
}

/* Smooth section spacing */
section,
article {
  scroll-margin-top: 100px;
}
