/* =========================================
   1. Design Token & Themes
   ========================================= */
:root {
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --container-width: 1200px;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  
  /* Light Mode */
  --bg-body: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  --bg-body-solid: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-hover: #f1f5f9;
  
  --text-main: #1a1a2e;
  --text-muted: #64748b;
  --text-invert: #ffffff;
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.25);
  --accent: #06b6d4;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px rgba(99, 102, 241, 0.15);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  --gradient-title: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-btn: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --decoration-blob: rgba(99, 102, 241, 0.08);
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-body: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --bg-body-solid: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(15, 23, 42, 0.9);
  --bg-hover: #334155;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  
  --primary: #818cf8;
  --primary-light: #a5b4fc;
  --primary-dark: #6366f1;
  --primary-glow: rgba(129, 140, 248, 0.3);
  --secondary-glow: rgba(244, 114, 182, 0.3);
  
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 40px rgba(129, 140, 248, 0.2);
  --shadow-glow: 0 0 60px rgba(129, 140, 248, 0.4);
  
  --gradient-title: linear-gradient(135deg, #818cf8 0%, #f472b6 50%, #22d3ee 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  --gradient-btn: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --decoration-blob: rgba(129, 140, 248, 0.1);
}

/* =========================================
   2. Global Reset & Layout
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  transition: background 0.5s ease, color 0.4s ease;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }
ul { list-style: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 100px 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.column { flex-direction: column; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-body-solid); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--primary), var(--secondary)); 
  border-radius: 5px; 
}

::selection {
  background: var(--primary);
  color: white;
}

/* =========================================
   3. Navigation
   ========================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.4s ease;
}

.nav-container {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-text {
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--gradient-btn);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.nav-actions { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 8px; }
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  position: relative;
  transition: all 0.3s ease;
}
.nav-links a:hover { 
  color: var(--primary); 
  background: var(--primary-glow);
}

.nav-controls { display: flex; align-items: center; gap: 12px; }

.control-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.control-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.theme-toggle i {
  position: absolute;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.5s;
}

[data-theme="light"] .moon-icon { transform: translateY(25px) rotate(90deg); opacity: 0; }
[data-theme="light"] .sun-icon { transform: translateY(0) rotate(0); opacity: 1; }
[data-theme="dark"] .sun-icon { transform: translateY(-25px) rotate(-90deg); opacity: 0; }
[data-theme="dark"] .moon-icon { transform: translateY(0) rotate(0); opacity: 1; }

/* =========================================
   4. Hero Section
   ========================================= */
.intro {
  padding: 120px 0 80px;
  position: relative;
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bg-decoration {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, var(--decoration-blob) 0%, transparent 60%);
  opacity: 0.8;
  z-index: -1;
  animation: float 8s ease-in-out infinite;
}

.bg-decoration::before,
.bg-decoration::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
}

.bg-decoration::before {
  width: 400px;
  height: 400px;
  top: 20%;
  left: -10%;
  animation: float 6s ease-in-out infinite reverse;
}

.bg-decoration::after {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: -5%;
  animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-30px); }
}

.avatar-container { 
  position: relative; 
  margin-bottom: 32px;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-card);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.avatar:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--gradient-btn);
  filter: blur(30px);
  opacity: 0.5;
  z-index: 1;
  transition: opacity 0.5s, transform 0.5s;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.avatar-container:hover .avatar-glow { 
  opacity: 0.8; 
  transform: scale(1.1);
}

.gradient-text {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: var(--gradient-title);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
  animation: gradientShift 5s ease infinite;
}

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

.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  border: none;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* =========================================
   5. Featured Carousel
   ========================================= */
.featured-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.carousel-slide .slide-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: white;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.carousel-slide .slide-info h3 { font-size: 1.6rem; margin-bottom: 10px; }
.carousel-slide .slide-info p { font-size: 1rem; opacity: 0.9; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-card);
}

.carousel-btn:hover {
  background: var(--gradient-btn);
  color: white;
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: -26px; }
.next-btn { right: -26px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  background: var(--gradient-btn);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* =========================================
   6. About Section
   ========================================= */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.9;
}

.skills-cloud h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.skills-cloud h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-tag {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  box-shadow: var(--shadow-sm);
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-card);
}

