:root {
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
}

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

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2563eb; }

body {
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -10;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: blobFloat 12s ease-in-out infinite alternate;
}
.blob-top {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -10%;
  left: -10%;
}
.blob-bottom {
  width: 500px;
  height: 500px;
  background: #3b82f6;
  bottom: -10%;
  right: -10%;
}
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.dark .navbar {
  background: rgba(10,10,20,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.7rem;
  font-weight: 800;
  text-decoration: none;
  color: #0f172a;
  letter-spacing: -0.5px;
}
.dark .logo {
  color: #f1f5f9;
}
.logo-dot {
  color: var(--primary);
}
.nav-links {
  display: none;
  gap: 32px;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-link {
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  position: relative;
  transition: color 0.3s;
  font-size: 0.95rem;
}
.dark .nav-link {
  color: #94a3b8;
}
.nav-link:hover {
  color: var(--primary);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
}
.dark .theme-btn {
  background: #1e293b;
}
.theme-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}
.theme-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.dark .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}
.moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}
.dark .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 40px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
}
.hero-content {
  order: 2;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-content { order: 1; text-align: left; }
}
.hero-image {
  order: 1;
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero-image { order: 2; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  margin-bottom: 20px;
}
.dark .hero-badge {
  background: rgba(var(--primary-rgb), 0.12);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.badge-img {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .hero-title { font-size: 4.2rem; }
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 8px;
}
.dark .hero-tagline { color: #94a3b8; }

.hero-desc {
  color: #64748b;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 24px;
}
@media (min-width: 768px) {
  .hero-desc { margin: 0 0 24px 0; }
}
.dark .hero-desc { color: #94a3b8; }

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .hero-btns { justify-content: flex-start; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(var(--primary-rgb), 0.5);
}
.btn-img {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 30px;
  border: 2px solid #d1d5db;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s;
}
.dark .btn-secondary {
  border-color: #334155;
  color: #cbd5e1;
}
.btn-secondary:hover {
  background: #f1f5f9;
}
.dark .btn-secondary:hover {
  background: #1e293b;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
}
.dark .stats-row { border-top-color: #1e293b; }
.stat {
  text-align: center;
}
.stat-img {
  width: 28px;
  height: 28px;
  margin: 0 auto 8px;
  opacity: 0.7;
}
.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.profile-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}
@media (min-width: 768px) {
  .profile-wrap { width: 400px; height: 400px; }
}
.profile-glow {
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.25; transform: scale(0.95); }
  50% { opacity: 0.45; transform: scale(1.05); }
}
.profile-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
  border: 4px solid rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
@keyframes morph {
  0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

.about-section {
  padding: 60px 24px;
}
.about-card {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 28px;
  padding: 50px 36px;
  text-align: center;
  transition: transform 0.3s;
}
.dark .about-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}
.about-card:hover {
  transform: translateY(-4px);
}
.section-heading {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 28px;
}
.about-text {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.9;
}
.dark .about-text { color: #cbd5e1; }

.skills-section {
  padding: 60px 24px;
  background: rgba(241,245,249,0.5);
}
.dark .skills-section { background: rgba(0,0,0,0.2); }
.skills-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.skill-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.3s;
}
.dark .skill-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}
.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.dark .skill-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.4); }
.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
}
.skill-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-img {
  width: 22px;
  height: 22px;
}
.skill-pct { color: var(--primary); }
.skill-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.dark .skill-bar { background: #334155; }
.skill-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-section {
  padding: 60px 24px;
}
.projects-grid {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.project-card {
  display: block;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 22px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
}
.dark .project-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.dark .project-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.project-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transition: transform 0.4s ease;
  border-radius: 0 4px 4px 0;
}
.project-card:hover .project-bar { transform: scaleY(1); }
.project-img {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  transition: transform 0.3s;
}
.project-card:hover .project-img { transform: scale(1.1); }
.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color 0.3s;
}
.project-card:hover .project-title { color: var(--primary); }
.project-desc {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 16px;
}
.project-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}
.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateX(0);
}

.focus-box {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 32px;
  border-left: 4px solid #22c55e;
}
.dark .focus-box {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}
.focus-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.focus-img { width: 30px; height: 30px; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.focus-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  font-weight: 500;
}
.dark .focus-item { background: rgba(255,255,255,0.03); }

.channels-section {
  padding: 60px 24px;
  background: rgba(241,245,249,0.5);
}
.dark .channels-section { background: rgba(0,0,0,0.2); }
.channels-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.channel-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}
.dark .channel-card {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}
.channel-card:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.35);
}
.channel-img-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.channel-card:hover .channel-img-wrap {
  background: rgba(255,255,255,0.2);
}
.channel-img {
  width: 26px;
  height: 26px;
}
.channel-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.channel-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer {
  padding: 50px 24px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}
.dark .footer { border-top-color: #1e293b; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.dark .footer-social {
  background: rgba(15,23,42,0.7);
  border: 1px solid rgba(255,255,255,0.05);
}
.footer-social:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.footer-social-img {
  width: 22px;
  height: 22px;
}
.footer-text {
  color: #94a3b8;
  font-size: 0.9rem;
}

.text-center { text-align: center; }
.font-bold { font-weight: 700; }