* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f7f3ff;
  color: #19162c;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 232, 0.75), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(217, 255, 244, 0.7), transparent 26%),
    radial-gradient(circle at 50% 90%, rgba(216, 227, 255, 0.75), transparent 32%);
  z-index: -3;
  animation: backgroundMove 12s ease-in-out infinite alternate;
}

body::after {
  content: "AI  CODE  DESIGN  IDEA";
  position: fixed;
  left: -40px;
  bottom: 20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(25, 22, 44, 0.035);
  white-space: nowrap;
  z-index: -2;
  pointer-events: none;
}

@keyframes backgroundMove {
  from {
    transform: scale(1) translateY(0);
  }

  to {
    transform: scale(1.08) translateY(-20px);
  }
}

.cursor-light {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 77, 255, 0.18), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

a {
  color: inherit;
}

.header {
  min-height: 100vh;
  padding: 24px 8%;
  position: relative;
}

.simple-header {
  min-height: auto;
  padding-bottom: 24px;
}

.header::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 9%;
  bottom: 10%;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd6e8, #d8e3ff);
  filter: blur(6px);
  opacity: 0.45;
  z-index: -1;
  animation: floatDecor 5s ease-in-out infinite;
}

.simple-header::after {
  display: none;
}

@keyframes floatDecor {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-24px) rotate(8deg);
  }
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  padding: 16px 24px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(80, 60, 140, 0.12);
  position: sticky;
  top: 18px;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.logo {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 900;
  color: #7b4dff;
  letter-spacing: -0.8px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: #232037;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  background: #7b4dff;
  border-radius: 999px;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #7b4dff;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-btn {
  display: none;
  border: none;
  background: #7b4dff;
  color: white;
  font-size: 24px;
  border-radius: 12px;
  padding: 6px 12px;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding: 90px 0 40px;
}

.label,
.project-tag,
.skills-heading span {
  display: inline-block;
  color: #5f4a82;
  background: rgba(123, 77, 255, 0.1);
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid rgba(123, 77, 255, 0.12);
}

.label {
  margin-bottom: 18px;
}

.dark-label {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
}

.hero h1,
.section-title h2,
.story-card h2,
.projects-hero h1 {
  background: linear-gradient(135deg, #19162c, #7b4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 750;
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.02;
  margin-bottom: 26px;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 760px;
  font-size: clamp(18px, 1.55vw, 21px);
  color: #4f4a66;
  margin-bottom: 18px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 800;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.btn:hover::before {
  left: 120%;
}

.primary {
  color: white;
  background: #7b4dff;
  box-shadow: 0 12px 25px rgba(123, 77, 255, 0.25);
}

.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(123, 77, 255, 0.35);
}

.secondary {
  color: #7b4dff;
  background: white;
  border: 2px solid rgba(123, 77, 255, 0.18);
}

.secondary:hover {
  transform: translateY(-4px);
}

.author-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border-radius: 34px;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(80, 60, 140, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
}

.author-card::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  background: #ffb7df;
  border-radius: 50%;
  top: -90px;
  right: -80px;
  opacity: 0.42;
}

.author-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: #d9fff4;
  border-radius: 50%;
  bottom: -65px;
  left: -60px;
  opacity: 0.55;
}

.author-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(80, 60, 140, 0.2);
}

.photo-frame {
  position: relative;
  z-index: 2;
  border-radius: 26px;
  padding: 6px;
  background: linear-gradient(135deg, #ff8bc4, #7b4dff, #66d9c2);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(123, 77, 255, 0.18);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.photo-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  border-radius: 20px;
  background: #ffffff;
}

.author-info {
  position: relative;
  z-index: 2;
  padding: 22px 8px 6px;
}

.author-info h2 {
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #3b4c88, #7b4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-info p {
  color: #56516d;
  font-size: 17px;
  line-height: 1.65;
}

.creative-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 22px 0;
  background: rgba(25, 22, 44, 0.06);
  padding: 12px;
  border-radius: 18px;
}

.creative-formula span {
  color: #19162c;
  font-weight: 900;
}

.creative-formula b {
  color: #7b4dff;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-tags span {
  background: #19162c;
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.3s;
}

.mini-tags span:hover {
  background: #7b4dff;
  transform: translateY(-3px);
}

main {
  padding: 0 8%;
}

section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -1px;
}

