* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #620080;
  --pink: #f27990;
  --light-bg: #f9f6fc;
  --font: "Segoe UI", system-ui, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--light-bg);
  color: var(--purple);
  line-height: 1.6;
  padding-top: 80px;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/header-bg.png") no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(8px);
  z-index: -1;
  transform: scale(1.15);
  transition: transform 9s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header.scrolled::before {
  transform: scale(1);
}

.header__logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pink);
  text-decoration: none;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(242, 121, 144, 0.4);
  transition: transform 0.3s;
}

.header__logo:hover {
  transform: scale(1.05);
}

.header__menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header__menu a {
  position: relative;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
}

.header__menu a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(242, 121, 144, 0.3) 0%, transparent 70%);
  border-radius: 12px;
  transition: transform 0.4s ease;
  z-index: -1;
}

.header__menu a:hover {
  color: var(--pink);
  text-shadow: 0 0 15px rgba(242, 121, 144, 0.6);
  transform: translateY(-3px);
}

.header__menu a:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/hero-bg.png") no-repeat center center;
  background-size: cover;
  backdrop-filter: blur(8px);
  z-index: 0;
  transform: scale(1.15);
  transition: transform 9s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero.active::before {
  transform: scale(1);
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  gap: 2rem;
}

.hero-content {
  flex: 0 0 65%;
  max-width: 700px;
}

.hero-image {
  flex: 0 0 35%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 1rem;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(98, 0, 128, 0.25);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.active .hero-image img {
  opacity: 1;
  transform: scale(1);
}

#typewriter-text {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content > p:nth-of-type(2) {
  color: #ffffff;
  font-size: 1rem;
  margin: 1.2rem 0 1.5rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

.tag {
  background: rgba(238, 225, 228, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f27990;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem;
  display: inline-block;
  transition: all 0.25s ease;
}

.tag:hover {
  background: rgba(238, 225, 228, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ff8fa3;
  cursor: pointer;
}

/* ========== ABOUT ========== */
.about-section {
  background: white;
  border-radius: 32px;
  padding: 60px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-text p:not(:first-child) {
  margin-top: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 24px;
}

/* ========== SOCIAL ========== */
.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.social a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--purple);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social a:hover {
  transform: translateY(-4px);
  background: var(--pink);
  color: white;
}

/* ========== PROJECTS ========== */
.projects-section {
  text-align: center;
  padding: 40px 0 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--purple);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--pink);
  margin: 16px auto;
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 50px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.project-card {
  background: linear-gradient(140deg, #5a1e78, #2d0a5e);
  border-radius: 24px;
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(242, 121, 144, 0.3);
}

.project-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.project-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
}

.project-card p {
  margin-bottom: 24px;
  opacity: 0.92;
  line-height: 1.7;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: white;
  font-weight: 600;
  text-decoration: none;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(98, 0, 128, 0.25);
  transition: background 0.3s;
}

.project-link:hover {
  background: rgba(242, 121, 144, 0.4);
}

/* ========== FOOTER ========== */
.footer {
  background: white;
  padding: 50px 0 30px;
  margin-top: 80px;
  border-top: 1px solid #eee;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  gap: 30px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple);
  text-decoration: none;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-email a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-email a:hover {
  color: var(--pink);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f3f7;
  color: var(--purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--pink);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 30px;
  text-align: center;
}

.footer-copyright {
  color: var(--purple);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    align-items: center;
    gap: 20px;
  }

  .footer-social {
    justify-content: center;
  }
}
/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    padding: 0 20px;
  }
  .hero-content {
    padding: 0 0 40px;
  }
  .hero-image {
    padding-left: 0;
    max-width: 400px;
    margin: 0 auto;
  }
  .about-section {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 24px;
  }

  .menu-toggle {
    display: block;
  }

  .header__menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(98, 0, 128, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    z-index: 999;
    display: none;
  }

  .header__menu.active {
    display: flex;
  }

  .header__menu li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    max-width: 260px;
    padding: 0;
  }

  .hero-content p:last-of-type,
  .hero-content .tags {
    margin: 0 auto;
  }

  .hero-content .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  #typewriter-text {
    font-size: 1.9rem;
  }

  .hero-content > p:nth-of-type(2) {
    font-size: 0.95rem;
    max-width: 90%;
  }

  .about-section {
    padding: 30px 20px;
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }
}