:root {
  /* Modern design tokens */
  --bg: #070912;
  --bg-2: linear-gradient(180deg, #071028 0%, #0b1020 60%);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.02);
  --glass: rgba(255, 255, 255, 0.04);
  --accent: #5b8cff;
  --accent-2: #36b7ff;
  --text: #e8eef8;
  --text-secondary: #aab6cf;
  --muted: #97a3bf;
  --success: #38d39f;
  --danger: #ff6b6b;
  --radius: 14px;
  --blur: 14px;
  --progress: linear-gradient(90deg, var(--accent), var(--accent-2));
  --base-font: 16px;
  --line-height: 1.6;
  --motion-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue";
  background: var(--bg-2);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: var(--line-height);
  font-size: var(--base-font);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 2.5rem);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(7, 9, 18, 0.6), rgba(7, 9, 18, 0.3));
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 999;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 3vw, 2rem);
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 1.35rem;
  cursor: pointer;
  margin-right: 0.6rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav a,
#downloadCVBtn {
  color: var(--text-secondary);
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 600;
}
#downloadCVBtn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  font-family: inherit;
  transition: color 0.3s var(--motion-ease);
}
#downloadCVBtn:hover {
  color: var(--accent);
}
#progressWrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 4px;
  overflow: hidden;
}
#progressBar {
  height: 4px;
  width: 0;
  background: var(--accent);
  box-shadow: 0 8px 30px rgba(91, 140, 255, 0.14);
}
#themeToggle {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 6.2rem;
  position: relative;
  overflow: hidden;
}

/* Hero Background with Animated Orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 300px at 10% 20%,
      rgba(91, 140, 255, 0.12),
      transparent
    ),
    radial-gradient(
      500px 250px at 90% 80%,
      rgba(54, 183, 255, 0.06),
      transparent
    );
  transform: translateZ(0);
  filter: blur(40px);
  opacity: 0.95;
  z-index: 0;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Animated Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 1;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.4), transparent);
  top: -100px;
  left: -100px;
  animation: float-orb 15s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(54, 183, 255, 0.3), transparent);
  bottom: -50px;
  right: -50px;
  animation: float-orb 18s ease-in-out infinite reverse;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.2), transparent);
  top: 50%;
  right: 10%;
  animation: float-orb 20s ease-in-out infinite;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -30px);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  75% {
    transform: translate(40px, 30px);
  }
}

/* Grid Background */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(91, 140, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(91, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  z-index: 1;
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: rgba(91, 140, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-border 3s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes pulse-border {
  0%,
  100% {
    border-color: rgba(91, 140, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.1);
  }
  50% {
    border-color: rgba(91, 140, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(91, 140, 255, 0.3);
  }
}

/* Hero Text */
.hero-text h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 0 0 0.8rem 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtitle {
  margin: 1rem 0 1.5rem 0;
}

.subtitle-text {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.subtitle-text .highlight {
  color: var(--accent-2);
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 2rem 0;
  max-width: 500px;
  line-height: 1.7;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 300ms var(--motion-ease);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.3);
  border: 1px solid rgba(91, 140, 255, 0.5);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(91, 140, 255, 0.4);
  border-color: rgba(91, 140, 255, 0.8);
}

.btn-primary svg {
  transition: transform 300ms;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(91, 140, 255, 0.3);
  color: var(--text);
  transition: all 300ms;
}

.btn-secondary:hover {
  border-color: rgba(91, 140, 255, 0.8);
  color: var(--accent);
  background: rgba(91, 140, 255, 0.05);
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(91, 140, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Card Premium */
.hero-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(91, 140, 255, 0.2),
    inset 1px 1px 2px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(91, 140, 255, 0.3);
  transition: all 400ms var(--motion-ease);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    800px circle at 50% 50%,
    rgba(91, 140, 255, 0.1),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 400ms;
  pointer-events: none;
}

.hero-card:hover .card-glow {
  opacity: 1;
}

.card-border {
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.5),
    rgba(54, 183, 255, 0.1),
    rgba(91, 140, 255, 0.1)
  );
  border-radius: 20px;
  opacity: 0;
  transition: opacity 400ms;
  pointer-events: none;
  -webkit-mask: linear-gradient(white, white) content-box,
    linear-gradient(white, white);
  mask: linear-gradient(white, white) content-box, linear-gradient(white, white);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-card:hover .card-border {
  opacity: 1;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(91, 140, 255, 0.3),
    inset 1px 1px 2px rgba(255, 255, 255, 0.15);
  border-color: rgba(91, 140, 255, 0.5);
}

.card-top {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.card-avatar {
  position: relative;
  flex-shrink: 0;
}

.card-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(91, 140, 255, 0.3);
  transition: all 300ms;
}

.avatar-glow {
  position: absolute;
  inset: -8px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.3), transparent);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}

.hero-card:hover .card-avatar img {
  border-color: rgba(91, 140, 255, 0.6);
}

.hero-card:hover .avatar-glow {
  opacity: 1;
}

.card-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.card-info strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.card-info small {
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-body {
  flex: 1;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.15),
    rgba(54, 183, 255, 0.08)
  );
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 260ms;
}

.chip:hover {
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.25),
    rgba(54, 183, 255, 0.15)
  );
  border-color: rgba(91, 140, 255, 0.5);
  transform: translateY(-2px);
}

