/* ===========================
   VARIABLES & RESET
=========================== */
:root {
  --bg: #07070f;
  --bg2: #0d0d1a;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);

  --grad-a: #f97316;   /* orange */
  --grad-b: #ec4899;   /* pink */
  --grad-c: #8b5cf6;   /* violet */
  --grad-d: #06b6d4;   /* cyan */

  --text: #f0f0f8;
  --text-muted: #7a7a9a;
  --white: #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; user-select: none; }

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===========================
   CANVAS BACKGROUND
=========================== */
#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ===========================
   GRADIENT TEXT UTILITY
=========================== */
.grad-text {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b), var(--grad-c), var(--grad-d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 4rem 4rem;
  gap: 3rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.2); opacity: 1; }
}

.hero-content {
  flex: 1;
  max-width: 640px;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 40%, var(--grad-c) 70%, var(--grad-d) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  background-size: 200% 200%;
  animation: gradShift 5s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.role-chip {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.role-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(139,92,246,0.15));
  opacity: 0;
  transition: opacity var(--transition);
}

.role-chip:hover::before { opacity: 1; }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: var(--white);
  box-shadow: 0 0 30px rgba(249,115,22,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(249,115,22,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(249,115,22,0.5);
  color: var(--grad-a);
  transform: translateY(-2px);
}

/* ===========================
   HERO AVATAR
=========================== */
.hero-visual {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-ring {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-inner {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b), var(--grad-c));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 60px rgba(249,115,22,0.4);
}

.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.avatar-fallback {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--white);
  line-height: 1;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: spin linear infinite;
}

.ring-1 {
  width: 210px; height: 210px;
  border-top-color: var(--grad-a);
  border-right-color: transparent;
  border-bottom-color: var(--grad-b);
  border-left-color: transparent;
  animation-duration: 4s;
}

.ring-2 {
  width: 245px; height: 245px;
  border-top-color: var(--grad-c);
  border-right-color: var(--grad-d);
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation-duration: 7s;
  animation-direction: reverse;
}

.ring-3 {
  width: 278px; height: 278px;
  border-top-color: transparent;
  border-right-color: var(--grad-b);
  border-bottom-color: var(--grad-a);
  border-left-color: transparent;
  animation-duration: 10s;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   SECTIONS
=========================== */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grad-b);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 3rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  margin-top: -2rem;
}

/* ===========================
   ABOUT CARDS
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(249,115,22,0.1);
}

.about-card:hover::before { transform: scaleX(1); }

.about-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===========================
   FUNTUBE STUDIOS
=========================== */
.funtube-section {
  max-width: 100%;
  padding: 6rem 4rem;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,0.04), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.funtube-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.funtube-logo-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

.logo-placeholder {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  transition: border-color var(--transition);
}

.logo-placeholder:hover { border-color: rgba(249,115,22,0.4); }

.funtube-logo { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }

.logo-text-fallback {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--grad-c), var(--grad-d));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.funtube-badge {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--grad-c), var(--grad-d));
  color: var(--white);
  box-shadow: 0 0 20px rgba(139,92,246,0.4);
}

.funtube-functions { flex: 1; min-width: 280px; }

.funtube-functions h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 2rem;
}

.function-list { display: flex; flex-direction: column; gap: 1.5rem; }

.function-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.4rem;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.function-item:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateX(6px);
  background: rgba(139,92,246,0.06);
}

.function-icon { font-size: 1.8rem; flex-shrink: 0; }

.function-item strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 0.3rem;
}

.function-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===========================
   SKILLS
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  overflow: hidden;
  position: relative;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(139,92,246,0.06));
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-card:hover { transform: translateY(-6px); border-color: rgba(236,72,153,0.3); }
.skill-card:hover::after { opacity: 1; }

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-icon { font-size: 2rem; }

.skill-tag {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(236,72,153,0.15);
  border: 1px solid rgba(236,72,153,0.3);
  color: var(--grad-b);
}

.skill-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  position: relative;
  z-index: 1;
}

.skill-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.skill-bar {
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--grad-c));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   LOGOS GRID
=========================== */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.logo-card:hover {
  border-color: rgba(249,115,22,0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.logo-card img { width: 64px; height: 64px; object-fit: contain; }
.logo-card span { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-head); font-weight: 600; }

.placeholder-card { border-style: dashed; }

.logo-placeholder-icon {
  font-size: 2rem;
  color: var(--text-muted);
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

/* ===========================
   CONTACT
=========================== */
.contact-section {
  text-align: center;
  max-width: 100%;
  padding: 6rem 4rem;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  margin-top: -1rem;
}

.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.contact-btn {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.contact-btn:hover {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(249,115,22,0.3);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 4rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer strong { color: var(--text); }
.footer-sub { font-size: 0.8rem; margin-top: 0.3rem; opacity: 0.5; }

/* ===========================
   REVEAL ANIMATIONS
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .navbar { padding: 1rem 2rem; }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: rgba(7,7,15,0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 5rem 2.5rem 2.5rem;
    gap: 2rem;
    z-index: 99;
    align-items: flex-start;
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-burger { display: flex; }

  .hero {
    flex-direction: column;
    padding: 7rem 2rem 4rem;
    text-align: center;
  }

  .hero-roles { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .avatar-ring { width: 220px; height: 220px; }
  .avatar-inner { width: 140px; height: 140px; }

  .section { padding: 4rem 2rem; }
  .funtube-section { padding: 4rem 2rem; }
  .contact-section { padding: 4rem 2rem; }

  .funtube-wrapper { flex-direction: column; align-items: center; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 4.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
