/* Base Styles */
:root {
  --bg-primary: #181c24;
  --bg-secondary: #23283b;
  --bg-card: #23283b;
  --text-primary: #f4f4fb;
  --text-secondary: #aeb6cf;
  --text-muted: #6c7a96;
  --primary: #62d5ff;
  --primary-hover: #3ab0e2;
  --secondary: #ff7eb3;
  --border-color: #2e3650;
  --gradient-start: #62d5ff;
  --gradient-end: #ff7eb3;
  --card-shadow: 0 4px 24px rgba(98, 213, 255, 0.08);
  --radius: 0.7rem;
  --transition: all 0.3s cubic-bezier(0.4, 2, 0.6, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at top left, #1f2933, #181c24 55%);
  color: var(--text-primary);
  line-height: 1.7;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #111827;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-hover);
}

/* Focus outline for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* Utilities */
.gradient-text {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

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

.card {
  background: linear-gradient(
    135deg,
    rgba(35, 40, 59, 0.98),
    rgba(17, 24, 39, 0.98)
  );
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(98, 213, 255, 0.25);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Pills / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(98, 213, 255, 0.1);
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: transparent;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  background: rgba(98, 213, 255, 0.15);
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-primary);
}

/* Buttons */
.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(98, 213, 255, 0.16);
  font-size: 0.95rem;
}

.btn i,
.btn-primary i {
  font-size: 0.9rem;
}

.btn:hover,
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 16px rgba(98, 213, 255, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Text link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.text-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem 0;
}

.hero-content {
  flex: 1.2;
}

.hero-content h2 {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero-content p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta i {
  margin-right: 0.35rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-image {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(98, 213, 255, 0.9);
  box-shadow: 0 0 24px rgba(98, 213, 255, 0.25);
  display: block;
  position: relative;
  background: radial-gradient(circle at top, #4b5563, #111827);
}

.profile-image::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px dashed rgba(98, 213, 255, 0.45);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

.profile-image:hover img {
  transform: scale(1.08);
}

/* Tabs */
.tabs {
  margin-bottom: 2rem;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stats-tabs .tabs-list {
  grid-template-columns: repeat(4, 1fr);
}

.tab-trigger {
  padding: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.tab-trigger:hover,
.tab-trigger.active {
  background-color: rgba(98, 213, 255, 0.12);
  border-color: var(--primary);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Badges */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
}

.bg-blue-400 {
  background-color: #60a5fa;
}
.bg-blue-500 {
  background-color: #3b82f6;
}
.bg-blue-600 {
  background-color: #2563eb;
}
.bg-blue-700 {
  background-color: #1d4ed8;
}
.bg-orange-500 {
  background-color: #f97316;
}
.bg-orange-600 {
  background-color: #ea580c;
}
.bg-yellow-500 {
  background-color: #eab308;
}
.bg-red-500 {
  background-color: #ef4444;
}
.bg-purple-600 {
  background-color: #9333ea;
}
.bg-teal-500 {
  background-color: #14b8a6;
}
.bg-gray-700 {
  background-color: #374151;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: rgba(17, 24, 39, 0.95);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
  border-color: rgba(98, 213, 255, 0.6);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

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

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

.project-header {
  padding: 1rem 1rem 0;
  border-bottom: 1px solid rgba(46, 54, 80, 0.7);
}

.project-content {
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

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

.tag {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.project-footer {
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(46, 54, 80, 0.7);
  display: flex;
  gap: 0.5rem;
}

.projects-footer {
  margin-top: 1.5rem;
  text-align: center;
}

/* Stats */
.stats-card {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.stats-card img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Quote Section */
.quote-section {
  padding: 2rem 0;
}

.quote-section .card {
  max-width: 800px;
  margin: 0 auto;
}

blockquote {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  margin: 1rem 0;
}

blockquote footer {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.5rem;
}

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

.card-header p {
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  font-size: 0.9rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(98, 213, 255, 0.2);
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f97373;
}

.connect-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.connect-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.connect-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.connect-icon:hover {
  border-color: var(--primary);
  background-color: rgba(98, 213, 255, 0.15);
}

.connect-icon i {
  font-size: 1.2rem;
}

.connect-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.connect-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Footer */
footer {
  padding: 2rem 0 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
}

footer p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Fade-in (added by JS) */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 0;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .profile-image {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: #020617;
    padding: 1rem 1.5rem 1.25rem;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links a {
    padding: 0.6rem 0.5rem;
  }

  .tabs-list,
  .stats-tabs .tabs-list {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.2rem 0;
  }

  .profile-image {
    width: 170px;
    height: 170px;
  }

  body {
    font-size: 0.98rem;
  }
}