.skill-tag.programming { 
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); 
  color: #6366f1; 
  border-color: rgba(99, 102, 241, 0.3); 
}
.skill-tag.ai-art { 
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(236, 72, 153, 0.05) 100%); 
  color: #ec4899; 
  border-color: rgba(236, 72, 153, 0.3); 
}
.skill-tag.ai-video { 
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%); 
  color: #22c55e; 
  border-color: rgba(34, 197, 94, 0.3); 
}

/* =========================================
   7. Works Section
   ========================================= */
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 56px;
  color: var(--text-main);
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-btn);
  margin: 16px auto 0;
  border-radius: 2px;
}

.works-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--gradient-btn);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.works-content {
  display: none;
}

.works-content.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GitHub Link */
.github-link {
  text-align: center;
  margin-bottom: 40px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #24292e 0%, #1a1a1a 100%);
  color: white;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-github:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card .card-content {
  padding: 24px;
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.project-card .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.project-card .tech-tag {
  padding: 6px 14px;
  background: var(--primary-glow);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.project-card .card-links {
  display: flex;
  gap: 16px;
}

.project-card .card-link {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.project-card .card-link:hover { 
  color: var(--primary-dark);
  transform: translateX(4px);
}

/* Gallery Grid */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--gradient-btn);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.15); }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.85));
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay span {
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.video-card .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-card iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-card .video-info {
  padding: 24px;
}

.video-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-main); }
.video-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Others Grid */
.others-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.other-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.4s ease;
  box-shadow: var(--shadow-card);
}

.other-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.other-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.other-card .card-icon i {
  font-size: 1.6rem;
  color: white;
}

.other-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-main); }
.other-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   8. Contact Section
   ========================================= */
.contact {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--decoration-blob) 0%, transparent 70%);
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3, .contact-form-wrapper h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
  color: var(--text-main);
  position: relative;
  display: inline-block;
}

.contact-info h3::after, .contact-form-wrapper h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 2px;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.contact-info .contact-item:hover { 
  color: var(--primary); 
  padding-left: 10px;
}

.contact-info .contact-item i {
  font-size: 1.3rem;
  width: 28px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.contact-info .contact-item:hover i {
  transform: scale(1.2);
}

.contact-info .contact-item a {
  display: flex;
  align-items: center;
  gap: 18px;
  color: inherit;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input, .form-group textarea {
  padding: 16px 20px;
  background: var(--bg-body-solid);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-group input::placeholder, .form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group textarea { resize: vertical; min-height: 140px; }

.btn-submit {
  padding: 16px 36px;
  background: var(--gradient-btn);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before {
  left: 100%;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
  text-align: center;
  padding: 40px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  background: var(--bg-body-solid);
}

/* =========================================
   10. Lightbox Modal
   ========================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.lightbox.active { 
  display: flex; 
  animation: fadeIn 0.3s ease;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { 
  background: rgba(255,255,255,0.2); 
  transform: rotate(90deg);
}

/* =========================================
   11. Mobile Responsive
   ========================================= */
@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .intro { padding-top: 80px; min-height: auto; }
  .gradient-text { font-size: 2.2rem; }
  
  .avatar { width: 140px; height: 140px; }
  
  .hero-cta { flex-direction: column; width: 100%; padding: 0 20px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  
  .works-tabs { gap: 10px; }
  .tab-btn { padding: 12px 20px; font-size: 0.9rem; }
  
  .projects-grid, .video-grid, .others-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  
  .carousel-btn { display: none; }
  .carousel-slide img { height: 280px; }
  
  h2 { font-size: 2rem; }
  .section-padding { padding: 70px 0; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .skill-tags { gap: 10px; }
  .skill-tag { padding: 10px 18px; font-size: 0.85rem; }
  .gradient-text { font-size: 1.8rem; }
  .subtitle { font-size: 1rem; }
}

/* =========================================
   12. Utility Classes
   ========================================= */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.4;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.empty-state p { font-size: 1.1rem; }

/* =========================================
   13. Copy Button
   ========================================= */
.contact-item {
  position: relative;
}

.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--gradient-btn);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: transparent;
  color: white;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-info .contact-item a {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

/* =========================================
   14. Animations
   ========================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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