/* ==================== PAGE HEADER ==================== */
.page-header {
  padding-top: calc(72px + var(--sp-16));
  padding-bottom: var(--sp-10);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--sp-4);
}

.page-header-subtitle {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==================== SECTION CTA ==================== */
.section-cta {
  text-align: center;
  margin-top: var(--sp-10);
}

/* ==================== ABOUT BIO ==================== */
.about-bio {
  max-width: 800px;
  margin: 0 auto;
}

.about-bio-text {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

/* ==================== CONTACT ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

.contact-card {
  padding: var(--sp-6);
  text-align: center;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto var(--sp-4);
}

.contact-card h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.contact-card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}

.contact-card-note {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 500;
}

.contact-form-wrapper {
  padding: var(--sp-8);
}

.contact-form-title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-6);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899b0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group select option {
  background: var(--bg);
  color: var(--text);
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  outline: none;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 17, 31, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

.navbar.scrolled {
  background: rgba(7, 17, 31, 0.95);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo {
  font-weight: 900;
  font-size: 1.6rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--sp-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition-base);
  border-radius: 1px;
}

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

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--gradient);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-accent);
}

.nav-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.nav-theme-toggle .icon-light { display: none; }
.nav-theme-toggle .icon-dark { display: block; }

[data-theme="light"] .nav-theme-toggle .icon-light { display: block; }
[data-theme="light"] .nav-theme-toggle .icon-dark { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition-base);
  border-radius: 2px;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 16px;
  background: var(--accent-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--accent);
  margin-bottom: var(--sp-6);
  font-weight: 500;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--sp-4);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: var(--text-xl);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  font-weight: 400;
}

.hero-description {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-8);
  max-width: 520px;
  font-size: var(--text-base);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.hero-social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.hero-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

.hero-stats {
  display: flex;
  gap: var(--sp-6);
}

.stat-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  text-align: center;
}

.stat-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: var(--sp-1);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  box-shadow:
    0 0 60px rgba(124, 58, 237, 0.15),
    0 0 120px rgba(6, 182, 212, 0.08);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--text-muted);
  gap: var(--sp-4);
}

.hero-image-placeholder span {
  font-size: var(--text-4xl);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: blob-float 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: 10%;
  right: 10%;
}

.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: var(--accent-2);
  bottom: 20%;
  left: 5%;
  animation-delay: -2s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--accent-3);
  top: 50%;
  left: 40%;
  animation-delay: -4s;
  opacity: 0.2;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

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

.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: var(--text-xs);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-badge {
  display: inline-block;
  font-size: var(--text-xs);
  color: #f59e0b;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

.modal-category {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--accent);
  margin-bottom: var(--sp-4);
  font-weight: 500;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.project-tech-tag,
.modal-tech span {
  font-size: var(--text-xs);
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.modal-blog-meta {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.blog-tag {
  font-size: var(--text-xs);
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
}

/* ==================== GLASS CARD ==================== */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ==================== SKILLS ==================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.skill-category {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--transition-base);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.skill-category h3 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.skill-tag {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: all var(--transition-fast);
  font-weight: 500;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ==================== TIMELINE ==================== */
.timeline-container {
  position: relative;
  padding-left: var(--sp-8);
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--sp-10);
  padding-left: var(--sp-8);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-8) - 5px);
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-content {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.timeline-date {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.timeline-role {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.timeline-company {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-3);
}

.timeline-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}

.timeline-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.timeline-highlight {
  font-size: var(--text-xs);
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ==================== PROJECT CARD ==================== */
.project-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

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

.project-image {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--bg-soft);
}

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

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

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  font-weight: 900;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
  color: rgba(255, 255, 255, 0.15);
}

.project-image-placeholder span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.6;
}

.project-card.project-featured .project-image {
  height: 260px;
}

.project-content {
  padding: var(--sp-6);
}

.project-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.project-description {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.project-tech span {
  font-size: var(--text-xs);
  padding: 3px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-links {
  display: flex;
  gap: var(--sp-3);
}

/* ==================== FILTER CHIPS ==================== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}

.filter-chip {
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-base);
}

.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

/* ==================== BLOG CARD ==================== */
.blog-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.blog-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-soft);
}

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

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

.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(236, 72, 153, 0.12));
}

.blog-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: rgba(255, 255, 255, 0.2);
}

.blog-content {
  padding: var(--sp-6);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-3);
}

.blog-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.4;
}

.blog-summary {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-tags {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.blog-tags span {
  font-size: var(--text-xs);
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
}

.blog-read-more {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: none;
  border: none;
  padding: 0;
}

.blog-read-more:hover {
  color: var(--accent-2);
}

/* ==================== COURSE CARD ==================== */
.course-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--transition-base);
}

.course-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.course-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.course-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gradient);
  font-size: 24px;
}

.course-info {
  flex: 1;
}

.course-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--sp-1);
  line-height: 1.3;
}

