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

:root {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-card: #1f2937;
  --accent-primary: #818cf8;
  --accent-secondary: #a5b4fc;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #111827 0%, #0d1117 40%, #080c12 100%);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0d1117 0%, #1a1f35 50%, #1e2040 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.12) 0%, transparent 65%);
  animation: pulse 8s ease-in-out infinite;
}

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

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(99,102,241,0.2);
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #c7d2fe;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 35px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  background: var(--accent-gradient);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
}

.btn.btn-secondary {
  background: transparent;
  border: 1px solid rgba(129,140,248,0.35);
  color: var(--text-primary);
  box-shadow: none;
}

.btn.btn-secondary:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(129,140,248,0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.15);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator a {
  color: #4b5563;
  font-size: 1.6rem;
  animation: bounce 2s infinite;
  text-decoration: none;
}

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

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

section {
  margin: 100px 0;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 50px;
  color: #e0e7ff;
  letter-spacing: -0.02em;
}

.section-description {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 40px;
  font-family: 'JetBrains Mono', monospace;
}

/* About Section */
.about-section {
  background: rgba(31,41,55,0.5);
  padding: 60px 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.about-content p {
  font-size: 1.1rem;
  color: #9ca3af;
  max-width: 760px;
  margin: 0 auto 25px;
  text-align: center;
  line-height: 1.9;
}

.about-content strong {
  color: #a5b4fc;
  font-weight: 600;
}

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

.skill-category {
  background: rgba(31,41,55,0.6);
  padding: 28px;
  border-radius: 14px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(129,140,248,0.25);
  background: rgba(31,41,55,0.9);
}

.skill-category h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills span {
  background: rgba(99,102,241,0.1);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #d1d5db;
  transition: all 0.2s ease;
  border: 1px solid rgba(99,102,241,0.2);
}

.skills span:hover {
  background: rgba(99,102,241,0.2);
  border-color: rgba(129,140,248,0.5);
  color: #e0e7ff;
  transform: translateY(-2px);
}

/* Projects Section */
.projects-section {
  background: rgba(17,24,39,0.7);
  padding: 60px 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: rgba(31,41,55,0.7);
  padding: 28px;
  border-radius: 14px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

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

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(129,140,248,0.2);
  background: rgba(31,41,55,0.95);
}

.project-icon {
  font-size: 2rem;
  color: #818cf8;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #f9fafb;
  letter-spacing: -0.01em;
}

.status-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #c7d2fe;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.28);
}

.project-card p {
  color: #9ca3af;
  margin-bottom: 18px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-tags span {
  background: rgba(99,102,241,0.1);
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.project-link:hover {
  color: #a5b4fc;
  transform: translateX(4px);
}

.project-link i {
  transition: transform 0.2s ease;
}

.project-link:hover i {
  transform: translateX(4px);
}

.project-link.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  color: #9ca3af;
}

.project-link.disabled:hover {
  color: #9ca3af;
  transform: none;
}

/* Metric badges */
.metrics-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(110,231,183,0.3);
  background: rgba(110,231,183,0.07);
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #6ee7b7;
  margin-right: 5px;
}

/* Learning & Certifications Section */
.learning-section {
  background: rgba(17,24,39,0.6);
  padding: 60px 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.learning-item {
  background: rgba(31,41,55,0.6);
  padding: 28px;
  border-radius: 14px;
  text-align: center;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.learning-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-color: rgba(129,140,248,0.2);
  background: rgba(31,41,55,0.9);
}

.learning-icon {
  font-size: 2rem;
  color: #818cf8;
  margin-bottom: 16px;
}

.learning-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 16px;
}

.learning-item p {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.learning-item p strong {
  color: #a5b4fc;
  font-weight: 600;
}

.book-author {
  font-size: 0.85rem;
  color: #6b7280;
  font-style: italic;
}

/* Contact Section */
.contact-section {
  background: rgba(17,24,39,0.7);
  padding: 60px 40px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.contact-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  background: rgba(31,41,55,0.7);
  padding: 36px 40px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.06);
  min-width: 200px;
  color: var(--text-primary);
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  border-color: rgba(129,140,248,0.3);
  background: rgba(31,41,55,1);
}

.contact-card i {
  font-size: 2.5rem;
  color: #818cf8;
  margin-bottom: 14px;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 8px;
}

.contact-card p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: #080c12;
  text-align: center;
  padding: 30px 20px;
  color: #4b5563;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-tagline {
  margin-top: 8px;
  font-style: italic;
  color: #374151;
}

/* Focus accessibility */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #818cf8;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .scroll-indicator a { animation: none !important; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero { height: auto; min-height: 100svh; }

  .hero h1 { font-size: clamp(2rem, 6vw, 2.5rem); }
  .hero h2 { font-size: 1.2rem; }
  .subtitle { font-size: 0.9rem; }
  h2 { font-size: 1.9rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .learning-grid { grid-template-columns: 1fr; }

  .about-section,
  .projects-section,
  .learning-section,
  .contact-section { padding: 40px 20px; }

  section { margin: 60px 0; }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 300px;
  }
}
