[data-theme="light"] .contact-card .contact-info p {
  color: #6c757d; 
}[data-theme="light"] .contact-card .contact-info h4 {
  color: #333; 
}

[data-theme="light"] footer {
  background-color: #f8f9fa; 
  border-top: 1px solid #dee2e6; 
}

[data-theme="light"] footer .text-secondary {
  color: #6c757d !important; 
}:root {
  --bg: #0A0A0B;              
  --surface: #0F1117;        
  --surface-1: #0B0D12;      
  --surface-2: #0D1016;     
  --text: #E5E7EB;            
  --muted: #9CA3AF;           
  --primary: #2563EB;        
  --primary-2: #1D4ED8;     
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}

[data-theme="light"] {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-1: #F8FAFC;
  --surface-2: #F1F5F9;
  --text: #111827;
  --muted: #374151;
  --primary: #1D4ED8;
  --primary-2: #2563EB;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
}

.glass-nav {
  background: rgba(17, 20, 26, 0.4);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .glass-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .glass-nav .navbar-brand,
[data-theme="light"] .glass-nav .nav-link {
  color: #111827;
}
[data-theme="light"] .glass-nav .nav-link.active,
[data-theme="light"] .glass-nav .nav-link:hover {
  color: #000;
}

.navbar .navbar-brand {
  letter-spacing: 0.2px;
  color: var(--text);
}

.navbar .nav-link {
  color: var(--muted);
}

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

.hero-section {
  position: relative;
  padding-top: 120px;
  padding-bottom: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 70% 0%, rgba(110, 168, 254, 0.12), transparent 60%),
              radial-gradient(700px 500px at 30% 20%, rgba(123, 114, 255, 0.10), transparent 60%);
}

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 28px;
}

.hero-avatar {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-meta {
  margin-top: 16px;
  color: var(--muted);
}

.badge.bg-gradient-primary-soft { background: rgba(30, 58, 138, 0.18); color: var(--text); border: 1px solid rgba(255,255,255,0.10); }

.btn-primary {
  background-image: var(--gradient);
  border: 0;
}

.btn-outline-light {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline-secondary {
  color: var(--muted);
  border-color: rgba(255,255,255,0.16);
}

.section-spacing {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.3px;
}

.card-glass { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; }

.project-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.project-thumb img, .project-thumb video { object-fit: cover; width: 100%; height: 100%; border: 1px solid rgba(255,255,255,0.08); }
.project-body { padding: 16px; }

.timeline {
  position: relative;
  margin-left: 14px;
  padding-left: 22px;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(30,58,138,0.9), rgba(14,165,233,0.9));
  border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-dot {
  position: absolute; left: -7px; top: 6px;
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(30,58,138,0.25);
}
.timeline-content { background: var(--surface); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 14px 16px; }

.skill-badge {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

footer { background: #0C0D10; }

.text-secondary { color: var(--muted) !important; }

@media (min-width: 992px) {
  .hero-section { padding-top: 140px; padding-bottom: 100px; }
}



.hero-minimal { padding: 140px 0 80px; background: radial-gradient(900px 600px at 50% -10%, rgba(14,165,233,0.10), transparent 60%), var(--bg); }
.hero-kicker { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero-title { font-weight: 900; letter-spacing: -0.6px; font-size: clamp(32px, 6vw, 56px); margin: 8px 0 8px; }
.hero-sub { color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-social { margin-top: 16px; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; }

.exp-list { border-top: 1px solid rgba(255,255,255,0.08); }
.exp-item { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.exp-title { font-weight: 600; }
.exp-time { color: var(--muted); font-size: 14px; }
.exp-right ul { margin: 0; padding-left: 18px; }
@media (max-width: 767.98px) { .exp-item { grid-template-columns: 1fr; } }

.timeline-landing, .timeline-center-line { display: none; }

.hero-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  overflow: hidden;
}

.hero-bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0.1;
  animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, -30px) scale(1.1); }
  66% { transform: translate(30px, -20px) scale(0.9); }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(30deg); }
}

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  margin: 0 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}


.animate-fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}


@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  
  .typing-text {
    animation: none;
    border: none;
    white-space: normal;
  }
}


