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

:root {
  --bg: #07070f;
  --bg2: #0d0d18;
  --surface: #12121e;
  --border: #1a1a2e;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --text: #e2e2f0;
  --muted: #7777aa;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── CURSOR GLOW ── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: transform 0.05s linear;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(7,7,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108,99,255,0.15);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(108,99,255,0.5));
  transition: filter 0.3s;
}
.nav-logo:hover { filter: drop-shadow(0 0 14px rgba(167,139,250,0.8)); }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent2);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.btn-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem !important;
  box-shadow: 0 0 20px rgba(108,99,255,0.35);
  transition: box-shadow 0.3s, transform 0.2s !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover {
  box-shadow: 0 0 32px rgba(108,99,255,0.6) !important;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  z-index: 2;
}
.hero::before {
  content: '';
  position: absolute;
  top: 20%; right: 10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(108,99,255,0.1) 0%, transparent 65%);
  border-radius: 50%;
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}
.hero-text { flex: 1; }

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,99,255,0.12);
  color: var(--accent2);
  border: 1px solid rgba(108,99,255,0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fade-down 0.6s ease both;
}
.badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--accent2);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  animation: fade-up 0.7s 0.1s ease both;
}
.accent {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 36px;
  animation: fade-up 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fade-up 0.7s 0.3s ease both;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 13px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 24px rgba(108,99,255,0.4);
  transition: box-shadow 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover { box-shadow: 0 6px 36px rgba(108,99,255,0.65); transform: translateY(-2px); }
.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 13px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(108,99,255,0.2);
  transform: translateY(-2px);
}

/* SOCIALS */
.socials {
  display: flex;
  gap: 12px;
  animation: fade-up 0.7s 0.4s ease both;
}
.socials a {
  color: var(--muted);
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: var(--surface);
}
.socials a svg { width: 18px; height: 18px; }
.socials a iconify-icon { font-size: 1.2rem; line-height: 1; }
.socials a:hover {
  color: var(--accent2);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108,99,255,0.3);
}

/* HERO PHOTO */
.hero-photo {
  flex-shrink: 0;
  animation: fade-left 0.8s 0.2s ease both;
  position: relative;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent3), var(--accent2), var(--accent));
  animation: spin 6s linear infinite;
  z-index: -1;
  opacity: 0.6;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--bg);
  z-index: -1;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ── */
.section {
  padding: 90px 24px;
  position: relative;
  z-index: 2;
}
.section-alt { background: var(--bg2); }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 28px;
  display: inline-block;
}
.section-title span {
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  border-radius: 2px;
  margin-top: 10px;
}
.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.85;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.skill-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108,99,255,0.15);
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon { font-size: 2.2rem; margin-bottom: 14px; }
.skill-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.skill-card ul { list-style: none; }
.skill-card ul li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.skill-card ul li::before {
  content: '▸';
  color: var(--accent2);
  font-size: 0.75rem;
}
.skill-card:hover ul li { color: var(--text); }
.skill-card ul li:last-child { border-bottom: none; }
.li-icon { font-size: 1rem; flex-shrink: 0; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(108,99,255,0.2);
}
.contact-card:hover::after { opacity: 1; }
.contact-icon { font-size: 1.5rem; line-height: 1; }

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 2;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(108,99,255,0.4));
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.footer-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, transform 0.2s;
}
.footer-links a iconify-icon { font-size: 1rem; }
.footer-links a:hover { color: var(--text); transform: translateX(4px); }
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.83rem;
}
.footer-bottom strong { color: var(--accent2); }
.footer-made {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-made iconify-icon { font-size: 1rem; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── KEYFRAMES ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-left {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  z-index: 201;
  position: relative;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(7,7,15,0.97);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 24px;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 320px;
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  transform: translateY(20px);
  opacity: 0;
  transition: border-color 0.2s, transform 0.4s, opacity 0.4s, box-shadow 0.2s;
}
.mobile-link iconify-icon { font-size: 1.3rem; color: var(--accent2); }
.mobile-menu.open .mobile-link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.2);
}
.mobile-cv {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(167,139,250,0.1));
  border-color: rgba(108,99,255,0.3);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; gap: 36px; }
  .hero-photo img { width: 200px; height: 200px; }
  .hero-photo::before { inset: -10px; }
  .hero-desc { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .socials { justify-content: center; }
}
