/* ========================================
   CV PROFILE - STYLE SYSTEM
   Design: Dark Premium + Glassmorphism
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.3);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-primary: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
  --gradient-secondary: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #f43f5e);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #06b6d4;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(6, 182, 212, 0.3);

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1100px;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.15);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--text-accent);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue);
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

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

/* ---------- Section ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Particle Background ---------- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(0px);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-logo span {
  font-weight: 400;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--gradient-primary);
  border-radius: 8px;
  color: white !important;
  font-weight: 600;
  font-size: 0.88rem;
  -webkit-text-fill-color: white !important;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 15px var(--accent-cyan-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 25px var(--accent-cyan-glow);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/hero-bg.png') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-greeting::before {
  content: '>';
  color: var(--accent-cyan);
  animation: blink 1s infinite;
}

.hero-name {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -1.5px;
}

.hero-name .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
}

.hero-title .typing-text {
  color: var(--accent-cyan);
  font-weight: 600;
  border-right: 2px solid var(--accent-cyan);
  padding-right: 4px;
  animation: blink 0.7s infinite;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 25px var(--accent-cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-cyan-glow);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.profile-card {
  position: relative;
  width: 360px;
  height: 420px;
}

.profile-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              var(--gradient-primary) border-box;
  animation: rotateRing 8s linear infinite;
}

.profile-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.profile-image-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-subtle);
  box-shadow: var(--shadow-glow);
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-badge {
  position: absolute;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  animation: floatBadge 3s ease-in-out infinite;
  box-shadow: var(--shadow-card);
}

.profile-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-top-right {
  top: 30px;
  right: -10px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 40px;
  left: -20px;
  animation-delay: 1.5s;
}

.badge-bottom-right {
  bottom: 0;
  right: 10px;
  animation-delay: 0.8s;
}

.badge-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.badge-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.badge-icon.emerald { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

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

.about-image-container {
  position: relative;
}

.about-image-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.about-image-card img {
  border-radius: 14px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.info-badge .icon {
  font-size: 1rem;
}

.about-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.highlight-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  transition: all var(--transition-smooth);
}

.highlight-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.highlight-card .h-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.highlight-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- Skills Section ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  transition: all var(--transition-smooth);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.skill-category-icon.cyan { background: rgba(6, 182, 212, 0.12); }
.skill-category-icon.blue { background: rgba(59, 130, 246, 0.12); }
.skill-category-icon.purple { background: rgba(139, 92, 246, 0.12); }
.skill-category-icon.emerald { background: rgba(16, 185, 129, 0.12); }
.skill-category-icon.amber { background: rgba(245, 158, 11, 0.12); }

.skill-category h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-category h3 small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

.skill-name {
  font-size: 0.88rem;
  font-weight: 500;
}

.skill-bar-container {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.skill-bar.animated {
  /* Width set via inline style */
}

/* ---------- Experience / Education Timeline ---------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  z-index: 2;
  transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.timeline-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
  transition: all var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-card .company {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.timeline-tag {
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 6px;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 500;
  font-family: var(--font-mono);
}

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

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.project-thumbnail {
  height: 200px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(139,92,246,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.project-thumbnail::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-secondary), transparent);
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-tech span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.12);
}

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

.project-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.project-links a:hover {
  color: var(--accent-cyan);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  padding-right: 20px;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: all var(--transition-fast);
}

.contact-method:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.contact-method .c-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(6, 182, 212, 0.1);
  flex-shrink: 0;
}

.contact-method .c-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method .c-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px;
}

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

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  transform: translateY(-2px);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes rotateRing {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { order: 2; }
  .hero-visual { order: 1; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .hero-name { font-size: 2.5rem; }
  
  .nav-links { 
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; z-index: 1001; }
  
  .profile-card { width: 280px; height: 340px; }
  .profile-ring { width: 230px; height: 230px; }
  .profile-image-wrapper { width: 200px; height: 200px; }
  
  .about-highlights { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .footer-content { flex-direction: column; gap: 16px; }
  
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: 24px; }

  /* Hide custom cursor on mobile */
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==============================================
   🌟 PREMIUM UI ENHANCEMENTS
   Advanced effects for high-end portfolio feel
   ============================================== */