.cv-editor-wrap { border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; background: var(--surface); }
.cv-editor-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid rgba(255,255,255,0.08); }
.cv-dots .dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; margin-right: 6px; }
.cv-dots .dot.r { background: #ef4444; }
.cv-dots .dot.y { background: #f59e0b; }
.cv-dots .dot.g { background: #22c55e; }
.cv-editor { position: relative; max-height: 500px; overflow: auto; }
.cv-editor pre { margin: 0; padding: 16px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px; }
.cv-editor code { white-space: pre; display: block; counter-reset: ln; }
.cv-editor code { color: #E5E7EB; }
.cv-editor code::selection { background: rgba(14,165,233,0.25); }


.terminal-intro { max-width: 860px; margin: 0 auto 40px; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; background: #0C0F16; }
.terminal-intro .term-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #0B0D12; border-bottom: 1px solid rgba(255,255,255,0.06); }
.terminal-intro .term-bar .dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.terminal-intro .term-bar .dot.r { background: #ef4444; }
.terminal-intro .term-bar .dot.y { background: #f59e0b; }
.terminal-intro .term-bar .dot.g { background: #22c55e; }
.terminal-intro .term-body { margin: 0; padding: 16px; color: #E5E7EB; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 14px; white-space: pre-wrap; }
.terminal-intro .muted { color: #60A5FA; }
.terminal-intro .cursor { display: inline-block; width: 10px; background: #60A5FA; animation: blink 1s steps(1) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }


.cmdk { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: flex-start; justify-content: center; padding-top: 120px; z-index: 1050; }
.cmdk.show { display: flex; }
.cmdk-panel { width: min(720px, 92vw); background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.45); }
.cmdk-input { width: 100%; padding: 14px 16px; background: transparent; border: 0; outline: none; color: var(--text); font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cmdk-results { max-height: 360px; overflow: auto; }
.cmdk-item { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.cmdk-item:hover, .cmdk-item.active { background: var(--surface-2); }
.cmdk-item .hint { color: var(--muted); font-size: 12px; }
.cmdk-hint { color: var(--muted); font-size: 12px; padding: 8px 12px; text-align: right; }

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

body:not(.loaded) {
  overflow: hidden;
}

body:not(.loaded)::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface);
  z-index: 9999;
  animation: fadeOut 0.5s ease 0.5s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

.skill-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: default;
}

.skill-badge:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.card-glass {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.15);
}


.project-card {
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.project-thumb {
  overflow: hidden;
}

.project-thumb video {
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb video {
  transform: scale(1.05);
}


.btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.4);
}


.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-dark {
  background: rgba(10, 10, 11, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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


@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-sub {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .cv-editor-bar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  
  #cv.reveal-hidden {
    opacity: 1 !important;
    transform: none !important;
  }
  
  #cv.reveal-visible {
    opacity: 1 !important;
    transform: none !important;
  }
  
  
  .cv-lang,
  .cv-editor-wrap .cv-lang,
  .cv-content .cv-lang {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  
  .cv-lang:not(.active) {
    display: none !important;
  }

  .cv-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .project-card:hover {
    transform: translateY(-4px);
  }
  
  .card-glass:hover {
    transform: translateY(-3px);
  }
  
  .typing-text {
    animation: none !important;
    border: none !important;
    white-space: normal !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}


@media (prefers-contrast: high) {
  :root {
    --primary: #00ff88;
    --primary-2: #00ccff;
    --text: #ffffff;
    --muted: #cccccc;
  }
}


@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .typing-text {
    animation: none !important;
    border: none !important;
  }
  
  .hero-bg-animation::before {
    animation: none !important;
  }
}

.project-card-modern {
  background: var(--surface-2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.project-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px rgba(0,0,0,0.3);
}

.project-video-wrapper {
  padding: 1rem;
}

.project-video-wrapper video {
  border-radius: 12px;
}

.project-details-wrapper {
  display: flex;
  align-items: center;
}

.project-details-wrapper .project-body {
  padding: 2rem;
}

@media (max-width: 992px) {
  .project-details-wrapper .project-body {
    padding: 1.5rem;
  }
}


.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-header h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.contact-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin: 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon.linkedin {
  background: rgba(0, 119, 181, 0.2);
}

.contact-icon i {
  font-size: 1.25rem;
  color: #ffffff;
}

.contact-info {
  flex: 1;
}

.contact-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #ffffff;
}

.contact-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.contact-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.contact-method:hover .contact-arrow {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.8);
}

.contact-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-header h3 {
    font-size: 1.5rem;
  }
  
  .contact-method {
    padding: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .contact-info h4 {
    font-size: 1rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
  }
}


#education .exp-list {
  max-width: 800px;
  margin: 0 auto;
}

#education .exp-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#education .exp-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#education .exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

#education .exp-left {
  padding-left: 1rem;
}

#education .exp-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

#education .exp-time {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  #education .exp-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  #education .exp-title {
    font-size: 1.1rem;
  }
  
  #education .exp-time {
    font-size: 0.9rem;
  }
  
  #education .exp-left {
    padding-left: 0.75rem;
  }
}

.cv-editor-wrap {
  background: var(--surface-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  margin: 2rem 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.cv-editor-bar {
  background: var(--surface-1);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cv-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.r { background: #ff5f57; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #28ca42; }

.cv-actions {
  display: flex;
  gap: 10px;
}

.cv-content {
  padding: 2rem;
  background: var(--surface-1);
  color: var(--text);
  line-height: 1.6;
}

.cv-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-2);
}

.cv-text {
  color: var(--muted);
  margin-bottom: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.skill-category {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.skill-category-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.skill-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  color: var(--muted);
  padding: 0.2rem 0;
  position: relative;
  padding-left: 1rem;
}

.skill-list li::before {
  content: '▸';
  color: var(--primary);
  position: absolute;
  left: 0;
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.education-item {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-2);
}

.education-title {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.education-detail {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.experience-item {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.experience-title {
  font-weight: 600;
  color: var(--text);
  font-size: 1.1rem;
}

.experience-date {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}

.experience-subtitle {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.experience-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-details li {
  color: var(--muted);
  padding: 0.3rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.experience-details li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.qualifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qualifications-list li {
  color: var(--muted);
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.2rem;
}

.qualifications-list li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.cv-contact {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cv-contact-info {
  color: var(--muted);
  margin: 0;
}

.cv-contact-info a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cv-contact-info a:hover {
  color: var(--primary-2);
  text-decoration: underline;
}

.cv-lang-switch { margin: 12px 0 16px; }
.cv-lang-switch .btn.active { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
.cv-lang,
.cv-editor-wrap .cv-lang,
.cv-content .cv-lang {
  display: none;
}

.cv-lang.active,
.cv-editor-wrap .cv-lang.active,
.cv-content .cv-lang.active {
  display: block;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.project-gallery img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 992px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}

.lightbox-modal .modal-dialog { max-width: 90vw; }
.lightbox-modal .modal-content {
  background: rgba(0,0,0,0.85);
  border: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
}
.lightbox-modal .modal-body img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}

.project-gallery img,
.project-media-slider img { cursor: zoom-in; }

.project-media-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  height: 100%;
}
.project-media-duo img {
  width: 100%;
  aspect-ratio: 16 / 9;  
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 992px) {
  .project-media-duo { grid-template-columns: 1fr; }
}


#projects .row.justify-content-center { 
  gap: 24px;            
}

#projects .project-card-modern {
  margin-bottom: 28px;   
}

@media (max-width: 992px) {
  #projects .row.justify-content-center { gap: 20px; }
}

@media (max-width: 768px) {
  .typing-text {
    animation: none !important;
    border: none !important;
    white-space: normal !important;
  }
}

@media print {
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  header, nav, #home, #projects, #skills, #education, #contact, footer, hr,
  .hero-actions, .hero-social { display: none; }
  #cv { display: block !important; }

  body, .cv-editor-wrap, .cv-content { background: #FFFFFF !important; color: #000000 !important; }
  .cv-editor-bar, .cv-lang-switch { display: none; }

  .cv-lang { display: block; }
  .cv-lang.active { display: block; }

  .cv-title, .cv-section-title { color: #000000 !important; border-color: #000000 !important; }
  .cv-text, .qualifications-list li, .experience-details li { color: #000000 !important; }
  .badge, .btn { display: none; }

  .cv-section { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  ul, li, p { page-break-inside: avoid; }

  @page { size: A4; margin: 12mm; }
}


[data-theme="light"] #education .exp-item {
  background: #F8FAFC;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] #education .exp-item:hover {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.14);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
[data-theme="light"] #education .exp-title {
  color: #111827;
}
[data-theme="light"] #education .exp-time {
  color: #4B5563;
  background: rgba(0,0,0,0.06);
}
[data-theme="light"] #education .exp-left {
  padding-left: 1rem;
}

[data-theme="light"] .contact-card {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  color: #111827;
}
[data-theme="light"] .contact-header h3 {
  color: #111827;
}
[data-theme="light"] .contact-header p {
  color: #4B5563;
}
[data-theme="light"] .contact-methods .contact-method {
  background: #F9FAFB;
  border: 1px solid rgba(0,0,0,0.08);
  color: #111827;
}
[data-theme="light"] .contact-icon i {
  color: #1D4ED8;
}

[data-theme="light"] .cv-title,
[data-theme="light"] .cv-section-title,
[data-theme="light"] .cv-text {
  color: #111827;
}


