/* ===================================
   Lukman Portfolio - Premium Design v3.0
   Ultra Modern, Professional, Responsive
   =================================== */

/* ===================================
   CSS Variables & Theme Configuration
   =================================== */
:root {
  /* Premium Dark Theme Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-card: rgba(26, 26, 36, 0.7);
  --bg-card-hover: rgba(26, 26, 36, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-accent: #60a5fa;
  
  /* Accent Colors - Premium Blue */
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --accent-subtle: rgba(59, 130, 246, 0.08);
  
  /* Secondary Accents */
  --purple: #8b5cf6;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --amber: #f59e0b;
  --rose: #f43f5e;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, rgba(10, 10, 15, 1) 100%);
  --gradient-glow: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  --gradient-mesh: 
    radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(6, 182, 212, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(236, 72, 153, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
  
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(59, 130, 246, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --shadow-glow-lg: 0 0 80px var(--accent-glow);
  
  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1280px;
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --gap-2xl: 64px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
  
  /* Typography */
  --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light Mode Theme */
body:not(.dark-mode) {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f4f5;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(0, 0, 0, 0.02);
  
  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  
  --border-color: rgba(0, 0, 0, 0.06);
  --border-color-hover: rgba(0, 0, 0, 0.12);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  
  --gradient-mesh: 
    radial-gradient(at 40% 20%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

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

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

/* Image Protection - Prevent downloading/saving */
.hero-avatar img,
.gallery-grid img,
.project-image img,
.protected-image {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
  width: 100%;
  box-sizing: border-box;
}

/* Ensure all sections don't overflow */
.section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* ===================================
   Theme Toggle Button
   =================================== */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.dark-mode .icon-sun { display: none; }
.dark-mode .icon-moon { display: block; }
body:not(.dark-mode) .icon-sun { display: block; }
body:not(.dark-mode) .icon-moon { display: none; }

/* ===================================
   Navigation
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 14px 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--gap-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  transition: transform var(--transition-normal);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: var(--gap-xs);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--accent-subtle);
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 140px var(--gap-md) 100px;
  width: 100%;
  max-width: 100vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  z-index: -2;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-glow);
  animation: heroGlow 15s ease-in-out infinite alternate;
  opacity: 0.5;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 10%) scale(1.2); }
  100% { transform: translate(-5%, 5%) scale(0.9); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--gap-xl);
  border-radius: var(--radius-full);
  padding: 5px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow-lg);
  animation: avatarFloat 6s ease-in-out infinite;
  transition: transform var(--transition-normal);
}

.hero-avatar:hover {
  transform: scale(1.08) rotate(3deg);
}

@keyframes avatarFloat {
  0%, 100% { 
    transform: translateY(0);
    box-shadow: var(--shadow-glow-lg);
  }
  50% { 
    transform: translateY(-15px);
    box-shadow: 0 0 100px var(--accent-glow);
  }
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-primary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: var(--gap-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--text-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 8s ease-in-out infinite;
}

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

.hero-subtitle {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--gap-md);
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--gap-xl);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  justify-content: center;
  margin-bottom: var(--gap-xl);
}

.hero-social {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
}

.hero-social a {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.hero-social a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.hero-social svg {
  width: 24px;
  height: 24px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

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

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.btn-accent {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.btn-accent:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.4);
}

.btn-resume {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.3);
}

.btn-resume:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-4px);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--gap-md);
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--gap-2xl);
  font-size: 1.15rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   About Section
   =================================== */
.about {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--gap-2xl);
  align-items: start;
}

.about-content .work-experience {
  grid-column: 1 / -1;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
  font-size: 1.1rem;
  line-height: 1.9;
  text-align: justify;
}

.about-text strong {
  color: var(--accent);
  font-weight: 600;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.fact-card {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  padding: var(--gap-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.fact-card:hover {
  transform: translateX(12px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 30px var(--accent-glow);
}

.fact-card.available {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
}

.fact-card.available:hover {
  box-shadow: var(--shadow-md), 0 0 30px rgba(16, 185, 129, 0.3);
}

.fact-icon {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
}

.fact-info h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.fact-info p {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* Work Experience Section */
.work-experience {
  margin-top: var(--gap-2xl);
  grid-column: 1 / -1;
}

.work-experience h3 {
  font-size: 1.8rem;
  margin-bottom: var(--gap-xl);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  font-weight: 700;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.exp-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.exp-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

.exp-card:hover::before {
  opacity: 1;
}

.exp-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 100%);
}

.exp-card.featured::before {
  opacity: 1;
}

.exp-icon-wrapper {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.exp-icon {
  font-size: 1.8rem;
}

.exp-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.exp-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Experience List (old design fallback) */
.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-md);
}

.experience-item {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md) var(--gap-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.experience-item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 30px var(--accent-glow);
}

.experience-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
}

.experience-item span:last-child {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ===================================
   Skills Section - Premium Design
   =================================== */
.skills {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

.skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.5;
  pointer-events: none;
  overflow: hidden;
}

/* Circular Progress Skills */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-lg);
  margin-bottom: var(--gap-2xl);
  position: relative;
  z-index: 1;
}

.skill-circle-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--gap-lg);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-normal);
}

.skill-circle-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

.skill-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--gap-md);
}

.skill-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.skill-circle-bg {
  fill: none;
  stroke: var(--bg-tertiary);
  stroke-width: 8;
}

.skill-circle-fill {
  fill: none;
  stroke: url(#skillGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: calc(283 - (283 * var(--percent)) / 100);
  transition: stroke-dashoffset 1.5s ease-out;
}

.skill-circle-card:nth-child(1) .skill-circle-fill { stroke: #3b82f6; }
.skill-circle-card:nth-child(2) .skill-circle-fill { stroke: #ef4444; }
.skill-circle-card:nth-child(3) .skill-circle-fill { stroke: #8b5cf6; }
.skill-circle-card:nth-child(4) .skill-circle-fill { stroke: #f59e0b; }
.skill-circle-card:nth-child(5) .skill-circle-fill { stroke: #10b981; }
.skill-circle-card:nth-child(6) .skill-circle-fill { stroke: #06b6d4; }
.skill-circle-card:nth-child(7) .skill-circle-fill { stroke: #f97316; }
.skill-circle-card:nth-child(8) .skill-circle-fill { stroke: #eab308; }
.skill-circle-card:nth-child(9) .skill-circle-fill { stroke: #6366f1; }
.skill-circle-card:nth-child(10) .skill-circle-fill { stroke: #14b8a6; }
.skill-circle-card:nth-child(11) .skill-circle-fill { stroke: #ec4899; }
.skill-circle-card:nth-child(12) .skill-circle-fill { stroke: #22c55e; }

.skill-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.skill-circle-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Technology Tags Cloud */
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tech-tag {
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  cursor: default;
}

.tech-tag:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.tag-primary { 
  border-color: var(--accent); 
  color: var(--accent); 
  background: rgba(59, 130, 246, 0.1); 
}
.tag-primary:hover {
  background: var(--accent);
  color: white;
}

.tag-danger { 
  border-color: var(--rose); 
  color: var(--rose); 
  background: rgba(244, 63, 94, 0.1); 
}
.tag-danger:hover {
  background: var(--rose);
  color: white;
}

.tag-success { 
  border-color: var(--emerald); 
  color: var(--emerald); 
  background: rgba(16, 185, 129, 0.1); 
}
.tag-success:hover {
  background: var(--emerald);
  color: white;
}

.tag-purple { 
  border-color: var(--purple); 
  color: var(--purple); 
  background: rgba(139, 92, 246, 0.1); 
}
.tag-purple:hover {
  background: var(--purple);
  color: white;
}

.tag-warning { 
  border-color: var(--amber); 
  color: var(--amber); 
  background: rgba(245, 158, 11, 0.1); 
}
.tag-warning:hover {
  background: var(--amber);
  color: white;
}

.tag-cyan { 
  border-color: var(--cyan); 
  color: var(--cyan); 
  background: rgba(6, 182, 212, 0.1); 
}
.tag-cyan:hover {
  background: var(--cyan);
  color: white;
}

.tag-secondary { 
  border-color: var(--text-muted); 
  color: var(--text-secondary); 
  background: rgba(113, 113, 122, 0.1); 
}
.tag-secondary:hover {
  background: var(--text-muted);
  color: white;
}

.tag-pink { 
  border-color: var(--pink); 
  color: var(--pink); 
  background: rgba(236, 72, 153, 0.1); 
}
.tag-pink:hover {
  background: var(--pink);
  color: white;
}

.skill-info span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
}

.skill-progress {
  height: 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.skill-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 2s var(--ease-out);
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: skillShimmer 2.5s infinite;
}

@keyframes skillShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===================================
   Portfolio Section
   =================================== */
.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--gap-lg);
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 50px var(--accent-glow);
}

.project-card.featured {
  grid-column: span 2;
}

.project-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: var(--gradient-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.project-card:hover .project-image::after {
  opacity: 1;
}

.project-info {
  padding: var(--gap-lg);
}

.project-info h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--gap-md);
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tech span {
  padding: 8px 16px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.project-tech span:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
  background: var(--bg-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

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

/* ===================================
   Experience/Education Section
   =================================== */
.experience {
  background: var(--bg-secondary);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.timeline-item {
  display: flex;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  position: relative;
}

.timeline-icon {
  width: 84px;
  height: 84px;
  min-width: 84px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 3px solid var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.12);
  box-shadow: var(--shadow-glow);
}

.timeline-item.highlight .timeline-icon {
  background: var(--gradient-primary);
  border-color: transparent;
}

.timeline-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: var(--gap-lg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  flex: 1;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.timeline-date {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--gap-md);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 700;
}

.timeline-content h4 {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 1.05rem;
}

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

/* ===================================
   Services/Learning Section
   =================================== */
.services {
  background: var(--bg-primary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.3;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap-lg);
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: var(--gap-xl);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

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

.service-card:hover {
  transform: translateY(-14px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 50px var(--accent-glow);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: var(--gap-lg);
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--gap-md);
  color: var(--text-primary);
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: var(--gap-lg);
  line-height: 1.7;
}

.service-card ul {
  text-align: left;
}

.service-card li {
  color: var(--text-secondary);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--transition-fast);
}

.service-card li:hover {
  color: var(--text-primary);
}

.service-card li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.service-card li:last-child {
  border-bottom: none;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  background: var(--bg-secondary);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--gap-2xl);
  max-width: 1150px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
  padding: var(--gap-lg);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(14px);
  box-shadow: var(--shadow-md), 0 0 30px var(--accent-glow);
}

.contact-icon {
  font-size: 2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
}

.contact-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-card a,
.contact-card p {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-social {
  margin-top: var(--gap-md);
}

.contact-social h4 {
  margin-bottom: var(--gap-md);
  color: var(--text-primary);
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: var(--gap-md);
}

.social-links a {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-6px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  padding: var(--gap-xl);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: var(--gap-lg);
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 22px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

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

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

.form-note {
  margin-top: var(--gap-md);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--bg-primary);
  padding: 100px 0 50px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--gap-2xl);
  margin-bottom: var(--gap-2xl);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--gap-md);
  display: inline-block;
}

.footer-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-secondary);
  max-width: 350px;
  line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.15rem;
  margin-bottom: var(--gap-lg);
  color: var(--text-primary);
  font-weight: 700;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 14px;
}

.footer-links a,
.footer-contact a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
  box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 20px 50px var(--accent-glow);
}

.back-to-top svg {
  width: 28px;
  height: 28px;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--gap-xl);
  }
  
  /* Work Experience responsive */
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Skills responsive tablet */
  .skills-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--gap-xl);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
  }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --gap-lg: 20px;
    --gap-xl: 32px;
    --gap-2xl: 40px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* Navigation Mobile */
  .navbar {
    padding: 12px 0;
  }
  
  .navbar.scrolled {
    padding: 10px 0;
  }
  
  .nav-logo {
    font-size: 1.4rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--gap-md);
    transition: right var(--transition-normal);
    box-shadow: var(--shadow-xl);
    border-left: 1px solid var(--border-color);
    z-index: 1000;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
  
  /* Theme Toggle Mobile */
  .theme-toggle {
    top: 12px;
    right: 70px;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  /* Hero Section Mobile */
  .hero {
    padding: 100px 16px 60px;
    min-height: auto;
  }
  
  .hero-avatar {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
  }
  
  .hero-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    letter-spacing: 0;
    word-spacing: 4px;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }
  
  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 0 10px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 20px;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  
  .hero-social {
    gap: 12px;
    margin-top: 24px;
  }
  
  .hero-social a {
    width: 46px;
    height: 46px;
  }
  
  .hero-social svg {
    width: 20px;
    height: 20px;
  }
  
  /* Section Titles Mobile */
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  /* About Section Mobile */
  .about-content {
    gap: 30px;
  }
  
  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.7;
    text-align: justify;
  }
  
  .fact-card {
    padding: 16px;
    gap: 14px;
  }
  
  .fact-icon {
    font-size: 2rem;
    width: 55px;
    height: 55px;
  }
  
  .fact-info h4 {
    font-size: 0.75rem;
  }
  
  .fact-info p {
    font-size: 0.9rem;
  }
  
  /* Work Experience Mobile */
  .work-experience {
    margin-top: 40px;
  }
  
  .work-experience h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
  }
  
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .exp-card {
    padding: 14px;
    gap: 12px;
  }
  
  .exp-icon-wrapper {
    width: 45px;
    height: 45px;
    min-width: 45px;
  }
  
  .exp-icon {
    font-size: 1.3rem;
  }
  
  .exp-content h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  
  .exp-content p {
    font-size: 0.8rem;
  }
  
  /* Skills Section Mobile */
  .skills-showcase {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .skill-circle-card {
    padding: 14px 10px;
  }
  
  .skill-circle {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }
  
  .skill-circle-bg,
  .skill-circle-fill {
    stroke-width: 6;
  }
  
  .skill-percent {
    font-size: 0.95rem;
  }
  
  .skill-circle-card h4 {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .tech-cloud {
    gap: 8px;
  }
  
  .tech-tag {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  
  /* Portfolio Section Mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-card {
    border-radius: var(--radius-lg);
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .project-info p {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  
  .project-tech {
    gap: 6px;
  }
  
  .project-tech span {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
  
  /* Gallery Section Mobile */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .gallery-item {
    border-radius: var(--radius-md);
  }
  
  /* Timeline Section Mobile */
  .timeline::before {
    left: 20px;
    width: 3px;
  }
  
  .timeline-item {
    gap: 16px;
  }
  
  .timeline-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.2rem;
    border-width: 2px;
  }
  
  .timeline-content {
    padding: 16px;
  }
  
  .timeline-date {
    font-size: 0.75rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }
  
  .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .timeline-content h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .timeline-content p {
    font-size: 0.85rem;
  }
  
  /* Services/Learning Section Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .service-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }
  
  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
  }
  
  .service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }
  
  .service-card > p {
    font-size: 0.85rem;
    margin-bottom: 16px;
  }
  
  .service-card li {
    padding: 10px 0;
    font-size: 0.85rem;
  }
  
  /* Contact Section Mobile */
  .contact-wrapper {
    gap: 30px;
  }
  
  .contact-info {
    gap: 14px;
  }
  
  .contact-card {
    padding: 16px;
    gap: 14px;
    flex-direction: row;
    align-items: center;
  }
  
  .contact-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
  }
  
  .contact-card h4 {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
  
  .contact-card a,
  .contact-card p {
    font-size: 0.9rem;
  }
  
  .contact-social {
    margin-top: 10px;
  }
  
  .contact-social h4 {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
  
  .social-links {
    gap: 10px;
    justify-content: center;
  }
  
  .social-links a {
    width: 48px;
    height: 48px;
  }
  
  .contact-form {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }
  
  .form-group {
    margin-bottom: 18px;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }
  
  .btn-full {
    padding: 16px 24px;
  }
  
  /* Footer Section Mobile */
  .footer {
    padding: 50px 0 30px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .footer-logo {
    font-size: 1.4rem;
  }
  
  .footer-brand p {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.9rem;
  }
  
  .footer-links h4,
  .footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  
  .footer-links li,
  .footer-contact li {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }
  
  .footer-links a:hover,
  .footer-contact a:hover {
    padding-left: 0;
  }
  
  .footer-bottom {
    padding-top: 24px;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
  
  /* Back to Top Button Mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  
  .back-to-top svg {
    width: 22px;
    height: 22px;
  }
}

/* ===================================
   Responsive Design - Small Mobile
   =================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .hero {
    padding: 90px 12px 50px;
  }
  
  .hero-avatar {
    width: 110px;
    height: 110px;
  }
  
  .hero-title {
    font-size: 1rem;
    letter-spacing: 0;
    word-spacing: 3px;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
  }
  
  .hero-cta {
    padding: 0 10px;
  }
  
  .hero-cta .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
  }
  
  /* Skills extra small */
  .skills-showcase {
    gap: 10px;
  }
  
  .skill-circle-card {
    padding: 12px 8px;
  }
  
  .skill-circle {
    width: 60px;
    height: 60px;
  }
  
  .skill-percent {
    font-size: 0.85rem;
  }
  
  .skill-circle-card h4 {
    font-size: 0.7rem;
  }
  
  .tech-tag {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  /* Work Experience extra small */
  .exp-card {
    padding: 12px;
    gap: 10px;
  }
  
  .exp-icon-wrapper {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .exp-icon {
    font-size: 1.1rem;
  }
  
  .exp-content h4 {
    font-size: 0.85rem;
  }
  
  .exp-content p {
    font-size: 0.75rem;
  }
  
  /* Fact cards extra small */
  .fact-card {
    padding: 14px;
    gap: 12px;
  }
  
  .fact-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
  }
  
  /* Portfolio extra small */
  .project-image {
    height: 160px;
  }
  
  .project-info {
    padding: 16px;
  }
  
  .project-info h3 {
    font-size: 1rem;
  }
  
  /* Timeline extra small */
  .timeline::before {
    left: 16px;
  }
  
  .timeline-item {
    gap: 12px;
  }
  
  .timeline-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }
  
  .timeline-content {
    padding: 14px;
  }
  
  .timeline-content h3 {
    font-size: 0.95rem;
  }
  
  .timeline-content h4 {
    font-size: 0.85rem;
  }
  
  .timeline-content p {
    font-size: 0.8rem;
  }
  
  /* Service cards extra small */
  .service-card {
    padding: 20px 16px;
  }
  
  .service-icon {
    font-size: 2.2rem;
  }
  
  .service-card h3 {
    font-size: 1.05rem;
  }
  
  /* Contact extra small */
  .contact-form {
    padding: 20px 16px;
  }
  
  .contact-card {
    padding: 14px;
    gap: 12px;
  }
  
  .contact-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  
  /* Gallery extra small */
  .gallery-grid {
    gap: 8px;
  }
  
  .gallery-item {
    border-radius: var(--radius-sm);
  }
  
  /* Footer extra small */
  .footer {
    padding: 40px 0 24px;
  }
  
  .footer-logo {
    font-size: 1.3rem;
  }
  
  .footer-brand p {
    font-size: 0.85rem;
  }
}

/* ===================================
   Extra Small Devices (Very Small Phones)
   =================================== */
@media (max-width: 360px) {
  .hero-avatar {
    width: 100px;
    height: 100px;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .skill-circle {
    width: 55px;
    height: 55px;
  }
  
  .skill-percent {
    font-size: 0.8rem;
  }
  
  .skill-circle-card h4 {
    font-size: 0.65rem;
  }
  
  .exp-icon-wrapper {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .exp-icon {
    font-size: 1rem;
  }
  
  .exp-content h4 {
    font-size: 0.8rem;
  }
  
  .project-tech span {
    padding: 4px 8px;
    font-size: 0.65rem;
  }
}

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

/* Focus Styles for Accessibility */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .theme-toggle,
  .back-to-top,
  .hero-cta,
  .scroll-indicator,
  .hero-social {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    padding: 40px 0;
    break-inside: avoid;
  }
}

/* Touch Device Optimizations */
@media (hover: none) {
  .project-card:hover,
  .service-card:hover,
  .fact-card:hover,
  .contact-card:hover,
  .exp-card:hover,
  .skill-circle-card:hover,
  .timeline-item:hover .timeline-content {
    transform: none;
  }
  
  /* Better touch targets */
  .btn {
    min-height: 48px;
  }
  
  .nav-link {
    min-height: 44px;
  }
  
  .social-links a,
  .hero-social a {
    min-width: 48px;
    min-height: 48px;
  }
}

/* Prevent Horizontal Scroll on Mobile */
html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

/* Fix 100vw causing horizontal scroll on mobile */
@media (max-width: 768px) {
  /* Prevent any element from exceeding viewport width */
  .section,
  .container,
  .about-grid,
  .experience-grid,
  .skills-showcase,
  .tech-cloud,
  .portfolio-grid,
  .services-grid,
  .timeline,
  .gallery-grid,
  .contact-grid {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  /* Disable horizontal fade animations on mobile */
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    opacity: 0;
    transform: translateY(20px) !important;
  }
  
  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateY(0) !important;
  }
}

/* Mobile-specific touch improvements */
@media (max-width: 768px) {
  /* Prevent text selection on interactive elements */
  .btn,
  .nav-link,
  .tech-tag {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
  }
  
  /* Smooth scrolling container */
  .container {
    overflow-x: hidden;
  }
  
  /* Fix for mobile viewport units */
  .hero {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
  }
  
  /* Improve touch feedback */
  .btn:active {
    transform: scale(0.98);
  }
  
  .exp-card:active,
  .project-card:active,
  .service-card:active {
    transform: scale(0.99);
  }
  
  /* Prevent AOS animations from causing horizontal scroll */
  [data-aos^="fade"][data-aos^="fade"] {
    overflow: visible;
  }
  
  /* Ensure all sections stay within viewport */
  .about,
  .work-experience,
  .skills,
  .portfolio,
  .services,
  .education,
  .contact,
  .gallery {
    overflow-x: hidden;
    max-width: 100%;
  }
}
