:root {
    --bg: #050712;
    --bg-2: #090d1a;
    --card: rgba(255, 255, 255, 0.065);
    --card-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.13);
    --text: #f8fafc;
    --muted: #a1a8b8;
    --blue: #38bdf8;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --gold: #f5c76b;
  }
  
  html[data-theme="light"] {
    --bg: #f5f7fb;
    --bg-2: #ffffff;
    --card: rgba(255, 255, 255, 0.72);
    --card-2: rgba(255, 255, 255, 0.9);
    --border: rgba(15, 23, 42, 0.12);
    --text: #0f172a;
    --muted: #64748b;
    --blue: #0284c7;
    --purple: #7c3aed;
    --pink: #db2777;
    --gold: #b7791f;
  }
  
  /* ============================================================
     PROFILE CARD KEYFRAMES
  ============================================================ */

  /* Subtle moving gradient reflection across the card surface */
  @keyframes card-reflection {
    0%   { background-position: 200% 0%; }
    50%  { background-position: -50% 100%; }
    100% { background-position: 200% 0%; }
  }

  /* Slow, barely-perceptible avatar glow pulse */
  @keyframes avatar-pulse-subtle {
    0%, 100% { box-shadow: 0 0 0 0   rgba(56,189,248,0.0); }
    50%       { box-shadow: 0 0 0 6px rgba(56,189,248,0.18); }
  }

  /* Terminal blinking cursor — sharp step, not ease */
  @keyframes term-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
  }

  /* ============================================================
     EXISTING SITE KEYFRAMES (preserved)
  ============================================================ */

  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(2deg); }
    50%       { transform: translateY(-18px) rotate(2deg); }
  }

  @keyframes float-no-rotate {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
  }

  @keyframes orb-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(60px, -40px) scale(1.12); }
    66%  { transform: translate(-40px, 30px) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
  }

  @keyframes orb-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(-50px, 30px) scale(0.9); }
    66%  { transform: translate(35px, -50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
  }

  @keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 28px var(--blue); }
    50%       { box-shadow: 0 0 55px var(--blue), 0 0 90px rgba(56,189,248,0.4); }
  }

  @keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0;   }
  }

  @keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
  }

  @keyframes spin-slow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  @keyframes bounce-in {
    0%   { transform: scale(0.6); opacity: 0; }
    60%  { transform: scale(1.08); }
    80%  { transform: scale(0.97); }
    100% { transform: scale(1);   opacity: 1; }
  }

  @keyframes slide-up-fade {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  @keyframes border-glow-rotate {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
  }

  @keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes nav-link-in {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @keyframes card-shine {
    0%   { left: -100%; }
    100% { left: 200%; }
  }

  @keyframes logo-flicker {
    0%, 95%, 100% { opacity: 1; }
    96%            { opacity: 0.6; }
    97%            { opacity: 1; }
    98%            { opacity: 0.7; }
    99%            { opacity: 1; }
  }

  @keyframes particle-rise {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
    100% { transform: translateY(-120px) translateX(var(--dx, 20px)) scale(0); opacity: 0; }
  }

  /* Reduced motion: disable all animations except essentials */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background:
      radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.14), transparent 30%),
      radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.18), transparent 35%),
      var(--bg);
    color: var(--text);
    overflow-x: hidden;
    transition: background 0.35s, color 0.35s;
    text-rendering: optimizeLegibility;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }

  img,
  svg {
    display: block;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 4px;
  }
  
  .noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  
  .cursor-glow {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.13), transparent 65%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 22px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 7, 18, 0.68);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
  }
  
  html[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.72);
  }
  
  .logo {
    font-size: 24px;
    font-weight: 900;
  }
  
  .logo span { color: var(--blue); }
  
  .nav {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
  }
  
  .nav a {
    font-size: 14px;
    color: var(--muted);
    transition: 0.3s;
  }
  
  .nav a:hover { color: var(--blue); }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .theme-toggle,
  .menu-btn,
  .lang-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
  }

  .lang-btn {
    font-size: 12px;
    font-weight: 700;
  }
  
  .theme-toggle:hover,
  .menu-btn:hover,
  .lang-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.55);
  }

  .lang-btn.active {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    border-color: transparent;
  }
  
  .menu-btn {
    display: none;
    font-size: 24px;
  }
  
  .hero {
    min-height: 100vh;
    padding: 145px 8% 90px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 70px;
    position: relative;
  }
  
  .orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.4;
    z-index: -1;
  }
  
  .orb-1 {
    width: 390px;
    height: 390px;
    background: var(--blue);
    left: -120px;
    top: 120px;
  }
  
  .orb-2 {
    width: 440px;
    height: 440px;
    background: var(--purple);
    right: -160px;
    bottom: 40px;
  }
  
  .eyebrow,
  .section-label {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.6;
  }
  
  .hero h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(42px, 7vw, 104px);
    line-height: 1;
    max-width: 960px;
    margin-bottom: 28px;
  }
  
  .hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-text {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
  }
  
  .hero-actions,
  .social-bar {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    flex-wrap: wrap;
  }
  
  .social-bar {
    margin-top: 22px;
  }
  
  .social-bar a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    transition: 0.3s;
  }
  
  .social-bar a:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.18);
  }
  
  .social-bar svg {
    width: 20px;
    height: 20px;
    fill: var(--text);
  }
  
  .btn {
    padding: 15px 25px;
    border-radius: 999px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.35s;
    text-align: center;
  }
  
  .primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: white;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.25);
  }
  
  .secondary {
    border: 1px solid var(--border);
    color: var(--text);
  }
  
  .btn:hover { transform: translateY(-5px); }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 48px;
    max-width: 720px;
  }
  
  .hero-stats div {
    padding: 22px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--border);
  }
  
  .hero-stats strong {
    display: block;
    font-size: 32px;
    color: var(--text);
    margin-bottom: 6px;
  }
  
  .hero-stats span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
  }
  
  /* ── Profile card: premium glassmorphism ── */
  .profile-panel {
    padding: 30px;

    /* Richer glass layering */
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,0.09) 0%,
        rgba(255,255,255,0.04) 60%,
        rgba(56,189,248,0.04) 100%
      );

    /* Crisp border with subtle top highlight */
    border: 1px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.22);

    border-radius: 34px;

    /* Stronger blur for real depth */
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);

    /* Layered shadows: ambient + key + inner glow */
    box-shadow:
      0 2px 0 0 rgba(255,255,255,0.06) inset,
      0 -1px 0 0 rgba(0,0,0,0.3) inset,
      0 40px 80px rgba(0,0,0,0.5),
      0 12px 32px rgba(0,0,0,0.35),
      0 0 0 1px rgba(255,255,255,0.04);

    /* 3D parallax requires perspective on parent */
    transform-style: preserve-3d;
    will-change: transform;

    /* Initial slight tilt — JS will override */
    transform: rotate(2deg);

    /* Spring return transition — overridden during mousemove */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.8s cubic-bezier(0.23, 1, 0.32, 1);

    /* Reflection layer via pseudo */
    position: relative;
    overflow: hidden;
  }

  /* Moving gradient reflection sweep */
  .profile-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 34px;
    background: linear-gradient(
      120deg,
      transparent 20%,
      rgba(255,255,255,0.04) 45%,
      rgba(255,255,255,0.07) 50%,
      rgba(255,255,255,0.04) 55%,
      transparent 80%
    );
    background-size: 300% 300%;
    animation: card-reflection 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }

  /* Top edge highlight line */
  .profile-panel::after {
    content: "";
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.35) 50%,
      transparent
    );
    border-radius: 999px;
    pointer-events: none;
    z-index: 1;
  }

  /* All direct children above pseudo layers */
  .profile-panel > * {
    position: relative;
    z-index: 2;
  }
  
  .profile-top {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
  }

  .profile-media {
    position: relative;
    width: 86px;
    height: 86px;
    flex: 0 0 86px;
  }

  .profile-media img {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    object-fit: cover;
    object-position: center 24%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    filter: grayscale(1) contrast(1.08) brightness(1.05);
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(56,189,248,0);
    transition: box-shadow 0.6s ease, filter 0.6s ease;
    will-change: transform;
  }

  .profile-panel:hover .profile-media img {
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.45),
      0 0 0 3px rgba(56,189,248,0.25);
    filter: grayscale(0.6) contrast(1.08) brightness(1.05);
  }
  
  .avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    position: absolute;
    right: -7px;
    bottom: -7px;
    font-weight: 900;
    font-size: 11px;
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border: 2px solid var(--bg);

    /* Slow, barely-there pulse */
    animation: avatar-pulse-subtle 4s ease-in-out infinite;

    /* Subtle depth lift on parallax layer */
    will-change: transform;
  }
  
  .profile-top h3 { font-size: 20px; }
  
  .profile-top p {
    color: var(--muted);
    font-size: 14px;
  }
  
  .terminal {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.07);
    border-top-color: rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 22px;
    font-family: monospace;
    color: #dbeafe;
    line-height: 1.8;
    overflow-wrap: anywhere;

    /* Slightly recessed — less parallax travel than card */
    will-change: transform;

    /* Inner shadow for depth */
    box-shadow:
      0 1px 0 0 rgba(255,255,255,0.05) inset,
      0 8px 24px rgba(0,0,0,0.3);
  }

  /* Blinking cursor on last terminal line */
  .terminal p:last-child::after {
    content: "▋";
    color: var(--blue);
    animation: term-blink 1.1s step-end infinite;
    margin-left: 2px;
  }

  html[data-theme="light"] .terminal {
    background: rgba(15, 23, 42, 0.92);
  }
  
  .terminal span { color: var(--blue); }
  
  .section {
    padding: 95px 8%;
    position: relative;
  }
  
  .section h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 32px;
  }
  
  .story-box,
  .philosophy-card {
    max-width: 1000px;
    display: grid;
    gap: 22px;
    padding: 36px;
    border-radius: 32px;
    background: var(--card);
    border: 1px solid var(--border);
  }
  
  .story-box p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.9;
  }
  
  .philosophy-card p {
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.15;
    background: linear-gradient(135deg, var(--text), var(--blue), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .skills-grid,
  .cards-grid,
  .project-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  
  .skill-card,
  .info-card,
  .project-card {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 28px;
    border-radius: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: 0.35s;
    position: relative;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  
  .skill-card::after,
  .info-card::after,
  .project-card::after {
    content: "";
    position: absolute;
    inset: auto -40% -40% auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 65%);
  }
  
  .skill-card:hover,
  .info-card:hover,
  .project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 45px rgba(56, 189, 248, 0.13);
  }
  
  .skill-card span,
  .project-card span {
    color: var(--gold);
    font-weight: 900;
  }
  
  .skill-card h3,
  .info-card h3,
  .project-card h3 {
    margin: 24px 0 16px;
    font-size: 22px;
  }
  
  .skill-card p,
  .info-card p,
  .project-card p {
    color: var(--muted);
    line-height: 1.75;
  }
  
  .info-card span {
    display: inline-block;
    margin-top: auto;
    color: var(--blue);
    font-weight: 700;
    padding-top: 22px;
  }
  
  .journey { overflow: hidden; }
  
  .timeline {
    position: relative;
    max-width: 1100px;
    margin: 70px auto 0;
    padding: 20px 0;
  }
  
  .timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--blue), var(--purple), transparent);
    transform: translateX(-50%);
  }
  
  .timeline-item {
    width: 50%;
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transition: 0.8s ease;
  }
  
  .timeline-item.left {
    padding-right: 60px;
    transform: translateX(-80px);
  }
  
  .timeline-item.right {
    margin-left: 50%;
    padding-left: 60px;
    transform: translateX(80px);
  }
  
  .timeline-item.show {
    opacity: 1;
    transform: translateX(0);
  }
  
  .timeline-dot {
    position: absolute;
    top: 28px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 28px var(--blue);
    z-index: 2;
  }
  
  .timeline-item.left .timeline-dot { right: -11px; }
  
  .timeline-item.right .timeline-dot { left: -11px; }
  
  .timeline-card {
    padding: 30px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }
  
  .timeline-card span {
    color: var(--blue);
    font-weight: 800;
  }
  
  .timeline-card h3 {
    margin: 14px 0;
    font-size: 24px;
  }
  
  .timeline-card p {
    color: var(--muted);
    line-height: 1.8;
  }
  
  .certificate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  
  .certificate-grid div {
    padding: 20px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    transition: 0.3s;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  
  .certificate-grid div:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.55);
  }
  
  .language-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  
  .language-row div {
    padding: 32px;
    border-radius: 28px;
    background: var(--card);
    border: 1px solid var(--border);
  }
  
  .language-row h3 {
    font-size: 26px;
    margin-bottom: 8px;
  }
  
  .language-row p { color: var(--muted); }
  
  .project-card b {
    display: inline-block;
    margin-top: auto;
    padding-top: 22px;
    color: var(--blue);
  }

  .skill-card span:last-child {
    margin-top: auto;
  }
  
  .contact {
    text-align: center;
  }
  
  .contact > p {
    color: var(--muted);
    max-width: 650px;
    margin: 0 auto 28px;
    line-height: 1.8;
  }
  
  .contact-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  .contact-links a {
    padding: 14px 20px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: 0.3s;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  
  .contact-links a:hover {
    color: white;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    transform: translateY(-5px);
  }
  
  footer {
    padding: 34px 8%;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--border);
  }
  
  .reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: 0.85s ease;
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  html[lang="hy"] body,
  html[lang="ru"] body {
    line-height: 1.55;
  }

  html[lang="hy"] .hero h1,
  html[lang="ru"] .hero h1,
  html[lang="de"] .hero h1 {
    font-size: clamp(38px, 5.8vw, 86px);
    line-height: 1.08;
  }

  html[lang="hy"] .section h2,
  html[lang="ru"] .section h2 {
    line-height: 1.18;
  }

  @media (max-width: 1200px) {
    .header {
      padding-inline: 5%;
    }

    .nav a {
      font-size: 13px;
    }
  }

  @media (max-width: 1100px) {
    .skills-grid,
    .cards-grid,
    .project-grid,
    .certificate-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .hero {
      grid-template-columns: 1fr;
    }
  
    .profile-panel {
      transform: none;
      animation: none;
      /* Restore static glass on mobile */
      will-change: auto;
    }
  }
  
  @media (max-width: 980px) {
    .header {
      padding: 18px 6%;
    }
  
    .nav {
      position: absolute;
      top: calc(100% + 12px);
      right: 6%;
      width: min(320px, 88vw);
      display: none;
      flex-direction: column;
      gap: 18px;
      padding: 24px;
      background: var(--bg-2);
      border: 1px solid var(--border);
      border-radius: 24px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    }
  
    .nav.active {
      display: flex;
    }
  
    .menu-btn {
      display: block;
    }
  }

  @media (max-width: 760px) {
    html {
      scroll-padding-top: 84px;
    }
  
    .hero,
    .section {
      padding-left: 6%;
      padding-right: 6%;
    }

    .hero {
      padding-top: 130px;
      gap: 42px;
    }

    .hero h1 {
      font-size: clamp(39px, 12vw, 62px);
    }

    .hero-text,
    .story-box p {
      font-size: 16px;
      line-height: 1.75;
    }

    .story-box,
    .philosophy-card,
    .timeline-card,
    .skill-card,
    .info-card,
    .project-card {
      border-radius: 24px;
      padding: 24px;
    }
  
    .hero-stats,
    .skills-grid,
    .cards-grid,
    .project-grid,
    .certificate-grid,
    .language-row {
      grid-template-columns: 1fr;
    }

    .hero-stats {
      gap: 14px;
      margin-top: 36px;
    }
  
    .timeline-line {
      left: 0;
    }
  
    .timeline-item,
    .timeline-item.right {
      width: 100%;
      margin-left: 0;
      padding-left: 38px;
      padding-right: 0;
    }
  
    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
      left: -11px;
      right: auto;
    }

    .timeline {
      margin-top: 42px;
    }

    .timeline-item {
      margin-bottom: 42px;
    }
  }

  @media (max-width: 560px) {
    .header {
      padding: 14px 4%;
    }

    .logo {
      font-size: 20px;
    }

    .header-actions,
    .language-switcher {
      gap: 5px;
    }

    .theme-toggle,
    .menu-btn,
    .lang-btn {
      width: 34px;
      height: 34px;
      font-size: 12px;
    }

    .menu-btn {
      font-size: 20px;
    }

    .hero {
      padding-top: 110px;
    }

    .hero-actions {
      width: 100%;
    }

    .btn {
      width: 100%;
      padding-inline: 18px;
    }

    .profile-top {
      align-items: flex-start;
    }

    .profile-media {
      width: 74px;
      height: 74px;
      flex-basis: 74px;
    }

    .profile-media img {
      width: 74px;
      height: 74px;
      border-radius: 22px;
    }

    .section {
      padding-top: 72px;
      padding-bottom: 72px;
    }

    .section h2 {
      font-size: clamp(32px, 10vw, 42px);
    }

    .certificate-grid div {
      padding: 17px;
    }
  }

  @media (max-width: 390px) {
    .logo {
      font-size: 18px;
    }

    .theme-toggle,
    .menu-btn,
    .lang-btn {
      width: 31px;
      height: 31px;
      font-size: 11px;
    }
  }


  @media (max-width: 760px) {

    .hero {
      overflow: hidden;
    }
  
    .profile-panel {
      width: 100%;
      max-width: 100%;
      transform: none !important;
    }
  
    .hero-content,
    .profile-panel {
      min-width: 0;
    }
  
    .social-bar {
      justify-content: center;
    }
  
    .hero h1 {
      word-break: break-word;
    }
  }