body {
    color: var(--ink);
    background: var(--surface);
    font-feature-settings: "ss01","cv10","kern";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  
  .page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
  }

header {
    text-align: center;
    padding-bottom: 30px;
}

h1 {
    margin-bottom: 5px;
}

h2 {
    color: #4a90e2;
    font-weight: normal;
    margin-top: 20px;
}

.timeline {
    position: relative;
    margin: 50px auto;
    padding: 10px 0;
    width: 90%;
    z-index: 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #4a90e2;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-container {
    position: relative;
    width: 50%;
    padding: 10px 30px;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    z-index: 1;
}

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

.timeline-container.left {
    left: 0;
    justify-content: center;  
    position: relative;
}

.timeline-container.right {
    left: 50%;
    display: flex;
    justify-content: center;  
    position: relative;

}

.timeline-container.right .card-inner {
    transform: rotateY(0deg);
}
  
.timeline-container.right:hover .card-inner {
    transform: rotateY(-180deg);
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border: 4px solid #4a90e2;
    top: 20px;
    border-radius: 50%;
    z-index: 2;
}

.timeline-container.left::before {
    right: -9px;
}

.timeline-container.right::before {
    left: -9px;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.timeline-content h3 {
    margin-top: 0;
    color: #4a90e2;
}

.role {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.role .date {
    font-weight: bold;
    color: #333;
}

.skills-section {
    padding: 40px 0;
    text-align: center;
}

.skills-section h2 {
    font-size: 2em;
    color: #4a90e2;
    margin-bottom: 30px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.skill-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.skill-card:nth-child(odd) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(even) {
    animation-delay: 0.4s;
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: #4a90e2;
    margin: 40px 0 20px;
}


.tabs {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.tab {
    background: #eee;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    margin: 0 5px;
    border-bottom: 3px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.tab:hover {
    background: #ddd;
}

.tab.active {
    border-color: #4a90e2;
    background: #fff;
}

.tab-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


footer {
    text-align: center;
    margin-top: 40px;
}

footer a {
    text-decoration: none;
    color: #4a90e2;
    font-weight: bold;
}

.card-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
  }
  
  .card-inner {
    position: relative;
    display: grid;     
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
  }
  
  .card-wrapper:hover .card-inner {
    transform: rotateY(180deg);
  }
  
  .card-front,
.card-back {
  grid-area: 1 / 1;          
  backface-visibility: hidden;
  padding: 15px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
 
}
  
  .card-front {
    transform: rotateY(0deg);
    z-index: 2;
  }
  
  .card-back {
    transform: rotateY(180deg);
  }
  :root {
    
    --brand:        #2d6cdf;   /* blue */
    --brand-2:      #2d6cdf;   /* same blue (kills purple) */
    --brand-3:      #5aa0ff; 
    --ink:          #0b1220; 
    --muted-ink:    #5b6475;
    --surface:      #ffffff;
    --panel:        #ffffffcc; 
    --border:       235 235 245;
    --shadow:       16, 24, 40; 
    --radius:       14px;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --ink:        #e6eaf3;
      --muted-ink:  #a8b0c0;
      --surface:    #0a0f1a;
      --panel:      #0e1422cc;
      --border:     40 50 70;
      --shadow:     0, 0, 0;
    }
  }
  
  html { scroll-behavior: smooth; }
  
  
  h1, .hero h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(2rem, 2.2rem + 2.5vw, 3.2rem);
  }
  h2 { font-weight: 700; letter-spacing: -0.01em; }
  
  .bg-tech {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Subtle top/bottom vignette */
    background:
      radial-gradient(150% 80% at 50% -20%, rgba(0,0,0,0.14), transparent 55%),
      radial-gradient(140% 100% at 50% 120%, rgba(0,0,0,0.12), transparent 60%);
  }
  
  /* Animated beams layer */
  .bg-tech::before,
  .bg-tech::after {
    content: "";                     /* REQUIRED for pseudo-elements */
    position: absolute; inset: -10%; /* overflow to allow blur */
    filter: blur(28px) saturate(1.15);
    opacity: 0.35;
    background:
      conic-gradient(from 210deg at 15% 10%,  transparent 0 18%, color-mix(in srgb, var(--brand)   85%, white) 19% 27%, transparent 28% 100%),
      conic-gradient(from 120deg at 85% 0%,   transparent 0 38%, color-mix(in srgb, var(--brand-2) 85%, white) 39% 47%, transparent 48% 100%),
      conic-gradient(from 330deg at 50% 100%, transparent 0 32%, color-mix(in srgb, var(--brand-3) 85%, white) 33% 41%, transparent 42% 100%);
    /* soft fade so beams don’t touch edges */
    -webkit-mask: radial-gradient(120% 90% at 50% 20%, #000 55%, transparent 100%);
            mask: radial-gradient(120% 90% at 50% 20%, #000 55%, transparent 100%);
    animation: beams-pan 36s linear infinite;
  }
  
  /* depth/parallax on the second layer */
  .bg-tech::after {
    opacity: 0.5;
    transform: scale(1.2) rotate(8deg);
    animation-duration: 52s;
  }
  
  @keyframes beams-pan {
    0%   { transform: translate3d(0,0,0) rotate(0deg); }
    50%  { transform: translate3d(1%, -0.5%, 0) rotate(3deg); }
    100% { transform: translate3d(0,0,0) rotate(0deg); }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .bg-tech::before,
    .bg-tech::after { animation: none; }
  }
  

  body > * { position: relative; z-index: 1; }

  .hero {
    padding: clamp(48px, 6vw, 96px) 16px 24px;
    text-align: center;
  }
  

  .hero .avatar {
    --ring: conic-gradient(from var(--a, 0deg),
              var(--brand) 0 25%,
              var(--brand-2) 25% 50%,
              var(--brand-3) 50% 75%,
              var(--brand) 75% 100%);
    width: 150px; height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: var(--ring);
    margin: 0 auto 18px;
    animation: ring-spin 12s linear infinite;
  }
  .hero .avatar img {
    display: block;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #c7ccd6;
    object-fit: cover;
  }
  @keyframes ring-spin {
    to { --a: 360deg; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero .avatar { animation: none; }
  }
  

  .hero .subtitle {
    color: var(--brand);
    font-weight: 600;
    margin-top: 0.4rem;
    font-size: clamp(1rem, 0.9rem + 0.7vw, 1.35rem);
  }
  
  .card, .tab, .content-panel {
    background: var(--panel);
    backdrop-filter: saturate(1.1) blur(6px);
    border-radius: var(--radius);
    border: 1px solid rgba(var(--border), 0.6);
    box-shadow:
      0 10px 25px rgba(var(--shadow), 0.08),
      0 2px  8px rgba(var(--shadow), 0.05);
  }
  
  .card:hover, .content-panel:hover {
    transform: translateY(-2px);
    box-shadow:
      0 16px 40px rgba(var(--shadow), 0.12),
      0 3px  12px rgba(var(--shadow), 0.08);
  }
  
  .tabs { display: flex; gap: 12px; justify-content: center; }
  .tab {
    padding: 10px 16px;
    cursor: pointer;
    position: relative;
    color: var(--ink);
  }
  .tab.is-active,
  .tab:hover { color: var(--brand); }
  .tab::after {
    content: "";
    position: absolute; left: 12px; right: 12px; bottom: 0;
    height: 2px; background: var(--brand);
    transform: scaleX(0); transform-origin: center;
    transition: transform .25s ease;
  }
  .tab.is-active::after,
  .tab:hover::after { transform: scaleX(1); }
  
  .timeline-spine {
    background: linear-gradient(180deg, var(--brand), var(--brand-3));
    width: 4px;
    box-shadow: 0 0 0 4px rgba(45,108,223,.15);
    border-radius: 999px;
  }
  
  .button {
    background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 85%, black));
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 20px rgba(45,108,223,.25);
    transition: transform .15s ease, box-shadow .2s ease;
  }
  .button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(45,108,223,.32); }
  .button:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(45,108,223,.22); }