:root {
  --bg: #0a0e27;
  --card: #1a1f3a;
  --muted: rgba(255, 255, 255, 0.75);
  --accent: #00d4ff;
  --accent-2: #7c3aed;
  --accent-3: #ec4899;
  --glass: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max: 1320px;
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3),
      0 8px 32px rgba(0, 212, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5),
      0 8px 32px rgba(0, 212, 255, 0.2);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #e6eef8;
  background: linear-gradient(135deg, #0a0e27 0%, #1a0f3a 50%, #0d1428 100%);
  position: relative;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 28px;
}

.nav {
  position: sticky;
  top: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.8),
    rgba(10, 14, 39, 0.5)
  );
  backdrop-filter: blur(12px);
  z-index: 40;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  animation: slideInLeft 0.6s ease-out;
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand a {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: 0.3s ease;
}

.brand a:hover {
  transform: scale(1.05);
}

.brand .muted {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.links a {
  margin-left: 18px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #00d4ff;
}

.links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7c3aed);
  transition: width 0.3s ease;
}

.links a:hover::after {
  width: 100%;
}

.hero {
  padding: 80px 0;
  animation: fadeInUp 0.8s ease-out;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-left h1 {
  font-size: 2.8rem;
  margin: 0;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-left h1 .accent {
  background: linear-gradient(135deg, #00d4ff, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
}

.lead {
  margin: 0.8rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.meta {
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.65);
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.cta-row {
  margin-top: 24px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  padding: 12px 24px;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
  margin-right: 12px;
  margin-bottom: 12px;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.4);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #00d4ff;
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.quick {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  color: var(--muted);
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.quick li {
  margin: 8px 0;
  transition: 0.3s ease;
}

.quick li:hover {
  transform: translateX(8px);
  color: #00d4ff;
}

.quick a {
  color: #00d4ff;
  text-decoration: none;
  transition: 0.3s ease;
}

.quick a:hover {
  text-decoration: underline;
}

.hero-card {
  background: linear-gradient(
    135deg,
    rgba(26, 31, 58, 0.8),
    rgba(124, 58, 237, 0.1)
  );
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
  min-height: 320px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards,
    float 3s ease-in-out 0.8s infinite;
}

.photo-placeholder img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  align-self: center;
}

.photo-placeholder img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.hero-stats div {
  flex: 1;
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 16px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-stats div:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.2),
    rgba(124, 58, 237, 0.15)
  );
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.hero-stats .num {
  font-weight: 700;
  font-size: 2rem;
  color: #00d4ff;
  line-height: 1;
  margin-bottom: 8px;
}

.sublabel {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.card {
  background: linear-gradient(
    135deg,
    rgba(26, 31, 58, 0.7),
    rgba(124, 58, 237, 0.05)
  );
  padding: 40px;
  border-radius: var(--radius);
  margin: 28px 0;
  border: 1px solid rgba(0, 212, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease-out 0.15s backwards;
}

#about {
  animation-delay: 0.15s;
}

#skills {
  animation-delay: 0.3s;
}

#projects {
  animation-delay: 0.45s;
}

#contact {
  animation-delay: 0.6s;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.card h2 {
  background: linear-gradient(135deg, #00d4ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0;
}

.row {
  display: flex;
  gap: 32px;
}
.col {
  flex: 1;
}

.timeline {
  padding-left: 0;
  list-style: none;
}

.timeline li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.timeline li:hover {
  padding-left: 12px;
  color: #00d4ff;
}

.timeline li:last-child {
  border-bottom: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  padding: 20px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(124, 58, 237, 0.15)
  );
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
}

.skill strong {
  color: #00d4ff;
  display: block;
  margin-bottom: 8px;
}

.skill span {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.project {
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    135deg,
    rgba(26, 31, 58, 0.8),
    rgba(124, 58, 237, 0.1)
  );
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out backwards;
}

.project:nth-child(1) {
  animation-delay: 0.5s;
}

.project:nth-child(2) {
  animation-delay: 0.6s;
}

.project:nth-child(3) {
  animation-delay: 0.7s;
}

.project:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.2);
}

.thumb {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.project:hover .thumb {
  transform: scale(1.05);
}

.p-body {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.p-body h3 {
  margin: 0 0 8px;
  color: #fff;
}
.p-body p {
  flex-grow: 1;
}
.p-body .muted {
  color: rgba(0, 212, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.p-footer {
  margin-top: auto;
}

.more-links {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08),
    rgba(124, 58, 237, 0.08)
  );
  padding: 20px;
  border-radius: 14px;
  margin-top: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.more-links h4 {
  color: #00d4ff;
  margin-top: 0;
}

.more-links ul {
  list-style: none;
  padding-left: 0;
}

.more-links li {
  margin: 8px 0;
}

.more-links a {
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.more-links a:hover {
  color: #00d4ff;
}

.more-links a::before {
  content: "→ ";
  margin-right: 8px;
  opacity: 0;
  transition: all 0.3s ease;
}

.more-links a:hover::before {
  opacity: 1;
  margin-right: 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.contact-grid > div {
  background: rgba(0, 212, 255, 0.08);
  padding: 28px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-grid > div:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
}

.contact-grid a {
  color: #00d4ff;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-block;
}

.contact-grid a:hover {
  text-decoration: underline;
  transform: translateX(8px);
  color: #00d4ff;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #fff;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 212, 255, 0.05);
  color: #fff;
  transition: all 0.3s ease;
  font-family: inherit;
  margin-bottom: 12px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.footer {
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  padding: 24px 0;
  margin-top: 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.social a:hover {
  color: #00d4ff;
  transform: translateY(-3px);
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100;
  animation: fadeInUp 0.3s ease-out;
}

.modal.show {
  display: flex;
  animation: fadeInUp 0.3s ease-out;
}

.modal-inner {
  background: linear-gradient(
    135deg,
    rgba(26, 31, 58, 0.95),
    rgba(124, 58, 237, 0.15)
  );
  padding: 32px;
  border-radius: 18px;
  max-width: 820px;
  width: 94%;
  color: var(--muted);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
  animation: fadeInUp 0.3s ease-out;
}

.modal-inner h3 {
  color: #00d4ff;
  margin-top: 0;
}

.close {
  float: right;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: #00d4ff;
  transform: rotate(90deg);
}

/* responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .row {
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-left h1 {
    font-size: 2.2rem;
  }
  .card {
    padding: 20px;
  }
}