.card-footer {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(91, 140, 255, 0.2);
}

.tech-icons {
  display: flex;
  gap: 0.8rem;
}

.tech-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 140, 255, 0.1);
  border-radius: 10px;
  font-size: 1.2rem;
  transition: all 300ms;
}

.hero-card:hover .tech-icon {
  background: rgba(91, 140, 255, 0.2);
  transform: translateY(-4px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
  animation: float-down 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes float-down {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes bounce-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Hero Responsive */
@media (max-width: 1200px) {
  .hero-inner {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
    padding-top: 5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .subtitle-text {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .hero-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 90vh;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    border-top: none;
    padding-top: 0;
  }

  .card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-info {
    text-align: center;
  }
}

/* Accent Text */
.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card {
  background: var(--surface);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* Featured Project */
.project-featured {
  grid-column: span 1;
}

@media (max-width: 768px) {
  .project-featured {
    grid-column: span 1;
  }
}

/* Project Card */
.project-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(91, 140, 255, 0.15);
  transition: all 360ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.1) 0%,
    rgba(54, 183, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 360ms;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(91, 140, 255, 0.2),
    inset 1px 1px 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(91, 140, 255, 0.4);
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: rgba(91, 140, 255, 0.2);
  border: 1px solid rgba(91, 140, 255, 0.4);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-2);
  backdrop-filter: blur(8px);
  animation: fadeInDown 0.6s ease-out forwards;
}

.project-badge.beta {
  background: rgba(255, 179, 0, 0.15);
  border-color: rgba(255, 179, 0, 0.4);
  color: #ffb300;
}

.project-badge.coming {
  background: rgba(200, 100, 200, 0.15);
  border-color: rgba(200, 100, 200, 0.4);
  color: #c864c8;
}

/* Project Media */
.project-media {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.media-image {
  width: 100%;
  height: 100%;
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .media-image {
  transform: scale(1.08);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 9, 18, 0) 0%,
    rgba(7, 9, 18, 0.7) 80%,
    rgba(7, 9, 18, 0.95) 100%
  );
  opacity: 0.8;
  transition: opacity 360ms;
}

.project-card:hover .media-overlay {
  opacity: 0.95;
}

/* Project Content */
.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.project-header {
  margin-bottom: 1.2rem;
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 260ms;
}

.tag:hover {
  background: rgba(91, 140, 255, 0.25);
  border-color: rgba(91, 140, 255, 0.5);
  transform: translateY(-2px);
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Project Stats */
.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(91, 140, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(91, 140, 255, 0.15);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 700;
}

.stat-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.stat-value.success {
  color: #10b981;
}

.stat-value.pending {
  color: #f59e0b;
}

.stat-value.coming {
  color: #a78bfa;
}

/* Project Footer */
.project-footer {
  display: flex;
  gap: 1rem;
}

.btn-project {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.2),
    rgba(54, 183, 255, 0.15)
  );
  border: 1.5px solid rgba(91, 140, 255, 0.4);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 260ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-project::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.3),
    rgba(54, 183, 255, 0.25)
  );
  opacity: 0;
  transition: opacity 260ms;
}

