/* Modern Portfolio CSS */

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

/* CSS Custom Properties */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary-color: #64748b;
  --accent-color: #0ea5e9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #f8fafc 50%, #f0f9ff 100%);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  padding-top: 70px; /* Account for fixed navbar */
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(15, 22, 41, 0.95), rgba(30, 41, 59, 0.95));
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  background: linear-gradient(135deg, rgba(15, 22, 41, 0.9), rgba(30, 41, 59, 0.9));
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(59, 130, 246, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(241, 245, 249, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: rgba(147, 197, 253, 1);
  background: rgba(147, 197, 253, 0.15);
  transform: translateY(-1px);
}

.nav-link.active {
  color: rgba(147, 197, 253, 1);
  background: rgba(147, 197, 253, 0.2);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  min-height: auto;
  background: linear-gradient(135deg, #0f1629 0%, #1e293b 25%, #0f172a 50%, #1e293b 75%, #334155 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 3rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Ccircle cx='40' cy='40' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem 2rem;
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
}

.hero-header {
  margin-bottom: 3rem;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
  width: 100%;
  max-width: 1100px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  animation: slideInLeft 0.8s ease-out 0.1s both;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #94a3b8;
  margin-bottom: 0;
  font-weight: 500;
  animation: slideInLeft 0.8s ease-out 0.2s both;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.name-highlight {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
  animation: slideInLeft 0.8s ease-out 0.3s both;
}

.highlight {
  color: #60a5fa;
  font-weight: 600;
  position: relative;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  animation: slideInLeft 0.8s ease-out 0.4s both;
  justify-content: center;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 140px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #60a5fa;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  animation: slideInLeft 0.8s ease-out 0.5s both;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 160px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.btn-secondary {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

/* Android Studio Code Window */
.code-window.android-studio {
  background: #2b2b2b;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  position: relative;
  border: 1px solid #3c3c3c;
  transform: scale(1.05);
}

.android-header {
  background: #3c3c3c;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #4a4a4a;
}

.android-toolbar {
  display: flex;
  align-items: center;
  flex: 1;
}

.android-icon {
  padding: 0.75rem 1rem;
  color: #a9b7c6;
  font-size: 1.1rem;
  border-right: 1px solid #4a4a4a;
}

.file-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #2b2b2b;
  color: #a9b7c6;
  border-right: 1px solid #4a4a4a;
  font-size: 0.85rem;
  position: relative;
}

.file-tab.active {
  background: #2b2b2b;
  color: #ffc66d;
}

.file-tab.active::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #4a9eff;
}

.tab-icon {
  font-size: 0.75rem;
  opacity: 0.7;
}

.tab-name {
  font-weight: 500;
}

.tab-close {
  opacity: 0.5;
  cursor: pointer;
  margin-left: 0.25rem;
}

.tab-close:hover {
  opacity: 1;
}

.android-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

.run-btn {
  color: #6cc04a;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.run-btn:hover {
  color: #8bc34a;
}

.debug-btn {
  color: #cc7832;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.debug-btn:hover {
  color: #ffc66d;
}

/* Hero Visual Container */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: slideInRight 1s ease-out;
}

.code-content {
  padding: 1.5rem;
  background: #2b2b2b;
  color: #a9b7c6;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
}

.code-line {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}

.line-number {
  color: #606366;
  margin-right: 1rem;
  font-size: 0.8rem;
  min-width: 20px;
  user-select: none;
}

/* Android Studio Kotlin Syntax Colors */
.keyword { color: #cc7832; }
.class-name { color: #ffc66d; }
.variable { color: #9876aa; }
.string { color: #6a8759; }
.function { color: #ffc66d; }

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.kotlin-icon {
  top: -10px;
  right: 20px;
  animation-delay: 0s;
}

.android-icon {
  bottom: 60px;
  right: -15px;
  animation-delay: 1s;
}

.firebase-icon {
  bottom: 20px;
  left: -15px;
  animation-delay: 2s;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

/* Section Styling */
.section {
  padding: 4rem 0;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

/* About Section */
.about {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.about p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Skills Section */
.skills {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: 4rem;
}

.skills-container {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  margin-top: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.skills-category {
  margin-bottom: 3rem;
}

.skills-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
  padding-left: 1rem;
}

.category-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.skill-item {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  padding: 1.5rem 1rem;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 180px;
  height: 120px;
}

.skill-item i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.skill-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Custom colors for specific icons */
.skill-item:has(.devicon-c-plain) i {
  color: #1e40af;
  text-shadow: 0 2px 4px rgba(30, 64, 175, 0.3);
}

.skill-item:has(.devicon-cplusplus-plain) i {
  color: #2563eb;
  text-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.skill-item:has(.devicon-kotlin-plain) i {
  color: #7f52ff;
}

.skill-item:has(.devicon-android-plain) i {
  color: #3ddc84;
}

.skill-item:has(.devicon-firebase-plain) i {
  color: #ffca28;
}

.skill-item:has(.fa-database) i {
  color: var(--primary-color);
}

.skill-item:has(.fa-layer-group) i {
  color: var(--accent-color);
}

.skill-item:has(.devicon-spring-plain) i {
  color: #6db33f;
}

.skill-item:has(.devicon-git-plain) i {
  color: #f05032;
}

.skill-item:has(.devicon-github-original) i {
  color: #374151;
  text-shadow: 0 2px 4px rgba(55, 65, 81, 0.3);
}

.skill-item:has(.devicon-vscode-plain) i {
  color: #0078d4;
  text-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

.skill-item:has(.devicon-androidstudio-plain) i {
  color: #3ddc84;
  text-shadow: 0 2px 4px rgba(61, 220, 132, 0.3);
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}

.skill-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.skill-item:hover i {
  transform: scale(1.1);
}

.skill-item:hover::before {
  left: 100%;
}

/* Projects Section */
.projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  margin-top: 4rem;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

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

.project-header {
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.project-features {
  margin-bottom: 2rem;
}

.project-features h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.project-features ul {
  list-style: none;
  margin-left: 0;
}

.project-features li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.project-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.875rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  border: 2px solid;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-link.primary {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.project-link.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-link.secondary {
  background: var(--bg-secondary);
  color: var(--primary-color);
  border-color: var(--border-color);
}

.project-link.secondary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.project-link i {
  font-size: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem 3rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-top: 2px solid rgba(59, 130, 246, 0.3);
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(37, 99, 235, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-text p {
  margin: 0;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.footer-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 6rem;
  height: 5rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
  color: #94a3b8;
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.4rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  padding: 1rem 0.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.footer-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  transition: all 0.4s ease;
}

.footer-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: all 0.4s ease;
}

.footer-link i {
  font-size: 1.5rem;
  transition: all 0.4s ease;
}

.footer-link span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s ease;
}

.footer-link:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.6);
  color: #f1f5f9;
}

.footer-link:hover::before {
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
  height: 4px;
}

.footer-link:hover::after {
  opacity: 1;
}

.footer-link:hover i {
  transform: scale(1.2);
}

/* Specific colors for footer social icons */
.footer-link:has(.fa-envelope) {
  color: #ef4444;
}

.footer-link:has(.fa-envelope):hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3));
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 15px 40px rgba(239, 68, 68, 0.3);
}

.footer-link:has(.fa-envelope):hover::before {
  background: linear-gradient(90deg, #ef4444, #dc2626, #ef4444);
}

.footer-link:has(.fa-github) {
  color: #9ca3af;
}

.footer-link:has(.fa-github):hover {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.2), rgba(107, 114, 128, 0.3));
  color: #f3f4f6;
  border-color: rgba(156, 163, 175, 0.6);
  box-shadow: 0 15px 40px rgba(107, 114, 128, 0.3);
}

.footer-link:has(.fa-github):hover::before {
  background: linear-gradient(90deg, #9ca3af, #6b7280, #9ca3af);
}

.footer-link:has(.fa-linkedin) {
  color: #0ea5e9;
}

.footer-link:has(.fa-linkedin):hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.3));
  color: #7dd3fc;
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
}

.footer-link:has(.fa-linkedin):hover::before {
  background: linear-gradient(90deg, #0ea5e9, #0284c7, #0ea5e9);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
    justify-content: space-between;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 22, 41, 0.95), rgba(30, 41, 59, 0.95));
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 2rem 0;
    gap: 1rem;
    height: calc(100vh - 70px);
    align-items: center;
    justify-content: flex-start;
    padding-top: 4rem;
    border-right: 1px solid rgba(59, 130, 246, 0.2);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 200px;
    text-align: center;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.3s ease;
  }

  .nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active .nav-link:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-menu.active .nav-link:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-menu.active .nav-link:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-container {
    padding: 1rem 1rem 2rem;
    text-align: center;
    padding-top: 1.5rem;
  }

  .hero-header {
    margin-bottom: 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    order: 2;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .stat-item {
    width: 120px;
    height: 100px;
    padding: 1rem 0.75rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary, .btn-secondary {
    width: 200px;
    justify-content: center;
  }

  .code-window {
    max-width: 320px;
    transform: scale(0.9);
  }

  .android-header {
    padding: 0;
  }

  .android-icon {
    padding: 0.5rem 0.75rem;
  }

  .file-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .android-actions {
    padding: 0.5rem 0.75rem;
    gap: 0.25rem;
  }

  .code-content {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .tech-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .hero-description {
    max-width: none;
  }

  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .skills {
    padding: 0 1rem;
  }
  
  .skills-container {
    padding: 2rem 1rem;
    margin: 1rem 0;
  }
  
  .skills-category {
    margin-bottom: 2.5rem;
  }
  
  .category-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .skill-item {
    width: 150px;
    height: 110px;
  }
  
  .projects {
    padding: 0 1rem;
  }
  
  .project-card {
    padding: 2rem;
  }
  
  .project-card h3 {
    font-size: 1.5rem;
  }
  
  .project-tags {
    gap: 0.25rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .project-features li {
    padding-left: 1.25rem;
  }
  
  .footer-content {
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .footer-links {
    gap: 1.5rem;
  }
  
  .footer-link {
    width: 5rem;
    height: 4.5rem;
    font-size: 1.2rem;
  }
  
  .footer-link i {
    font-size: 1.3rem;
  }
  
  .footer-link span {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-header {
    margin-bottom: 2rem;
  }

  .hero-container {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .stat-item {
    width: 200px;
    height: 80px;
    padding: 0.75rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }
  
  .code-window {
    transform: scale(0.85);
    max-width: 280px;
  }
  
  .nav-menu {
    padding: 1rem 0;
  }
  
  .nav-link {
    width: 180px;
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  
  .skill-item {
    width: 120px;
    height: 100px;
    padding: 1rem 0.5rem;
  }
  
  .skill-item i {
    font-size: 2rem;
  }
  
  .skill-item span {
    font-size: 0.75rem;
  }
  
  .project-links {
    flex-direction: column;
  }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #64748b;
    --bg-primary: #1e293b;
    --bg-secondary: #334155;
    --bg-tertiary: #475569;
    --border-color: #475569;
  }
  
  body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .header {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  }
  
  /* GitHub icon in dark mode */
  .skill-item:has(.devicon-github-original) i {
    color: #f1f5f9;
  }
}