/* ---------- Custom Animated Cursor ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28),
              height 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28),
              border-color 0.3s,
              background 0.3s;
  transform: translate(-50%, -50%);
}

.cursor-dot.cursor-hover {
  width: 50px;
  height: 50px;
  background: rgba(6, 182, 212, 0.12);
  mix-blend-mode: normal;
}

.cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.04);
}

.cursor-dot.cursor-click {
  width: 4px;
  height: 4px;
}

.cursor-ring.cursor-click {
  width: 20px;
  height: 20px;
}

/* ---------- Noise Grain Texture Overlay ---------- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ---------- Custom Scrollbar (Enhanced) ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
}

/* ---------- 3D Tilt Card Effect ---------- */
.project-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.project-card .project-body,
.project-card .project-thumbnail {
  transform: translateZ(20px);
}

/* ---------- Animated Gradient Border on Featured Cards ---------- */
.project-card[style*="border: 1px solid var(--accent-amber)"],
.project-card[style*="border: 1px solid var(--accent-purple)"] {
  position: relative;
  border: none !important;
  background-clip: padding-box;
}

.project-card[style*="border: 1px solid var(--accent-amber)"]::before,
.project-card[style*="border: 1px solid var(--accent-purple)"]::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 19px;
  background: conic-gradient(
    from var(--gradient-angle, 0deg),
    var(--accent-cyan),
    var(--accent-purple),
    var(--accent-blue),
    var(--accent-emerald),
    var(--accent-cyan)
  );
  z-index: -1;
  animation: rotateGradient 4s linear infinite;
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateGradient {
  to { --gradient-angle: 360deg; }
}

/* ---------- Glow Effect on Hover ---------- */
.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(6, 182, 212, 0.1),
    0 0 0 1px rgba(6, 182, 212, 0.1);
}

.skill-category:hover {
  box-shadow: 
    0 20px 40px rgba(6, 182, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- Magnetic Button Effect (Visual) ---------- */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.6s ease, height 0.6s ease;
  transform: translate(-50%, -50%);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-secondary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.btn-secondary:hover::after {
  opacity: 1;
}

/* ---------- Enhanced Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children */
.skills-grid .reveal:nth-child(1) { transition-delay: 0s; }
.skills-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.skills-grid .reveal:nth-child(5) { transition-delay: 0.4s; }

.projects-grid .reveal:nth-child(1) { transition-delay: 0s; }
.projects-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.projects-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.projects-grid .reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Hero Name Glow Pulse ---------- */
.hero-name .highlight {
  position: relative;
  background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6, #06b6d4);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

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

/* ---------- Spotlight Follow Effect (Sections) ---------- */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  transition: top 0.3s ease, left 0.3s ease;
}

/* ---------- Glass Shimmer on Cards ---------- */
.project-card::after,
.skill-category::after,
.timeline-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.project-card:hover::after,
.skill-category:hover::after,
.timeline-item:hover .timeline-card::after {
  transform: rotate(25deg) translateX(100%);
}

.project-card,
.skill-category,
.timeline-card {
  position: relative;
  overflow: hidden;
}

/* ---------- Floating Orbs Background ---------- */
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.1); }
  50% { transform: translate(-20px, -100px) scale(0.9); }
  75% { transform: translate(50px, -30px) scale(1.05); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
  animation: floatOrb 15s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Skill Bar Glow ---------- */
.skill-bar {
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 6px;
  height: calc(100% + 4px);
  border-radius: 3px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
  opacity: 0;
  transition: opacity 0.5s ease 1.2s;
}

.skill-bar.animated::after {
  opacity: 0.8;
}

/* ---------- Link Underline Animation ---------- */
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-links a:hover::before {
  width: 60%;
}

/* ---------- Smooth Page Load ---------- */
@keyframes pageLoad {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  animation: pageLoad 0.6s ease-out;
}

/* ---------- Focus Visible for Accessibility ---------- */
*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