.btn-project:hover::before {
  opacity: 1;
}

.btn-project:hover {
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.3),
    rgba(54, 183, 255, 0.25)
  );
  border-color: rgba(91, 140, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.25);
}

.btn-project svg {
  transition: transform 260ms;
}

.btn-project:hover svg {
  transform: translate(3px, -3px);
}

.btn-project.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

/* Projects CTA */
.projects-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.08) 0%,
    rgba(54, 183, 255, 0.05) 100%
  );
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.projects-cta p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.btn-large {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 260ms;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(91, 140, 255, 0.3);
}

.btn-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 140, 255, 0.4);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skills Section */

/* Skills Highlight - Core Skills */
.skills-highlight {
  margin-bottom: 4rem;
}

.skills-highlight h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(91, 140, 255, 0.2);
}

.core-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .core-skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .core-skills {
    grid-template-columns: 1fr;
  }
}

.core-skill-card {
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.08) 0%,
    rgba(54, 183, 255, 0.04) 100%
  );
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 14px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.core-skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.1) 0%,
    rgba(54, 183, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 300ms;
}

.core-skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 12px 40px rgba(91, 140, 255, 0.15);
}

.core-skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}

.core-skill-card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.skill-percentage {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(91, 140, 255, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.core-skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.skill-bar.compact {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(91, 140, 255, 0.15);
}

.skill-bar.compact .skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left;
  border-radius: 999px;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(91, 140, 255, 0.2) inset;
}

/* Skills Learning Section */
.skills-learning {
  margin-bottom: 4rem;
}

.skills-learning h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 179, 0, 0.2);
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .learning-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .learning-grid {
    grid-template-columns: 1fr;
  }
}

.learning-card {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 179, 0, 0.08) 0%,
    rgba(255, 198, 0, 0.04) 100%
  );
  border: 1px solid rgba(255, 179, 0, 0.2);
  border-radius: 12px;
  transition: all 300ms;
}

.learning-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 0, 0.4);
  box-shadow: 0 10px 30px rgba(255, 179, 0, 0.1);
}

.learning-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.learning-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.badge-learning {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffb300;
  background: rgba(255, 179, 0, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  margin-bottom: 0.8rem;
}

.learning-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.learning-card .skill-bar.compact {
  border-color: rgba(255, 179, 0, 0.15);
}

.learning-card .skill-bar.compact .skill-progress.learning {
  background: linear-gradient(90deg, #ffb300, #ffc600);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.15) inset;
}

/* Professional Skills / Tools */
.professional-skills {
  margin-bottom: 3rem;
}

.professional-skills h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(91, 140, 255, 0.2);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-badge {
  padding: 0.7rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.12) 0%,
    rgba(54, 183, 255, 0.08) 100%
  );
  border: 1px solid rgba(91, 140, 255, 0.25);
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 260ms;
  cursor: default;
  white-space: nowrap;
}

.tool-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 140, 255, 0.4);
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.18) 0%,
    rgba(54, 183, 255, 0.12) 100%
  );
  box-shadow: 0 8px 20px rgba(91, 140, 255, 0.15);
}

/* Experience Summary */
.experience-summary {
  margin-top: 3rem;
}

.exp-card {
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.06) 0%,
    rgba(54, 183, 255, 0.03) 100%
  );
  border: 1.5px solid rgba(91, 140, 255, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(91, 140, 255, 0.15);
}