.course-provider {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.course-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.course-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.course-status {
  font-size: var(--text-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.course-status.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.course-status.status-in-progress {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.course-status.status-teaching {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent);
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--sp-3);
  transition: color var(--transition-fast);
}

.course-link:hover {
  color: var(--accent-2);
}

/* ==================== MODAL ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--sp-10);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: transparent;
}

.modal-container::-webkit-scrollbar-thumb {
  background: var(--surface-strong);
  border-radius: 3px;
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.15));
}

.modal-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  line-height: 1.2;
}

.modal-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.modal-tags span {
  font-size: var(--text-xs);
  padding: 4px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-weight: 500;
}

.modal-body {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: var(--text-base);
}

.modal-body p {
  margin-bottom: var(--sp-4);
}

.modal-body strong {
  color: var(--text);
  font-weight: 600;
}

.modal-body h3 {
  color: var(--text);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: var(--sp-6) 0 var(--sp-3);
}

.modal-links {
  display: flex;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

/* ==================== CHATBOT ==================== */
.chatbot-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1500;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
  transition: all var(--transition-base);
  color: white;
  border: none;
}

.chatbot-launcher:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5);
}

.chatbot-launcher.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.chatbot-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: rgba(13, 23, 40, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  z-index: 1500;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chatbot-panel.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-full);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.chatbot-avatar svg {
  width: 18px;
  height: 18px;
}

.chatbot-header-info h4 {
  font-size: var(--text-sm);
  font-weight: 700;
}

.chatbot-header-info span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
}

.chatbot-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
  border: none;
}

.chatbot-close:hover {
  background: var(--surface);
  color: var(--text);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--surface-strong);
  border-radius: 2px;
}

.chatbot-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.chatbot-message.bot {
  background: var(--surface);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-message.user {
  background: var(--gradient);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-message.bot strong {
  color: var(--text);
  font-weight: 600;
}

.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing-dot 1.4s infinite;
}

.chatbot-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatbot-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: 0 var(--sp-4) var(--sp-3);
}

.chatbot-quick-reply {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.chatbot-quick-reply:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.chatbot-input-area {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
}

.chatbot-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: var(--text);
  font-size: var(--text-sm);
  transition: border-color var(--transition-fast);
}

.chatbot-input::placeholder {
  color: var(--text-muted);
}

.chatbot-input:focus {
  border-color: var(--accent);
  outline: none;
}

.chatbot-send {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  border: none;
  transition: transform var(--transition-fast);
}

.chatbot-send:hover {
  transform: scale(1.1);
}

/* ==================== FOOTER ==================== */
.footer {
  padding: var(--sp-20) 0 var(--sp-10);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-4);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 500px;
  margin: 0 auto var(--sp-8);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-8);
}

.footer-social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-heart {
  color: var(--accent-3);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 96px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

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

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ==================== EDUCATION ==================== */
.education-card {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.education-institution {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.education-degree {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* ==================== LANGUAGES ==================== */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  max-width: 600px;
  margin: 0 auto;
}

.language-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--transition-base);
}

.language-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.language-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-1);
}

.language-level {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ==================== TESTIMONIALS ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-6);
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.testimonial-quote {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--sp-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.testimonial-name {
  font-size: var(--text-base);
  font-weight: 700;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.testimonial-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-strong);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.testimonial-linkedin:hover {
  background: var(--accent);
  color: white;
}

.testimonial-linkedin svg {
  width: 18px;
  height: 18px;
}

/* ==================== PROJECT PAGE ==================== */
.project-hero {
  padding-top: calc(72px + var(--sp-16));
  padding-bottom: var(--sp-10);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-8);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
}

.project-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.project-category {
  display: inline-block;
  padding: var(--sp-1) var(--sp-4);
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--sp-4);
}

.project-title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl));
  font-weight: 900;
  margin-bottom: var(--sp-6);
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.tech-tag {
  padding: var(--sp-1) var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-mono);
}

.project-hero-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.project-showcase {
  padding: var(--sp-8) 0;
}

.project-image-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.project-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image-full .project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-full .project-image-placeholder span {
  font-size: 72px;
  font-weight: 900;
  color: white;
  opacity: 0.8;
}

.project-content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-12);
}

@media (max-width: 768px) {
  .project-content-grid {
    grid-template-columns: 1fr;
  }
}

.project-main h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.project-main p {
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.project-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: sticky;
  top: calc(72px + var(--sp-6));
}

.project-info-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: var(--text-muted);
}

.next-project-card {
  text-align: center;
  padding: var(--sp-8);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.next-label {
  display: block;
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-2);
}

.next-link {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  transition: opacity var(--transition-fast);
}

.next-link:hover {
  opacity: 0.8;
}

/* ==================== BLOG POST PAGE ==================== */
.post-hero {
  padding-top: calc(72px + var(--sp-16));
  padding-bottom: var(--sp-10);
}

.post-hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.post-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--sp-6);
}

.post-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
}

.post-tag {
  padding: var(--sp-1) var(--sp-3);
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
}

.post-share {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-3);
}

.share-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

.post-content {
  padding-top: 0;
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.9;
}

.post-body p {
  margin-bottom: var(--sp-6);
}

.post-body strong {
  font-weight: 700;
  color: var(--accent);
}

.post-body h2, .post-body h3 {
  font-weight: 700;
  margin: var(--sp-8) 0 var(--sp-4);
}

.post-footer {
  max-width: 720px;
  margin: var(--sp-16) auto 0;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
}

.post-author-card {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar span {
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
}

.author-info h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.author-info p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-3);
}

.author-socials {
  display: flex;
  gap: var(--sp-3);
}

.author-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-strong);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.author-socials a:hover {
  background: var(--accent);
  color: white;
}

.author-socials svg {
  width: 16px;
  height: 16px;
}

/* ==================== LOADER ==================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.loader-logo {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--surface);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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