    @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      color: #2b2c48;
      font-family: 'Inter', sans-serif;
      background-image: url('../img/background.avif');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      min-height: 100vh;
      display: flex;
      flex-wrap: wrap;
      padding: 20px;
      direction: ltr;
    }

    .card {
      max-width: 340px;
      width: 100%;
      margin: auto;
      overflow: hidden;
      position: relative;
      background-color: white;
      display: flex;
      flex-direction: column;
      border-radius: 12px;
      box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
      transition: 0.3s;
    }

    .card[data-state="#about"] { height: 580px; }
    .card[data-state="#contact"] { height: 620px; }
    .card[data-state="#experience"] { height: 580px; }
    .card[data-state="#photo"] { height: 580px; }

    .card-header {
      position: relative;
      height: 200px;
      flex-shrink: 0;
      width: 100%;
      overflow: hidden;
    }

    .card-cover {
      width: 100%;
      height: 160px;
      position: absolute;
      top: -20%;
      left: 0;
      background-size: cover;
      background-position: center;
      filter: blur(30px);
      transform: scale(1.2);
      transition: 0.5s;
    }

    .card-avatar {
      width: 100px;
      height: 100px;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      border-radius: 50%;
      object-fit: cover;
      position: absolute;
      margin-top: 90px;
      left: 50%;
      transform: translateX(-50%) translateY(-64px);
      z-index: 2;
      transition: 0.3s;
    }

    .card-info {
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%) translateY(-10px);
      text-align: center;
      white-space: nowrap;
      z-index: 1;
      transition: 0.3s;
    }

    .card-fullname {
      font-size: 22px;
      font-weight: 700;
      color: #2b2c48;
    }

    .card-jobtitle {
      font-size: 11px;
      font-weight: 500;
      opacity: 0.7;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      margin-top: 2px;
      color: #516acc;
      transition: opacity 0.3s;
    }

    .card.is-active .card-header { height: 80px; }
    .card.is-active .card-cover { height: 100px; top: -50px; }
    .card.is-active .card-avatar { 
      width: 50px; height: 50px; 
      left: 20px; bottom: 10px; 
      transform: none;
    }
    .card.is-active .card-info {
        left: 56px;
        margin-bottom: 25px;
        transform: none;
    }
    .card.is-active .card-fullname { font-size: 19px; }
    .card.is-active .card-jobtitle { opacity: 0; height: 0; margin: 0; }

    .card-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding-top: 10px;
    }

    .card-content { padding: 20px; }

    .card-subtitle {
      font-weight: 700;
      font-size: 13px;
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #516acc;
    }

    .card-desc {
      line-height: 1.7;
      color: #636b6f;
      font-size: 14px;
      margin: 0;
    }

    .card-buttons {
      display: flex;
      background-color: #fff;
      margin-top: auto;
      border-top: 1px solid #eee;
      position: sticky;
      bottom: 0;
    }

    .card-buttons button {
      flex: 1;
      background: none;
      border: 0;
      padding: 15px 5px;
      font-size: 13px;
      font-weight: 500;
      color: #5c5c6d;
      cursor: pointer;
      transition: 0.3s;
      border-bottom: 3px solid transparent;
    }

    .card-buttons button.is-active,
    .card-buttons button:hover {
      color: #2b2c48;
      border-bottom: 3px solid #8a84ff;
      background: linear-gradient(to bottom, rgba(207, 204, 255, 0.2) 0%, rgba(211, 226, 255, 0.4) 100%);
    }

    .card-section { display: none; }
    .card-section.is-active { display: block; animation: fadeIn 0.6s both; }

    @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .card-timeline { margin-top: 25px; position: relative; }
    .card-timeline:after {
      content: "";
      position: absolute;
      left: 42px;
      top: 0;
      width: 2px;
      height: 100%;
      background: linear-gradient(to top, transparent, #516acc);
    }

    .card-item {
      position: relative;
      padding-left: 60px;
      padding-bottom: 28px;
    }

    .card-item:last-child { padding-bottom: 0; }

    .card-item:after {
      content: attr(data-year);
      position: absolute;
      top: 0;
      left: 37px;
      width: 8px;
      height: 8px;
      border: 2px solid #fff;
      background: linear-gradient(to bottom, #a0aee3, #516acc);
      border-radius: 50%;
      font-size: 11px;
      color: rgba(134, 134, 134, 0.7);
      text-indent: -35px;
      line-height: 0.6;
    }

    .card-item-title {
      font-weight: 600;
      font-size: 14px;
      color: #2b2c48;
      margin-bottom: 4px;
    }

    .card-item-desc {
      font-size: 13px;
      color: #6f6f7b;
      line-height: 1.6;
    }

    .card-contact-wrapper { margin-top: 10px; }
    .card-contact {
      display: flex;
      align-items: center;
      font-size: 13px;
      color: #6f6f7b;
      margin-bottom: 16px;
      text-decoration: none;
    }

    .card-contact svg {
      width: 30px;
      min-height: 34px;
      margin-right: 12px;
      padding-right: 12px;
      border-right: 1px solid #dfe2ec;
      flex-shrink: 0;
    }

    .card-contact a {
      color: #6f6f7b;
      text-decoration: none;
      transition: 0.3s;
    }

    .card-contact a:hover { color: #516acc; }

    .contact-form {
      margin-top: 25px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .form-input, .form-textarea {
      padding: 12px 14px;
      border: 1.5px solid #ddd;
      border-radius: 8px;
      font-size: 14px;
      transition: 0.3s;
    }

    .form-input:focus, .form-textarea:focus {
      outline: none;
      border-color: #8a84ff;
      box-shadow: 0 0 0 3px rgba(138, 132, 255, 0.15);
    }

    .form-textarea {
      min-height: 120px;
      resize: vertical;
    }

    .btn-send {
      background: linear-gradient(135deg, #8a84ff, #516acc);
      color: white;
      border: none;
      padding: 12px;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: 0.3s;
    }

    .btn-send:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 15px rgba(81, 106, 204, 0.3);
    }

    .success-message {
      color: #27ae60;
      font-weight: 500;
      text-align: center;
      margin-top: 10px;
      display: none;
    }

    .gallery-container {
      position: relative;
      margin-top: 15px;
      border-radius: 12px;
      overflow: hidden;
      height: 300px;
    }

    .gallery-slider {
      position: relative;
      width: 100%;
      height: 100%;
    }

    .gallery-img {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; 
      opacity: 0;
      transition: opacity 0.6s ease;
    }

    .gallery-img.active {
      opacity: 1;
    }

    .gallery-nav {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      padding: 0 10px;
      pointer-events: none;
    }

    .gallery-nav button {
      background: rgba(0,0,0,0.5);
      color: white;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 18px;
      cursor: pointer;
      pointer-events: all;
      transition: 0.3s;
    }

    .gallery-nav button:hover {
      background: #8a84ff;
      transform: scale(1.1);
    }

    @media (max-width: 480px) {
      .card[data-state] {min-height: 500px; }
      .gallery-container { height: 220px; }
    }