.exp-header h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.exp-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(91, 140, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-list li {
  padding: 0.8rem 0 0.8rem 2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 2px solid rgba(91, 140, 255, 0.25);
  position: relative;
  transition: all 260ms;
}

.exp-list li:hover {
  border-left-color: rgba(91, 140, 255, 0.5);
  color: var(--text);
  padding-left: 2.5rem;
}

.exp-list li::before {
  content: "→";
  position: absolute;
  left: -8px;
  color: var(--accent);
  font-weight: 800;
  transition: transform 260ms;
}

.exp-list li:hover::before {
  transform: translateX(4px);
}

.exp-list li strong {
  color: var(--text);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .skill-progress,
  .core-skill-card,
  .learning-card,
  .tool-badge,
  .exp-list li {
    transition: none;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.4rem;
}
.contact-form label {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.form-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hint {
  color: var(--text-secondary);
}

.footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.996);
  transition: opacity 520ms var(--motion-ease),
    transform 520ms var(--motion-ease);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal.delay {
  transition-delay: 90ms;
}
.reveal.delay-1 {
  transition-delay: 160ms;
}
.reveal.delay-2 {
  transition-delay: 240ms;
}
.reveal.delay-3 {
  transition-delay: 320ms;
}
.reveal.delay-4 {
  transition-delay: 400ms;
}

/* responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 64px;
    right: 0;
    background: linear-gradient(
      180deg,
      rgba(7, 9, 18, 0.98),
      rgba(7, 9, 18, 0.95)
    );
    backdrop-filter: blur(8px);
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    transform: translateY(-12px) translateX(8px);
    opacity: 0;
    pointer-events: none;
    transition: all 220ms;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .nav-links a {
    margin: 0.5rem 0;
  }
}
@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .nav-inner {
    padding: 0.8rem 1rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 5.6rem;
  }
  .hero-card {
    display: none;
  }
}

/* Timeline Section - Modern Design */

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(91, 140, 255, 0.8) 0%,
    rgba(54, 183, 255, 0.4) 50%,
    rgba(91, 140, 255, 0.8) 100%
  );
  box-shadow: 0 0 20px rgba(91, 140, 255, 0.4);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
  padding-right: 3rem;
  width: calc(50% - 40px);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: auto;
  padding-left: 3rem;
  width: calc(50% - 40px);
  text-align: left;
}

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 3px solid var(--bg);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 30px rgba(91, 140, 255, 0.6), 0 0 60px rgba(91, 140, 255, 0.3);
  transition: all 300ms;
}

.timeline-item:hover .timeline-dot {
  width: 28px;
  height: 28px;
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 40px rgba(91, 140, 255, 0.8), 0 0 80px rgba(91, 140, 255, 0.5);
}

/* Timeline Content Card */
.timeline-content {
  padding: 1.8rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.08) 0%,
    rgba(54, 183, 255, 0.04) 100%
  );
  border: 1.5px solid rgba(91, 140, 255, 0.25);
  border-radius: 12px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.timeline-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.1) 0%,
    rgba(54, 183, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 300ms;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 15px 50px rgba(91, 140, 255, 0.15);
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.12) 0%,
    rgba(54, 183, 255, 0.08) 100%
  );
  transform: translateY(-6px);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-content h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.8rem 0;
  position: relative;
  z-index: 1;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.6rem 0;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.timeline-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 260ms;
}

.timeline-content a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0 0;
  position: relative;
  z-index: 1;
}

.timeline-content li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.timeline-content li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Timeline Marker Emoji */
.timeline-marker {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
  transition: transform 300ms;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.15) rotate(5deg);
}

/* Timeline Tags */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.timeline-tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 260ms;
}

.timeline-tag:hover {
  background: rgba(91, 140, 255, 0.2);
  border-color: rgba(91, 140, 255, 0.5);
  transform: translateY(-2px);
}

/* Timeline Achievement Box */
.timeline-achievement {
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.15) 0%,
    rgba(54, 183, 255, 0.08) 100%
  );
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.timeline-achievement strong {
  color: var(--accent);
  font-weight: 700;
}

/* Responsive Timeline */
@media (max-width: 1024px) {
  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    justify-content: flex-start;
    margin-bottom: 2.5rem;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: 100%;
    max-width: 100%;
    margin-left: 60px;
    margin-right: 0;
    padding: 1.8rem;
    text-align: left;
  }

  .timeline-dot {
    left: 8px;
    top: 8px;
  }
}

@media (max-width: 640px) {
  .timeline::before {
    left: 12px;
  }

  .timeline-content {
    padding: 1.4rem;
    border-radius: 10px;
  }

  .timeline-content h4 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
    padding-left: 1.4rem;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
    border-width: 2.5px;
  }

  .timeline-item:hover .timeline-dot {
    width: 24px;
    height: 24px;
  }
}
/* Dark/light toggle (simple) */
body.light {
  --bg-2: linear-gradient(180deg, #ffffff 0%, #f3f6fb 60%);
  color: #071126;
}
body.light .nav {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.6)
  );
}