.story-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.story-card {
  background: #fffdf4;
  padding: 46px;
  border-radius: 34px;
  box-shadow: 0 18px 45px rgba(80, 60, 140, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.story-card h2 {
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.story-card p {
  font-size: 18px;
  color: #302c45;
  margin-bottom: 16px;
}

.story-side {
  display: grid;
  gap: 18px;
}

.side-item {
  background: white;
  padding: 28px;
  border-radius: 28px;
  box-shadow: 0 14px 35px rgba(80, 60, 140, 0.1);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.side-item::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  background: rgba(123, 77, 255, 0.12);
  border-radius: 50%;
  right: -35px;
  top: -35px;
  transition: 0.3s;
}

.side-item:hover {
  transform: translateX(8px);
}

.side-item:hover::after {
  transform: scale(1.4);
}

.side-item span {
  color: #7b4dff;
  font-size: 28px;
  font-weight: 900;
}

.side-item p {
  font-size: 18px;
  font-weight: 800;
  margin-top: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-box {
  background: white;
  padding: 28px;
  border-radius: 26px;
  box-shadow: 0 14px 35px rgba(80, 60, 140, 0.1);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.about-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.08), transparent);
  opacity: 0;
  transition: 0.3s;
}

.about-box:hover::before {
  opacity: 1;
}

.about-box h3 {
  font-size: 22px;
  margin-bottom: 12px;
  position: relative;
  color: #19162c;
}

.about-box p {
  color: #625d78;
  position: relative;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(80, 60, 140, 0.12);
  transition: 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 2px solid transparent;
  transition: 0.3s;
  pointer-events: none;
}

.project-card:hover {
  box-shadow: 0 24px 60px rgba(80, 60, 140, 0.2);
}

.project-card:hover::after {
  border-color: rgba(123, 77, 255, 0.28);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-image {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-card {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ffffff;
  transition: 0.5s ease;
}

.weather {
  background: linear-gradient(135deg, #cde7ff, #fff1a8);
}

.room {
  background: linear-gradient(135deg, #ffd6e8, #e5d4ff);
}

.code {
  background: linear-gradient(135deg, #d9fff4, #d8e3ff);
}

.timer {
  background: linear-gradient(135deg, #f7d8ff, #d8e3ff);
}

.lottery {
  background: linear-gradient(135deg, #ffe2c4, #ffd6e8);
}

.outfit {
  background: linear-gradient(135deg, #f6d6ff, #ffe7f3);
}

.kitty {
  background: linear-gradient(135deg, #ffd6e8, #fff3c9);
}

.dont-click {
  background: linear-gradient(135deg, #19162c, #7b4dff);
}

.project-content {
  padding: 26px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.project-tag {
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  width: fit-content;
}

.project-content h3 {
  font-size: 24px;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  color: #19162c;
}

.project-content p {
  color: #625d78;
  margin-bottom: 18px;
}

.project-content ul {
  list-style: none;
  margin-bottom: 22px;
}

.project-content li {
  padding: 7px 0;
  color: #353047;
}

.project-content li::before {
  content: "✨ ";
}

.project-link {
  width: 100%;
  margin-top: auto;
  border: none;
  background: #19162c;
  color: white;
  padding: 14px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
}

.project-link::after {
  content: " →";
  opacity: 0;
  transform: translateX(-8px);
  display: inline-block;
  transition: 0.3s;
}

.project-link:hover {
  background: #7b4dff;
  transform: translateY(-3px);
}

.project-link:hover::after {
  opacity: 1;
  transform: translateX(4px);
}

.more-projects-wrap {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.more-projects-btn {
  font-size: 18px;
  padding-inline: 30px;
}

.ai-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255, 183, 223, 0.18), transparent 35%),
    #19162c;
  color: white;
  border-radius: 38px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: rgba(123, 77, 255, 0.35);
  border-radius: 50%;
  right: -90px;
  bottom: -90px;
  filter: blur(8px);
}

.ai-text,
.ai-list {
  position: relative;
  z-index: 2;
}

.ai-text h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff, #ffb7df, #d8e3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 750;
}

.ai-text p {
  color: #ddd8f2;
}

.ai-list {
  display: grid;
  gap: 18px;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.08);
  padding: 20px 96px 20px 20px;
  border-radius: 20px;
  transition: 0.35s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  min-height: 86px;
  overflow: visible;
}

.ai-step:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.14);
}

.ai-step span {
  color: #ffb7df;
  font-size: 26px;
  font-weight: 900;
  flex-shrink: 0;
}

.ai-step p {
  color: #f4f0ff;
  margin: 0;
  position: relative;
  z-index: 2;
}

.ai-step::after {
  content: attr(data-bot);
  position: absolute;
  right: 78px;
  top: 8px;
  max-width: 170px;
  background: #ffffff;
  color: #19162c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding: 10px 12px;
  border-radius: 16px 16px 8px 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateX(12px) translateY(6px) scale(0.96);
  transition: 0.35s ease;
  pointer-events: none;
  z-index: 4;
}

.ai-step:hover::after {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

.mini-bot {
  position: absolute;
  right: 16px;
  bottom: 10px;
  width: 62px;
  height: 62px;
  background-image: url("robot.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  box-shadow: none;
  opacity: 0;
  transform: translateX(16px) translateY(4px) rotate(6deg) scale(0.92);
  transition: 0.35s ease;
  z-index: 3;
  pointer-events: none;
}

.mini-bot::before,
.mini-bot::after {
  display: none;
  content: none;
}

.ai-step:hover .mini-bot {
  opacity: 1;
  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
}

.skills-block {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
  border-radius: 30px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 14px 35px rgba(80, 60, 140, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.skills-heading {
  margin-bottom: 20px;
}

.skills-heading span {
  margin-bottom: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.skills-heading h3 {
  font-size: 28px;
  background: linear-gradient(135deg, #19162c, #7b4dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill {
  background: white;
  color: #7b4dff;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(80, 60, 140, 0.1);
  transition: 0.3s;
  cursor: default;
}

.skill:hover {
  transform: translateY(-6px) rotate(-1deg);
  background: #19162c;
  color: white;
}

.ai-skill {
  background: #7b4dff;
  color: white;
}

.ai-skill:hover {
  background: #ff8bc4;
  color: #19162c;
}

.end-section {
  text-align: center;
  padding: 120px 0 110px;
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.end-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50px;
  transform: translateX(-50%);
  width: min(520px, 80%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #7b4dff, transparent);
}

.end-section p {
  grid-area: 1 / 1;
  color: #7b4dff;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  max-width: min(760px, 92vw);
  line-height: 1.12;
  transform: translateY(-95px) scale(0.8);
  opacity: 0.82;
  transition:
    transform 0.42s cubic-bezier(.2,.9,.2,1),
    opacity 0.25s ease,
    letter-spacing 0.42s ease,
    color 0.42s ease;
}

.end-section h2 {
  grid-area: 1 / 1;
  font-size: clamp(78px, 16vw, 190px);
  line-height: 0.9;
  letter-spacing: -8px;
  color: #19162c;
  margin: 0;
  text-shadow:
    4px 4px 0 #ffb7df,
    8px 8px 0 rgba(123, 77, 255, 0.18);
  transition:
    transform 0.32s cubic-bezier(.2,.9,.2,1),
    opacity 0.25s ease;
  cursor: default;
}

.end-section:hover h2 {
  opacity: 0;
  transform: translateX(115%) rotate(6deg);
}

.end-section:hover p {
  color: #19162c;
  opacity: 1;
  letter-spacing: 0.5px;
  transform: translateY(0) scale(1.38);
}

.projects-page-main {
  padding-top: 24px;
}

.projects-hero {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 54px;
}

.projects-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -1.6px;
}

.projects-hero p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #625d78;
  font-size: clamp(17px, 1.5vw, 20px);
}

.back-link {
  margin-bottom: 28px;
}

.all-projects {
  padding-top: 30px;
}

.all-projects .project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  text-align: center;
  padding: 28px 8%;
  color: #625d78;
}

@media (max-width: 1200px) {
  .all-projects .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .hero,
  .story-section,
  .ai-section {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .project-grid,
  .all-projects .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .photo-frame img {
    max-height: 380px;
  }
}

@media (max-width: 950px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: white;
    border-radius: 22px;
    padding: 20px;
    flex-direction: column;
    box-shadow: 0 15px 30px rgba(80, 60, 140, 0.15);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .ai-section {
    padding: 34px;
  }
}

@media (max-width: 640px) {
  .about-grid,
  .project-grid,
  .all-projects .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header,
  main {
    padding-left: 5%;
    padding-right: 5%;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    text-align: center;
    width: 100%;
  }

  section {
    padding: 60px 0;
  }

  .story-card {
    padding: 30px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 17px;
  }

  .project-image {
    height: 230px;
  }

  .photo-frame img {
    max-height: 300px;
  }

  .ai-step {
    padding-right: 20px;
  }

  .ai-step::after,
  .mini-bot {
    display: none;
  }

  .end-section {
    min-height: 280px;
  }

  .end-section h2 {
    letter-spacing: -4px;
  }

  .end-section:hover p {
    transform: translateY(0) scale(1.08);
  }
}