/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  :root {
    --color-primary: #C28823;
    --color-secondary: #40cfff;
    --color-dark: #0a0a0b;
    --color-darker: #000;
    --color-gray: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background-color: var(--color-darker);
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ===== Scroll Reveal Utilities ===== */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  [data-reveal="fade-up"] { transform: translateY(24px); }
  [data-reveal="fade-down"] { transform: translateY(-24px); }
  [data-reveal="fade-left"] { transform: translateX(-24px); }
  [data-reveal="fade-right"] { transform: translateX(24px); }
  [data-reveal="zoom-in"] { transform: scale(0.95); }

  [data-reveal].visible { transform: none; }

  .reveal { transition-delay: var(--delay, 0ms); }

  @media (prefers-reduced-motion: reduce) {
    .reveal, [data-reveal] {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }

  .title {
    font-size: 56px;
    font-weight: 700;
    text-align: center;
    position: relative;
    letter-spacing: -1px;
  }
  
  .hero {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    padding-top: 100px;
    color: var(--color-text);
    z-index: 2;
    min-height: 100vh;
  }

  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 500px at 50% 0%, rgba(194,136,35,0.08), transparent 60%),
                radial-gradient(800px 400px at 80% 20%, rgba(64,207,255,0.05), transparent 55%);
    mix-blend-mode: normal;
  }
  
  /* Navigation Bar */
  .navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    height: 64px;
  }

  .navigation input[type="checkbox"],
  .navigation .hamburger-lines {
    display: none;
  }

  .navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .menu-items {
    order: 2;
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
  }

  .menu-items li {
    list-style: none;
  }

  .menu-items a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
  }

  .menu-items a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
  }

  .menu-items a:hover {
    color: var(--color-primary);
  }

  .menu-items a:hover::after {
    width: 100%;
  }

  .logo {
    order: 1;
    font-size: 28px;
    color: var(--color-primary);
    letter-spacing: 2px;
    font-weight: 700;
  }

  .social-items {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-left: auto;
  }

  .social-button {
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
  }

  .social-button:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
  }

  /* Mobile Menu */
  @media (max-width: 768px) {
    .navigation input[type="checkbox"],
    .navigation .hamburger-lines {
      display: block;
    }

    .navbar-container {
      display: block;
      position: relative;
      height: 64px;
    }

    .navbar-container input[type="checkbox"] {
      position: absolute;
      display: block;
      height: 32px;
      width: 30px;
      top: 20px;
      left: 20px;
      z-index: 5;
      opacity: 0;
      cursor: pointer;
    }

    .navbar-container .hamburger-lines {
      display: block;
      height: 23px;
      width: 35px;
      position: absolute;
      top: 17px;
      left: 20px;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .navbar-container .hamburger-lines .line {
      display: block;
      height: 4px;
      width: 100%;
      border-radius: 10px;
      background: var(--color-primary);
      transition: var(--transition);
    }

    .navbar-container .hamburger-lines .line1 {
      transform-origin: 0% 0%;
      transition: transform 0.4s ease-in-out;
    }

    .navbar-container .hamburger-lines .line2 {
      transition: transform 0.2s ease-in-out;
    }

    .navbar-container .hamburger-lines .line3 {
      transform-origin: 0% 100%;
      transition: transform 0.4s ease-in-out;
    }

    .navigation .menu-items {
      padding-top: 100px;
      background: rgba(10, 10, 11, 0.98);
      backdrop-filter: blur(10px);
      height: 100vh;
      width: 100%;
      transform: translate(-100%);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-left: 0;
      margin: 0;
      transition: transform 0.5s ease-in-out;
      position: fixed;
      top: 0;
      left: 0;
    }

    .navigation .menu-items li {
      margin-bottom: 1.5rem;
      font-size: 1.3rem;
      font-weight: 500;
      text-align: center;
      width: 100%;
    }

    .navigation .menu-items a {
      color: var(--color-text-muted);
    }

    .social-items {
      flex-direction: row;
      gap: 20px;
      margin: 20px 0 0 0;
      justify-content: center;
      width: 100%;
      margin-left: 0;
    }

    .logo {
      position: absolute;
      top: 5px;
      right: 15px;
      font-size: 2rem;
    }

    .navbar-container input[type="checkbox"]:checked ~ .menu-items {
      transform: translateX(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
      transform: rotate(35deg);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
      transform: scaleY(0);
    }

    .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
      transform: rotate(-35deg);
    }
  }
  
  /* Hero Content */
  .hero-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 20px;
  }

  .hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin: auto;
    position: relative;
    z-index: 10;
  }
  
  .hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
  }

  .hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
    font-weight: 400;
  }
  
  .buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .btn {
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transition: left 0.5s ease;
  }

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

  .btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #D4951F);
    color: #fff;
    box-shadow: 0 8px 20px rgba(194, 136, 35, 0.3);
    position: relative;
    z-index: 1;
  }

  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(194, 136, 35, 0.4);
  }

  .btn-secondary {
    background: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    position: relative;
    z-index: 1;
  }

  .btn-secondary:hover {
    background: var(--color-secondary);
    color: var(--color-dark);
    transform: translateY(-3px);
  }

  /* Scroll progress bar */
  .scroll-progress {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.06);
    z-index: 9998;
  }

  .scroll-progress__bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    box-shadow: 0 0 12px rgba(64,207,255,.5);
    transition: width .15s linear;
  }

  /* Back to top button */
  #backToTop {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px; 
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, var(--color-secondary), #0ea5e9);
    color: #fff;
    box-shadow: 0 10px 25px rgba(64,207,255,0.35);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
  }

  #backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #backToTop:hover { 
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(64,207,255,0.45);
  }
  
  /* About Section */
  .about-section {
    background-color: #0f0f10;
    padding: 80px 20px;
    color: var(--color-text);
    position: relative;
  }

  .about-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-primary), transparent);
    opacity: 0.5;
  }

  .about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }

  .avatar-orb {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(194,136,35,0.2), rgba(64,207,255,0.2));
    border: 2px solid rgba(194,136,35,0.3);
    box-shadow: 0 0 40px rgba(194,136,35,0.15), inset 0 0 40px rgba(64,207,255,0.05);
    animation: float 6s ease-in-out infinite;
  }

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

  .avatar-icon {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(194,136,35,0.1), rgba(64,207,255,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: var(--color-primary);
    role: img;
  }

  .about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about-label {
    color: var(--color-secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .about-content h2 {
    color: var(--color-text);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
  }

  .about-content h3 {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 500;
    opacity: 0.95;
  }

  .about-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
  }

  .about-social-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: flex-start;
  }

  .about-social-button {
    text-decoration: none;
    color: var(--color-text);
    font-size: 20px;
    transition: var(--transition);
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
  }

  .about-social-button:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    background: rgba(194,136,35,0.1);
  }

  @media (max-width: 768px) {
    .about-section {
      padding: 60px 20px;
    }

    .about-container {
      grid-template-columns: 1fr;
      gap: 40px;
    }

    .about-image {
      display: none;
    }

    .about-content h2 {
      font-size: 32px;
    }

    .about-content h3 {
      font-size: 18px;
    }

    .about-social-buttons {
      justify-content: center;
    }
  }

  /* Skills Section */
  .skills-section {
    background: linear-gradient(180deg, #0f0f10 0%, #1a1a1a 100%);
    padding: 80px 20px;
    color: var(--color-text);
    position: relative;
  }

  .skills-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-primary), transparent);
    opacity: 0.5;
  }

  .skills-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }

  .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 15px;
  }

  .section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
  }

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

  .skill-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-primary);
  }

  .tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tech-card {
    background: linear-gradient(135deg, rgba(194,136,35,0.1), rgba(64,207,255,0.1));
    border: 1px solid rgba(194,136,35,0.2);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    cursor: pointer;
  }

  .tech-card:hover {
    background: linear-gradient(135deg, rgba(194,136,35,0.2), rgba(64,207,255,0.2));
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(194,136,35,0.2);
  }

  .tech-card i {
    font-size: 24px;
    color: var(--color-primary);
  }

  .tech-card span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }

  /* Resume Section */
  .resume-section {
    background-color: var(--color-gray);
    position: relative;
    padding: 80px 20px;
    text-align: center;
    color: var(--color-text);
    overflow: hidden;
  }

  .resume-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), var(--color-primary), transparent);
    opacity: 0.5;
  }

  .resume-header {
    max-width: 800px;
    margin: 0 auto 60px auto;
    text-align: center;
    position: relative;
  }

  .resume-header h2 {
    color: var(--color-text);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
  }

  .resume-subtitle {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    font-weight: 400;
  }

  /* Timeline Design */
  .timeline {
    --col-gap: 2rem;
    --row-gap: 2rem;
    --line-w: 0.25rem;
    display: grid;
    grid-template-columns: var(--line-w) 1fr;
    grid-auto-columns: max-content;
    column-gap: var(--col-gap);
    list-style: none;
    width: min(900px, 90%);
    margin-inline: auto;
    position: relative;
    padding-bottom: 2rem;
  }

  .timeline::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 20;
    background: rgba(194,136,35,0.2);
    border-radius: calc(var(--line-w) / 2);
  }

  .timeline::after {
    content: "";
    position: absolute;
    width: 1.5rem;
    aspect-ratio: 1;
    background: var(--color-gray);
    border: 0.25rem solid var(--color-primary);
    border-radius: 50%;
    bottom: 0;
    left: 0;
    transform: translateX(-50%);
  }

  .timeline li:not(:last-child) {
    margin-bottom: var(--row-gap);
  }

  .timeline li {
    grid-column: 2;
    --inlineP: 1.5rem;
    margin-inline: var(--inlineP);
    grid-row: span 2;
    display: grid;
    grid-template-rows: min-content min-content min-content min-content;
    transition: transform 200ms ease;
    border-radius: 12px;
  }

  .timeline li:hover {
    transform: translateX(8px);
  }

  .timeline li .date {
    --dateH: 3rem;
    height: var(--dateH);
    margin-inline: calc(var(--inlineP) * -1);
    text-align: center;
    background-color: var(--accent-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: grid;
    place-content: center;
    position: relative;
    border-radius: calc(var(--dateH) / 2) 0 0 calc(var(--dateH) / 2);
  }

  .timeline li .date::before {
    content: "";
    width: var(--inlineP);
    aspect-ratio: 1;
    background: var(--accent-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
    position: absolute;
    top: 100%;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    right: 0;
  }

  .timeline li .date::after {
    content: "";
    position: absolute;
    width: 2rem;
    aspect-ratio: 1;
    background: var(--color-gray);
    border: 0.3rem solid var(--accent-color);
    border-radius: 50%;
    top: 42%;
    transform: translate(50%, -50%);
    right: calc(100% + var(--col-gap) + var(--line-w) / 2);
    box-shadow: 0 0 0 0 var(--accent-color);
    transition: box-shadow 250ms ease;
  }

  .timeline li:hover .date::after {
    box-shadow: 0 0 0 6px rgba(194,136,35,0.2), 0 0 0 6px var(--accent-color);
  }

  .timeline li .title,
  .timeline li .company,
  .timeline li .descr {
    background: #ffffff;
    position: relative;
    padding-inline: 1.5rem;
  }

  .timeline li .title {
    overflow: hidden;
    padding-block-start: 1.5rem;
    padding-block-end: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
  }

  .timeline li .title i {
    margin-right: 8px;
    color: var(--accent-color);
  }

  .timeline li .company {
    padding-block: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-color);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  }

  .timeline li .descr {
    padding-block-end: 1.5rem;
    padding-block-start: 1rem;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #525f7f;
    text-align: justify;
    border-radius: 6px;
    top:-5px;
  }

  /* Skills Grid */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
  }

  .skills-grid span {
    color: #2d3748;
    font-size: 0.8rem;
    font-weight: 600;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
  }

  .skills-grid span:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(194,136,35,0.1), rgba(64,207,255,0.1));
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(64, 207, 255, 0.2);
    color: var(--color-primary);
  }

  @media (min-width: 40rem) {
    .timeline {
      grid-template-columns: 1fr var(--line-w) 1fr;
    }

    .timeline::before {
      grid-column: 2;
    }

    .timeline li:nth-child(odd) {
      grid-column: 1;
    }

    .timeline li:nth-child(even) {
      grid-column: 3;
    }

    .timeline li:nth-child(2) {
      grid-row: 2/4;
    }

    .timeline li:nth-child(odd) .date::before {
      clip-path: polygon(0 0, 100% 0, 100% 100%);
      left: 0;
    }

    .timeline li:nth-child(odd) .date::after {
      transform: translate(-50%, -50%);
      left: calc(100% + var(--col-gap) + var(--line-w) / 2);
    }

    .timeline li:nth-child(odd) .date {
      border-radius: 0 calc(var(--dateH) / 2) calc(var(--dateH) / 2) 0;
    }

    .timeline::after {
      left: 50%;
    }
  }

  /* Mobile */
  @media (max-width: 39.9375rem) {
    .timeline {
      width: 95%;
    }

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

    .skills-grid span {
      font-size: 0.75rem;
      padding: 6px 10px;
    }
  }

  @media (max-width: 768px) {
    .hero {
      padding-top: 100px;
      min-height: auto;
      padding-bottom: 40px;
    }

    .hero-content h1 {
      font-size: 42px;
    }

    .hero-subtitle {
      font-size: 16px;
    }

    .skills-grid-container {
      grid-template-columns: 1fr;
    }

    .resume-section {
      padding: 60px 20px;
    }

    .resume-header h2 {
      font-size: 32px;
    }
  }

  @media (max-width: 480px) {
    .title {
      font-size: 36px;
    }

    .hero-content h1 {
      font-size: 32px;
    }

    .btn {
      padding: 12px 24px;
      font-size: 14px;
    }

    .buttons {
      flex-direction: column;
      gap: 10px;
    }

    .buttons .btn {
      width: 100%;
    }
  }

  /* Footer */
  .footer {
    background: #0a0a0b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px;
    text-align: center;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-copyright {
    color: var(--color-text);
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footer-built {
    color: var(--color-text-muted);
    font-size: 14px;
  }

  .heart {
    animation: heartbeat 1.5s ease-in-out infinite;
  }

  @keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
  }