/* Services & General Cards */
.morph-card {
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.08) 0%,
    rgba(54, 183, 255, 0.04) 100%
  );
  color: var(--text);
  border: 1.5px solid rgba(91, 140, 255, 0.25);
  border-radius: 14px;
  padding: 2rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.morph-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.1) 0%,
    rgba(54, 183, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 300ms;
}

.morph-card:hover {
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 15px 50px rgba(91, 140, 255, 0.15);
  transform: translateY(-8px);
}

.morph-card:hover::before {
  opacity: 1;
}

.morph-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.morph-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Glass Card */
.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(91, 140, 255, 0.2);
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 300ms;
  backdrop-filter: blur(10px);
  position: relative;
}

.glass-card:hover {
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 10px 35px rgba(91, 140, 255, 0.12);
  transform: translateY(-4px);
}

.glass-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* About section: Enhanced layout with modern design */

/* Profile Card Premium */
.about-profile {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(91, 140, 255, 0.05) 0%,
    rgba(54, 183, 255, 0.03) 100%
  );
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 20px;
}

.profile-image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.profile-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(91, 140, 255, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(30px);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.profile-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid rgba(91, 140, 255, 0.3);
  box-shadow: 0 20px 60px rgba(91, 140, 255, 0.2);
  transition: transform 300ms var(--motion-ease), border-color 300ms;
}

.profile-image:hover {
  transform: scale(1.02);
  border-color: rgba(91, 140, 255, 0.5);
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.profile-header h3 {
  font-size: 1.8rem;
  margin: 0 0 0.4rem 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.profile-tagline {
  margin: 0;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.95rem;
}

.profile-bio {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.profile-bio strong {
  color: var(--accent);
}

.profile-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-badges .badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 260ms var(--motion-ease);
}

.profile-badges .badge:hover {
  background: rgba(91, 140, 255, 0.2);
  border-color: rgba(91, 140, 255, 0.5);
  transform: translateY(-2px);
}

.profile-cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

/* Info Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.info-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 14px;
  padding: 1.4rem;
  transition: all 300ms var(--motion-ease);
}

.info-card:hover {
  background: linear-gradient(
    180deg,
    rgba(91, 140, 255, 0.08),
    rgba(91, 140, 255, 0.04)
  );
  border-color: rgba(91, 140, 255, 0.3);
  transform: translateY(-4px);
}

.info-header {
  margin-bottom: 1rem;
}

.info-header h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-list li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-list strong {
  color: var(--text);
}

.info-list .link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 260ms;
}

.info-list .link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Tech Tags */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(54, 183, 255, 0.12);
  border: 1px solid rgba(54, 183, 255, 0.3);
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 260ms;
}

.tech-tag:hover {
  background: rgba(54, 183, 255, 0.2);
  border-color: rgba(54, 183, 255, 0.5);
  transform: translateY(-2px);
}

/* Featured Projects Section */
.featured-projects-section {
  margin-top: 2rem;
}

.featured-projects-section h3 {
  font-size: 1.3rem;
  margin: 0 0 1.5rem 0;
  color: var(--text);
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mini-project-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(91, 140, 255, 0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: all 300ms var(--motion-ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mini-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(91, 140, 255, 0.4);
  box-shadow: 0 20px 50px rgba(91, 140, 255, 0.15);
}

.mini-thumb {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.mini-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 18, 0.4) 100%);
}

.mini-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.mini-content h5 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mini-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  flex: 1;
}

.btn-mini {
  align-self: flex-start;
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.3);
  border-radius: 8px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 260ms;
  margin-top: auto;
}

