/* ============================
   VARIABLES & RESET
   ============================ */
:root {
  --bg: #080b12;
  --bg2: #0d1220;
  --surface: #111827;
  --surface2: #1a2236;
  --border: rgba(255,255,255,0.07);
  --accent: #4f8cff;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --wa: #25d366;
  --text: #f0f4ff;
  --text-muted: #8899bb;
  --text-dim: #4a5578;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ============================
   NOISE & CURSOR
   ============================ */
.noise {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.cursor {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
  mix-blend-mode: screen;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(79,140,255,0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9997;
  transform: translate(-50%, -50%);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================
   NAVIGATION
   ============================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.2rem 5vw;
  z-index: 1000;
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 5vw;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1px;
  margin-right: auto;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; list-style: none; gap: 2rem;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: #fff; text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #3a6fd8; transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--bg); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.mobile-menu a {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu.open { display: flex; }

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 6rem 5vw 4rem;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.15;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: -200px; right: -100px;
}
.blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent2), transparent);
  bottom: -150px; left: -50px;
  animation-delay: -4s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,15px) scale(0.97); }
}

.grid-lines {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(79,140,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,140,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  max-width: 1200px; margin: 0 auto; width: 100%;
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.3);
  color: var(--accent3);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.2s both;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.line-wrap { display: block; overflow: hidden; }
.line {
  display: block;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.line:nth-child(1) { animation-delay: 0.3s; }
.line-wrap:nth-child(2) .line { animation-delay: 0.45s; }
.line-wrap:nth-child(3) .line { animation-delay: 0.6s; }
.name-line { color: var(--accent); }

@keyframes slideUp {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  color: var(--text-muted); font-size: 1.05rem; line-height: 1.8;
  max-width: 480px; margin-bottom: 2rem;
  animation: fadeUp 0.8s 0.7s both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.9s both;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff; text-decoration: none;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 500;
  transition: all 0.3s;
  border: none; cursor: pointer; font-family: var(--font-body);
}
.btn-primary:hover {
  background: #3a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79,140,255,0.4);
}
.btn-primary.full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 400;
  transition: all 0.3s;
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* HERO PHOTO */
.hero-photo {
  position: relative; display: flex;
  justify-content: center; align-items: center;
  animation: fadeUp 1s 0.5s both;
}

.photo-frame {
  position: relative; width: 340px; height: 340px;
}
.photo-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.profile-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.photo-placeholder {
  flex-direction: column; gap: 12px;
  color: var(--text-muted); text-align: center;
  font-size: 0.8rem; display: none; padding: 2rem;
}

.photo-ring {
  position: absolute; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  border: 1px solid;
}
.photo-ring-1 {
  width: 370px; height: 370px;
  border-color: rgba(79,140,255,0.2);
  animation: spinRing 12s linear infinite;
}
.photo-ring-2 {
  width: 420px; height: 420px;
  border-color: rgba(167,139,250,0.12);
  animation: spinRing 20s linear infinite reverse;
  border-style: dashed;
}
@keyframes spinRing {
  from { transform: translate(-50%,-50%) rotate(0deg); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}

.float-card {
  position: absolute;
  background: rgba(17,24,39,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  z-index: 5;
  animation: floatY 4s ease-in-out infinite;
}
.card-1 { top: 30px; right: -20px; animation-delay: 0s; }
.card-2 { bottom: 60px; left: -20px; animation-delay: -2s; }
.card-3 {
  top: 50%; right: -40px; transform: translateY(-50%);
  flex-direction: column; text-align: center;
  padding: 14px 20px; animation-delay: -1s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.card-3 { animation: floatY2 4s ease-in-out infinite; }
@keyframes floatY2 {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

.fc-icon { font-size: 1.4rem; }
.fc-label { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; }
.fc-sub { font-size: 0.72rem; color: var(--text-muted); }
.stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; animation: fadeUp 1s 1.2s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50% { transform: scaleY(0.5); }
}

/* ============================
   CONTAINER
   ============================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }

section { padding: 7rem 0; }

.section-label {
  font-family: var(--font-head); font-size: 0.8rem;
  color: var(--accent); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 1rem;
  opacity: 0; transform: translateY(20px);
  transition: all 0.6s;
}
.section-label.visible { opacity: 1; transform: none; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 2rem;
}
.section-title.center { text-align: center; }
.section-title em { font-style: normal; color: var(--accent); }

/* ============================
   ABOUT
   ============================ */
.about { background: var(--bg2); }

.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: start; margin-top: 2rem; }

.about-left p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.9; }

.about-stats {
  display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.stat-box {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.2rem 1.5rem; border-radius: var(--radius);
  min-width: 110px;
}
.stat-big {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: var(--accent); line-height: 1;
}
.stat-box span:last-child { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* TIMELINE */
.timeline { padding-left: 1rem; }
.tl-item {
  position: relative; padding-left: 2rem; padding-bottom: 2.5rem;
  border-left: 1px solid var(--border);
}
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-dot {
  position: absolute; left: -5px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79,140,255,0.15);
}
.tl-year { font-size: 0.78rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.tl-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.tl-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ============================
   SKILLS
   ============================ */
.skills { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0; transform: translateY(30px);
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover { transform: translateY(-8px); border-color: rgba(79,140,255,0.3); }
.skill-card:hover::before { opacity: 0.03; }
.skill-card.visible { opacity: 1; transform: translateY(0); }

.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-card h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.skill-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span {
  background: rgba(79,140,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(79,140,255,0.2);
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.75rem;
}

/* ============================
   PORTFOLIO
   ============================ */
.portfolio-sec { background: var(--bg2); }

.filter-tabs {
  display: flex; gap: 0.75rem; justify-content: center;
  margin: 2rem 0 3rem; flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.5rem; border-radius: 50px;
  font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-empty {
  grid-column: 1/-1; text-align: center;
  padding: 5rem 2rem; color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.portfolio-empty a { color: var(--accent); }

.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.portfolio-item:hover { transform: translateY(-6px); border-color: rgba(79,140,255,0.3); }
.portfolio-item img {
  width: 100%; height: 200px; object-fit: cover;
  background: var(--surface2);
}
.portfolio-item-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.portfolio-info { padding: 1.5rem; }
.portfolio-cat {
  font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 6px;
}
.portfolio-info h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.portfolio-info p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.portfolio-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 0.82rem;
  text-decoration: none; margin-top: 1rem;
  transition: gap 0.2s;
}
.portfolio-link:hover { gap: 10px; }

/* ============================
   CONTACT
   ============================ */
.contact { background: var(--bg); }
.contact-sub {
  text-align: center; color: var(--text-muted);
  max-width: 500px; margin: 0 auto 3rem;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 3rem; align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: rgba(79,140,255,0.3); }
.cc-icon { font-size: 1.5rem; }
.cc-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2px; }
.cc-value { font-weight: 500; text-decoration: none; color: var(--text); transition: color 0.2s; }
a.cc-value:hover { color: var(--accent); }

.wa-big-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--wa);
  color: #fff; text-decoration: none;
  padding: 1.1rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  transition: all 0.3s; margin-top: 0.5rem;
}
.wa-big-btn:hover {
  background: #1db954;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.3);
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.05em; }
.form-group input, .form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-dim);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer-content {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800;
}
.footer-logo span { color: var(--accent); }
.footer-content p { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.85rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ============================
   WA FLOAT
   ============================ */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 60px; height: 60px;
  background: var(--wa);
  border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: all 0.3s;
  animation: waFloat 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 36px rgba(37,211,102,0.5);
}
@keyframes waFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-tooltip {
  position: absolute; right: 70px;
  background: var(--surface); color: var(--text);
  padding: 5px 12px; border-radius: 8px;
  font-size: 0.8rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-photo { display: none; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-content { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .photo-frame { width: 260px; height: 260px; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.7rem; }
}
