    :root {
      --bg: #f4f7fb;
      --surface: #ffffff;
      --surface-soft: #eef4ff;
      --text: #0f172a;
      --text-muted: #64748b;
      --accent: #2563eb;
      --accent-strong: #1d4ed8;
      --accent-soft: rgba(37, 99, 235, 0.12);
      --border: rgba(148, 163, 184, 0.24);
      --shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 24%),
        linear-gradient(135deg, #f8fbff 0%, var(--bg) 100%);
      color: var(--text);
      line-height: 1.65;
      position: relative;
      overflow-x: hidden;
    }

    .background-glow {
      position: fixed;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      filter: blur(70px);
      opacity: 0.25;
      pointer-events: none;
      z-index: 0;
    }

    .glow-one {
      background: #60a5fa;
      top: -60px;
      right: -60px;
    }

    .glow-two {
      background: #34d399;
      bottom: -80px;
      left: -60px;
    }

    .topbar,
    header,
    main {
      position: relative;
      z-index: 1;
    }

    .topbar {
      max-width: 1180px;
      margin: 0 auto;
      padding: 1.2rem 1.5rem 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo {
      text-decoration: none;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.03em;
      font-size: 1.05rem;
    }

    .logo span {
      color: var(--accent);
    }

    .nav-links {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text-muted);
      font-weight: 600;
      transition: color 0.2s ease;
    }

    .nav-links a:hover {
      color: var(--accent);
    }

    a:not(.btn):not(.logo):not(.nav-links a) {
      color: var(--accent-strong);
      text-decoration: none;
      border-bottom: 1px dashed rgba(37, 99, 235, 0.45);
      transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
      position: relative;
    }

    a:not(.btn):not(.logo):not(.nav-links a):hover {
      color: var(--accent);
      border-color: transparent;
    }

    a:not(.btn):not(.logo):not(.nav-links a)::after {
      content: " ↗";
      opacity: 0.75;
      transition: transform 0.2s ease;
      font-size: 0.9em;
    }

    a:not(.btn):not(.logo):not(.nav-links a):hover::after {
      transform: translateX(2px);
    }

    .links a {
      display: inline-flex;
      align-items: center;      
      gap: 0.35rem;
      padding: 0.25rem 0.35rem;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.08);
      color: var(--accent-strong);
      border: 1px solid rgba(37, 99, 235, 0.16);
      margin-right: 0.5rem;
      font-weight: 600;
      font-size: 0.9rem;
    }

    .links a:hover {
      background: rgba(37, 99, 235, 0.14);
      border-color: var(--accent);
      color: var(--accent);
    }

    header {
      max-width: 1180px;
      margin: 0 auto;
      padding: 2.5rem 1.5rem 3rem;
      display: grid;
      grid-template-columns: 1.3fr 0.85fr;
      gap: 2rem;
      align-items: center;
    }

    .hero-copy h1 {
      font-size: clamp(2.2rem, 4.4vw, 3.5rem);
      line-height: 1.1;
      margin: 0 0 1rem;
      letter-spacing: -0.04em;
    }

    .eyebrow {
      display: inline-block;
      margin: 0 0 0.7rem;
      color: var(--accent);
      font-size: 0.92rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .hero-copy p {
      margin: 0 0 1.25rem;
      color: var(--text-muted);
      max-width: 62ch;
    }

    .button-row {
      display: flex;
      gap: 0.8rem;
      flex-wrap: wrap;
      margin-bottom: 1.25rem;
    }

    .btn {
      text-decoration: none;
      display: inline-flex;
      justify-content: center;
      align-items: center;
      padding: 0.9rem 1.25rem;
      border-radius: 999px;
      font-weight: 700;
      border: 1px solid transparent;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      cursor: pointer;
    }

    .btn:hover {
      transform: translateY(-2px);
    }

    .btn-primary {
      color: white;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      box-shadow: 0 16px 35px rgba(37, 99, 235, 0.18);
    }

    .btn-secondary {
      color: var(--accent);
      background: var(--surface);
      border-color: var(--border);
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.75rem;
      margin-top: 1rem;
    }

    .stats div {
      padding: 0.9rem;
      border-radius: 1rem;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    .stats strong {
      display: block;
      font-size: 1.05rem;
      color: var(--accent);
    }

    .stats span {
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    .hero-card,
    .card,
    .project-card,
    .resume-card,
    .contact-card {
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      border-radius: 1.35rem;
    }

    .hero-card {
      padding: 1.4rem;
      display: grid;
      gap: 0.85rem;
    }

    .avatar {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      margin: 0 auto;
      display: block;
      object-fit: cover;
      background: linear-gradient(135deg, var(--accent), #60a5fa);
      color: white;
      font-size: 1.35rem;
      font-weight: 800;
      box-shadow: 0 18px 35px rgba(37, 99, 235, 0.2);
    }

    .hero-card h3 {
      margin: 0 auto;
      font-size: 1.5rem;
    }

    .hero-card p {
      margin: 0 auto;
      color: var(--text-muted);
    }

    .hero-card ul {
      margin: 0;
      padding-left: 1rem;
      color: var(--text-muted);
    }

    .hero-card li {
      margin-bottom: 0.35rem;
    }

    main {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 1.5rem 3rem;
      display: grid;
      gap: 1.2rem;
    }

    .section {
      padding: 1.4rem;
    }

    .section-heading {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }

    .section-heading h2 {
      margin: 0;
      font-size: 1.28rem;
    }

    .section-heading p {
      margin: 0;
      color: var(--text-muted);
    }

    .info-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 1rem;
    }

    .card p {
      margin: 0;
      color: var(--text-muted);
    }

    .skill-pill-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.6rem;
      margin-top: 0.8rem;
    }

    .skill-pill {
      padding: 0.45rem 0.8rem;
      border-radius: 999px;
      background: var(--accent-soft);
      color: var(--accent);
      font-weight: 700;
      font-size: 0.9rem;
    }

    .skill-pill:hover {
      box-shadow: 0 3px 15px rgba(5, 84, 255, 0.15);
      transform: translateY(-2px);
    }

    .timeline {
      display: grid;
      gap: 0.8rem;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 110px 1fr;
      gap: 1rem;
      padding: 0.95rem 1rem;
      border-radius: 1rem;
      background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 244, 255, 0.9));
      border: 1px solid var(--border);
    }

    .timeline-item .date {
      font-weight: 700;
      color: var(--accent);
      font-size: 0.95rem;
    }

    .split-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1rem;
      align-items: start;
    }

    .timeline-block {
      display: grid;
      gap: 0.9rem;
    }

    .subsection-title {
      margin: 0;
      font-size: 1.05rem;
      color: var(--accent-strong);
    }
    
    .project-slider {
        position: relative;
        width: 100%;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: auto;
        overflow: hidden;
        border-radius: 25px;
        margin-bottom: 0.75rem;
    }
    
    .project-image {
        width: 100%;
      max-width:300px;
      margin:auto;
      height: auto;;
      object-fit: cover;
      display: none;
    }

    .project-image.active {
      display: block;
    }

    .slider-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      padding: 6px 10px;
      cursor: pointer;
      border-radius: 50%;
      z-index: 2;
    }

    .slider-btn.prev {
      left: 10px;
    }

    .slider-btn.next {
      right: 10px;
    }

    @media (max-width: 860px) {
      .split-grid {
        grid-template-columns: 1fr;
      }
    }

    .timeline-item h3 {
      margin: 0 0 0.2rem;
      font-size: 1rem;
    }

    .timeline-item p {
      margin: 0;
      color: var(--text-muted);
    }

    .filter-row {
      display: flex;
      gap: 0.55rem;
      flex-wrap: wrap;
    }

    .filter {
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text-muted);
      padding: 0.55rem 0.9rem;
      border-radius: 999px;
      cursor: pointer;
      font-weight: 700;
      transition: all 0.2s ease;
    }

    .filter.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }

    .project-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
      gap: 1rem;
    }

    .project-card {
      padding: 1rem;
      border-radius: 1.35rem;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .project-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.1);
    }

    .timeline-item ul {
      margin: 0.5rem 0 0 1rem;
      padding-left: 1rem;
      color: var(--text-muted);
    }

    .timeline-item li {
      margin-bottom: 0.35rem;
      list-style-type: disc;
    }

    .certificate-list {
      margin: 0.75rem 0 0;
      padding-left: 1rem;
      color: var(--text-muted);
    }

    .certificate-list li {
      margin-bottom: 0.75rem;
      list-style-type: disc;
    }

    .certificate-list a {
      color: var(--accent-strong);
      font-weight: 700;
      text-decoration: none;
    }

    .certificate-list a:hover {
      text-decoration: underline;
    }

    .certificate-list span {
      color: var(--text-muted);
      font-size: 0.95rem;
    }

    .project-card.is-hidden {
      display: none;
    }

    .project-card .card-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 0.55rem;
    }

    .project-card h3 {
      margin: 0;
      font-size: 1.05rem;
    }

    .project-card .tag {
      font-size: 0.8rem;
      color: var(--accent);
      background: var(--accent-soft);
      padding: 0.3rem 0.6rem;
      border-radius: 999px;
      font-weight: 700;
    }

    .project-card p {
      margin: 0 0 0.75rem;
      color: var(--text-muted);
    }

    .tech-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-bottom: 0.75rem;
    }

    .tech-row span {
      font-size: 0.8rem;
      color: var(--text-muted);
      background: #f8fafc;
      border: 1px solid var(--border);
      padding: 0.3rem 0.55rem;
      border-radius: 999px;
    }

    .detail-toggle {
      border: none;
      background: transparent;
      color: var(--accent);
      font-weight: 700;
      cursor: pointer;
      padding: 0;
      margin-top: 0.2rem;
    }

    .detail-panel {
      display: none;
      margin-top: 0.7rem;
      padding: 0.7rem;
      border-radius: 0.9rem;
      background: var(--surface-soft);
      color: var(--text-muted);
      border: 1px solid rgba(37, 99, 235, 0.12);
    }

    .project-card.open .detail-panel {
      display: block;
    }

    .resume-card {
      padding: 1.2rem 1.25rem;
      display: grid;
      gap: 0.9rem;
    }

    .resume-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.9rem;
    }

    .resume-grid div {
      padding: 0.95rem;
      border-radius: 1rem;
      background: var(--surface-soft);
      border: 1px solid rgba(37, 99, 235, 0.12);
    }

    .resume-grid h3 {
      margin: 0 0 0.3rem;
      font-size: 1rem;
    }

    .contact-card {
      text-align: center;
      padding: 1.2rem 1.25rem;
    }

    .contact-card a {
      color: var(--accent);
      font-weight: 700;
      text-decoration: none;
    }

    .contact-form {
      display: grid;
      gap: 1rem;
      margin: 1.25rem auto 1.2rem;
      max-width: 820px;
      text-align: left;
    }

    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1.3fr;
      gap: 1rem;
      align-items: stretch;
    }

    .form-column {
      display: grid;
      gap: 1rem;
    }

    .message-column {
      min-height: 100%;
    }

    .full-row {
      height: 100%;
      display: grid;
      gap: 0.35rem;
    }

    .form-row {
      display: grid;
      gap: 0.35rem;
    }

    .contact-form label {
      color: var(--text-muted);
      font-size: 0.95rem;
      font-weight: 700;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: #f8fafc;
      color: var(--text);
      padding: 0.9rem 1rem;
      border-radius: 0.95rem;
      font: inherit;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .contact-form button {
      justify-self: start;
      width: auto;
    }

    .contact-info {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
          gap: 2.5rem;
          margin: 4rem 0;
          padding: 0 1rem;
      }

      .contact-item {
          background: linear-gradient(135deg, var(--surface) 0%, var(--surface-soft) 100%);
          padding: 2.5rem 2rem;
          border-radius: 16px;
          border: 1px solid var(--border);
          text-align: center;
          transition: all 0.3s ease;
          cursor: pointer;
          position: relative;
          overflow: hidden;
      }

      .contact-item::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 4px;
          background: linear-gradient(90deg, var(--accent), var(--accent-soft));
          transform: scaleX(0);
          transition: transform 0.3s ease;
          transform-origin: left;
      }

      .contact-item:hover {
          transform: translateY(-8px);
          border-color: var(--accent);
          box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
      }

      .contact-item:hover::before {
          transform: scaleX(1);
      }

      .contact-item h3 {
          color: var(--text);
          font-size: 1.1rem;
          font-weight: 700;
          margin-bottom: 0.8rem;
          letter-spacing: -0.02em;
      }

      .contact-item p {
          color: var(--text-muted);
          font-size: 0.95rem;
          margin-bottom: 1rem;
          line-height: 1.6;
      }

      .contact-item a {
          color: var(--accent);
          text-decoration: none;
          font-weight: 600;
          font-size: 0.95rem;
          transition: all 0.2s ease;
          display: inline-block;
          padding: 0.5rem 0;
          border-bottom: 2px solid transparent;
      }

      .contact-item a:hover {
          color: var(--accent-strong);
          border-bottom-color: var(--accent);
      }

    .reveal {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.45s ease, transform 0.45s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 860px) {
      header {
        grid-template-columns: 1fr;
      }

      .info-grid {
        grid-template-columns: 1fr;
      }

      .resume-grid {
        grid-template-columns: 1fr;
      }

      .contact-info {
              grid-template-columns: 1fr;
          }
    }

    @media (max-width: 640px) {
      .topbar {
        padding-top: 1rem;
      }

      .nav-links {
        display: none;
      }

      .stats {
        grid-template-columns: 1fr;
      }

      .timeline-item {
        grid-template-columns: 1fr;
      }

      .section {
        padding: 1rem;
      }

      .hero-card {
        padding: 1rem;
      }

      .button-row {
        flex-direction: column;
      }

      .btn {
        width: 100%;
      }
    }

    /*light box*/
    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    .lightbox.hidden {
      display: none;
    }

    #lightbox-img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 10px;
    }

    .close-btn {
      position: absolute;
      top: 20px;
      right: 30px;
      font-size: 30px;
      color: white;
      cursor: pointer;
    }

    .lightbox-prev,
    .lightbox-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      font-size: 30px;
      padding: 10px 15px;
      cursor: pointer;
      border-radius: 50%;
    }

    .lightbox-prev {
      left: 20px;
    }

    .lightbox-next {
      right: 20px;
    }