.btn-mini:hover {
  background: rgba(91, 140, 255, 0.2);
  border-color: rgba(91, 140, 255, 0.5);
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-image-wrapper {
    width: 240px;
    height: 240px;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-profile {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .profile-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .profile-header h3 {
    font-size: 1.4rem;
  }

  .profile-cta {
    flex-direction: column;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .info-card {
    padding: 1rem;
  }

  .featured-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .about-profile {
    padding: 1rem;
  }

  .profile-image-wrapper {
    width: 160px;
    height: 160px;
  }

  .profile-header h3 {
    font-size: 1.2rem;
  }

  .profile-bio {
    font-size: 0.9rem;
  }

  .profile-badges {
    gap: 0.4rem;
  }

  .profile-badges .badge {
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .featured-projects-section h3 {
    font-size: 1.1rem;
  }
}

/* small polish */
a {
  transition: color 180ms;
}
.btn {
  transition: transform 180ms;
}
.btn:hover {
  transform: translateY(-4px);
}
.project-card:hover {
  transform: translateY(-6px);
  transition: transform 220ms;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.55);
}

/* skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #fff;
  color: #071126;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  z-index: 9999;
  transform: translateY(-120%);
  transition: transform 200ms;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--accent);
}

/* effects toggle visual */
#effectsToggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
}
#effectsToggle[aria-pressed="true"] {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* handled above in responsive block */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 120;
}
.modal[aria-hidden="false"] {
  display: block;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.6),
    rgba(2, 6, 23, 0.75)
  );
  backdrop-filter: blur(8px);
}
.modal-panel {
  position: relative;
  max-width: 960px;
  margin: 6vh auto;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 28px 120px rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 130;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}
.modal-content h3 {
  margin: 0 0 0.6rem 0;
}
#modalMedia {
  margin-top: 0.8rem;
}
#modalMedia iframe {
  width: 100%;
  height: 520px;
  border-radius: 12px;
  border: 0;
}

.settings {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 140;
}
#settingsToggle {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: 0;
  color: white;
  padding: 0.6rem;
  border-radius: 12px;
  cursor: pointer;
}
.settings-body {
  background: linear-gradient(
    180deg,
    rgba(7, 9, 18, 0.96),
    rgba(7, 9, 18, 0.92)
  );
  color: var(--text-secondary);
  padding: 0.8rem;
  border-radius: 10px;
  margin-top: 8px;
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
}
.settings-body label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.settings-body input {
  margin-right: 0.5rem;
}

@media (max-width: 640px) {
  .modal-panel {
    margin: 4vh 12px;
    padding: 0.9rem;
  }
  #modalMedia iframe {
    height: 260px;
  }
  #settingsToggle {
    padding: 0.5rem;
  }
}

/* Timeline — scoped styles (solo para la sección #timeline) */
#timeline .timeline {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
}

#timeline .timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

#timeline .timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 14px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(91, 140, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.06);
}

#timeline .timeline-content {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.45);
  color: var(--text);
  max-width: 78ch;
}

#timeline .timeline-content h4 {
  margin: 0 0 0.45rem 0;
  font-size: 1.05rem;
  color: var(--text);
}

#timeline .timeline-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

#timeline .timeline-content a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
#timeline .timeline-content a:hover {
  text-decoration: underline;
}

/* Mobile: stack dot to the left and make content full width */
@media (max-width: 820px) {
  #timeline .timeline-item {
    align-items: flex-start;
  }
  #timeline .timeline-dot {
    margin-top: 8px;
  }
  #timeline .timeline-content {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #timeline .timeline-content {
    transition: none !important;
  }
}

/* Services section: fuerza tema oscuro y colores legibles */
#services {
  background: var(--bg-2);
}

#services .container {
  color: var(--text);
}

#services .section-title {
  color: var(--text);
}

#services .morph-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

#services .morph-card h3 {
  color: var(--text);
}

#services .morph-card p {
  color: var(--muted);
}

/* Thank-you banner in Contact section */
#thankYouBanner {
  background: linear-gradient(
    180deg,
    rgba(56, 56, 60, 0.98),
    rgba(20, 22, 28, 0.95)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--text);
}

#thankYouBanner .link {
  color: var(--accent);
  font-weight: 600;
}

/* About section adjustments */
#about .btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
}

#about .btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

#about .pulse-button::after {
  box-shadow: 0 0 0 2px rgba(91, 140, 255, 0.12);
}
