* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: #ffffff;
  line-height: 1.7;
  background: linear-gradient(135deg, #0a0a23, #1a0b3b, #0b2a4a, #2a0b3b);
  background-size: 400% 400%;
  animation: bgmove 15s ease infinite;
  min-height: 100vh;
}
@keyframes bgmove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

nav {
  position: fixed; top: 0; left: 0; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 6%;
  background: rgba(10,10,35,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  z-index: 100;
}
.logo { font-size: 1.4rem; font-weight: 800; color: #00d4ff; text-decoration: none; }
nav ul { display: flex; gap: 24px; list-style: none; }
nav ul a { color: #cfd2ff; text-decoration: none; transition: color .3s; }
nav ul a:hover { color: #ff4fd8; }

section { padding: 110px 6% 50px; max-width: 1150px; margin: 0 auto; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.hero-text { flex: 1; }
.badge {
  display: inline-block; width: fit-content;
  padding: 6px 16px; border: 1px solid #00d4ff; border-radius: 999px;
  color: #00d4ff; margin-bottom: 20px; font-size: .9rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.2; }
.grad {
  background: linear-gradient(90deg, #7c5cff, #00d4ff, #ff4fd8, #7c5cff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 300% 0; } }
.tagline { font-size: 1.5rem; color: #00d4ff; margin: 14px 0; }
.sub { max-width: 620px; color: #c8cbe8; margin-bottom: 28px; }

/* Hero photo */
.hero-photo { flex: 0 0 auto; }
.photo-frame {
  width: 340px; height: 340px; border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #7c5cff, #00d4ff, #ff4fd8);
  box-shadow: 0 0 50px rgba(0,212,255,.45), 0 0 90px rgba(124,92,255,.35);
  animation: pulse 4s ease-in-out infinite;
}
.photo-frame img {
  width: 100%; height: 100%; border-radius: 50%;
  object-position: center 35%;
  object-fit: cover; display: block;
  border: 4px solid #0a0a23;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(0,212,255,.4), 0 0 80px rgba(124,92,255,.3); }
  50% { box-shadow: 0 0 60px rgba(255,79,216,.45), 0 0 100px rgba(0,212,255,.35); }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 30px; margin: 6px 12px 6px 0;
  border-radius: 12px; text-decoration: none; font-weight: 700; color: #fff;
  transition: transform .3s, box-shadow .3s;
}
.btn.primary { background: linear-gradient(135deg, #7c5cff, #00d4ff); box-shadow: 0 8px 30px rgba(124,92,255,.5); }
.btn.ghost { border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 40px rgba(0,212,255,.5); }

/* Titles */
h2.title { font-size: 2.2rem; margin-bottom: 8px; }
.line { width: 80px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #7c5cff, #00d4ff); margin-bottom: 36px; }
.sub-title { margin: 36px 0 16px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px; padding: 28px;
  transition: transform .4s, border-color .4s, box-shadow .4s, background .4s;
  animation: pop 0.8s ease both;
}
@keyframes pop { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #00d4ff;
  background: rgba(0,212,255,0.12);
  box-shadow: 0 15px 45px rgba(0,212,255,.35);
}
.icon { font-size: 2.4rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; color: #ffffff; }
.card p { color: #c8cbe8; font-size: .95rem; margin-bottom: 6px; }

.tag {
  display: inline-block; margin: 6px 6px 0 0; padding: 3px 12px;
  font-size: .8rem; border-radius: 999px;
  background: rgba(0,212,255,.18); color: #00d4ff;
}
.demo-tag {
  display: inline-block; margin-bottom: 10px; padding: 3px 12px;
  font-size: .75rem; border-radius: 999px;
  background: rgba(255,79,216,.18); color: #ff4fd8;
}

/* About */
.about-card { display: flex; align-items: center; gap: 28px; }
.about-img {
  width: 130px; height: 130px; border-radius: 50%;
  object-position: center 35%;
  object-fit: cover; flex: 0 0 auto;
  border: 3px solid #00d4ff;
  box-shadow: 0 0 25px rgba(0,212,255,.45);
}

/* Tools */
.tools { display: flex; flex-wrap: wrap; gap: 12px; }
.tools span {
  padding: 10px 20px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  transition: transform .3s, border-color .3s;
}
.tools span:hover { transform: translateY(-6px) rotate(-3deg); border-color: #ff4fd8; }

/* Contact */
.contact-box { text-align: center; padding: 50px 24px; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 26px; }
.contacts a {
  padding: 14px 26px; border-radius: 12px; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  transition: transform .3s, border-color .3s, background .3s;
}
.contacts a:hover { transform: translateY(-6px); border-color: #00d4ff; background: rgba(0,212,255,.2); }

footer { text-align: center; padding: 30px; color: #aab; border-top: 1px solid rgba(255,255,255,.15); }

/* Minimal mouse effect */
#glow {
  position: fixed; width: 80px; height: 80px; border-radius: 50%;
  pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(0,212,255,0.12), transparent 70%);
  transform: translate(-50%, -50%);
  left: -300px; top: -300px;
}
.spark {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  background: #00d4ff; box-shadow: 0 0 5px #00d4ff;
  transform: translate(-50%, -50%);
  animation: spark .45s forwards;
}
@keyframes spark { to { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

/* Mobile */
@media (max-width: 860px) {
  nav ul { display: none; }
  .hero { flex-direction: column-reverse; text-align: center; justify-content: center; padding-top: 120px; }
  .photo-frame { width: 240px; height: 240px; }
  .about-card { flex-direction: column; text-align: center; }
}