/* =============================================
   GLOBAL & VARIABLES
   ============================================= */
:root {
  --bg-primary:    #060d1f;
  --bg-secondary:  #0d1b2e;
  --bg-card:       #0f1e35;
  --border-color:  #1a3a5c;
  --accent-blue:   #3b82f6;
  --accent-cyan:   #22d3ee;
  --accent-glow:   rgba(59, 130, 246, 0.15);
  --text-primary:  #f1f5f9;
  --text-muted:    #94a3b8;
  --text-dim:      #64748b;
  --font-mono:     'Fira Code', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-mono { font-family: var(--font-mono); }

.text-accent { color: var(--accent-blue); }
.text-cyan   { color: var(--accent-cyan); }
.text-muted-custom { color: var(--text-muted); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-divider {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border: none;
  margin: 0 0 2rem 0;
  border-radius: 2px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar-custom {
  background: rgba(6, 13, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar-brand-custom {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.navbar-brand-custom .brand-accent {
  color: var(--accent-cyan);
}

.navbar-brand-custom:hover { color: var(--accent-cyan) !important; }

.nav-link-custom {
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-primary) !important;
  background: var(--accent-glow);
}

.navbar-toggler-custom {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-job-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 0.9rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.45);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-outline-custom:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--accent-glow);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  background: #0a1628;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
}

.t-prompt { color: var(--accent-cyan); }
.t-cmd    { color: var(--text-primary); }
.t-key    { color: var(--accent-blue); }
.t-val    { color: #86efac; }
.t-comment{ color: var(--text-dim); }
.t-arrow  { color: var(--accent-cyan); }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent-cyan);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* =============================================
   SECTIONS COMMUNES
   ============================================= */
.section-dark {
  background-color: var(--bg-primary);
  padding: 5rem 0;
}

.section-darker {
  background-color: var(--bg-secondary);
  padding: 5rem 0;
}

/* =============================================
   SKILLS
   ============================================= */
.skills-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.skills-category:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.skills-category-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.skills-category-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.skill-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.25rem 0.6rem;
  margin: 0.2rem 0.2rem 0.2rem 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.skill-tag:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.07);
}

/* =============================================
   TIMELINE (Experience)
   ============================================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.timeline-card:hover { border-color: var(--accent-blue); }

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* =============================================
   PROJECT CARDS
   ============================================= */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.15);
}

.project-card-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}

.status-done {
  color: #86efac;
  background: rgba(134, 239, 172, 0.1);
  border: 1px solid rgba(134, 239, 172, 0.25);
}

.status-wip {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.project-card-body {
  padding: 1rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-tags { margin-bottom: 1.25rem; }

.project-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.btn-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.btn-card-link:hover {
  color: var(--accent-cyan);
  gap: 0.7rem;
}

/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */
.project-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-custom {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.breadcrumb-custom a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-custom a:hover { color: var(--accent-cyan); }

.breadcrumb-custom span { color: var(--text-dim); margin: 0 0.5rem; }

.schema-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-dim);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: border-color 0.3s;
}

.schema-placeholder:hover { border-color: var(--accent-blue); }

.schema-placeholder .schema-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-blue);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}

.step-card:hover {
  border-left-color: var(--accent-cyan);
  transform: translateX(4px);
}

.step-number {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* =============================================
   DIPLOMES PAGE
   ============================================= */
.diploma-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.diploma-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

.diploma-img-wrapper {
  background: #0a1628;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.diploma-placeholder-icon {
  font-size: 4rem;
  opacity: 0.18;
}

.diploma-placeholder-text {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(0,0,0,0.5);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px dashed var(--border-color);
}

.diploma-img-wrapper img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

.diploma-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.diploma-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.diploma-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.diploma-org {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.diploma-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
}

.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.contact-value a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value a:hover { color: var(--text-primary); }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #86efac;
  background: rgba(134, 239, 172, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.25);
  border-radius: 20px;
  padding: 0.5rem 1.25rem;
}

.availability-dot {
  width: 8px;
  height: 8px;
  background: #86efac;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  text-align: center;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-text a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.footer-text a:hover { text-decoration: underline; }

/* =============================================
   MISC UTILITIES
   ============================================= */
.grid-bg {
  background-image: 
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.border-custom { border-color: var(--border-color) !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 5rem 0 3rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-terminal { margin-top: 3rem; }
  .timeline { padding-left: 1.5rem; }
  .timeline-item::before { left: -1.875rem; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .step-card { flex-direction: column; }
}
