/* ─── RESET & BASE ─────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    html, body {
      margin: 0; padding: 0;
      height: 100%;
      font-family: 'Roboto', sans-serif;
      background: #f5f5f5;
      color: #212121;
      overflow-x: hidden;
    }

    /* ─── CSS VARIABLES ────────────────────────────────────── */
    :root {
      --primary:     #3949ab;
      --primary-dark:#283593;
      --primary-light:#7986cb;
      --accent:      #00bcd4;
      --accent-dark: #0097a7;
      --text-primary:#212121;
      --text-secondary:#757575;
      --divider:     #bdbdbd;
      --surface:     #ffffff;
      --bg:          #f5f5f5;
      --shadow-1: 0 2px 4px rgba(0,0,0,.14),0 1px 5px rgba(0,0,0,.12);
      --shadow-2: 0 4px 8px rgba(0,0,0,.14),0 2px 10px rgba(0,0,0,.12);
      --shadow-3: 0 8px 16px rgba(0,0,0,.14),0 4px 18px rgba(0,0,0,.12);
      --radius: 4px;
    }

    /* ─── MATERIAL CARD ────────────────────────────────────── */
    .mat-card {
      background: var(--surface);
      border-radius: var(--radius);
      box-shadow: var(--shadow-1);
      transition: box-shadow .25s cubic-bezier(.4,0,.2,1), transform .25s cubic-bezier(.4,0,.2,1);
    }
    .mat-card:hover {
      box-shadow: var(--shadow-3);
      transform: translateY(-3px);
    }

    /* ─── NAVBAR ───────────────────────────────────────────── */
    #mainNav {
      background: var(--primary);
      box-shadow: var(--shadow-2);
      transition: background .3s;
      z-index: 1000;
    }
    #mainNav .navbar-brand {
      font-family: 'Roboto Slab', serif;
      font-weight: 700;
      font-size: 1.4rem;
      color: #fff !important;
      letter-spacing: .5px;
    }
    #mainNav .nav-link {
      color: rgba(255,255,255,.85) !important;
      font-weight: 500;
      font-size: .9rem;
      letter-spacing: .8px;
      text-transform: uppercase;
      padding: .5rem 1rem !important;
      position: relative;
      transition: color .2s;
    }
    #mainNav .nav-link::after {
      content: '';
      position: absolute; bottom: 0; left: 50%; right: 50%;
      height: 3px;
      background: var(--accent);
      transition: left .25s, right .25s;
      border-radius: 2px 2px 0 0;
    }
    #mainNav .nav-link:hover,
    #mainNav .nav-link.active {
      color: #fff !important;
    }
    #mainNav .nav-link:hover::after,
    #mainNav .nav-link.active::after {
      left: .5rem; right: .5rem;
    }
    .navbar-toggler {
      border-color: rgba(255,255,255,.5) !important;
    }
    .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }

    /* ─── SECTION SHARED ───────────────────────────────────── */
    section { padding: 80px 0; }
    .section-title {
      font-family: 'Roboto Slab', serif;
      font-size: 2rem;
      font-weight: 700;
      color: var(--primary-dark);
      margin-bottom: .5rem;
    }
    .section-subtitle {
      color: var(--text-secondary);
      font-size: 1rem;
      margin-bottom: 3rem;
    }
    .section-divider {
      width: 60px; height: 4px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 2px;
      margin: .75rem auto 1.5rem;
    }
    .section-dark {
      background: var(--primary-dark);
      color: #fff;
    }
    .section-dark .section-title { color: #fff; }
    .section-dark .section-subtitle { color: rgba(255,255,255,.7); }

    /* ─── BTN MATERIAL ─────────────────────────────────────── */
    .btn-mat {
      display: inline-flex; align-items: center; gap: 6px;
      font-weight: 500; letter-spacing: .8px;
      text-transform: uppercase; font-size: .85rem;
      padding: .65rem 1.6rem;
      border-radius: var(--radius);
      border: none; cursor: pointer;
      box-shadow: var(--shadow-1);
      transition: box-shadow .25s, transform .15s, background .2s;
      position: relative; overflow: hidden;
    }
    .btn-mat:hover {
      box-shadow: var(--shadow-3);
      transform: translateY(-1px);
    }
    .btn-mat:active { transform: translateY(0); box-shadow: var(--shadow-1); }
    .btn-mat-primary { background: var(--primary); color: #fff; }
    .btn-mat-primary:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
    .btn-mat-accent { background: var(--accent); color: #fff; }
    .btn-mat-accent:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
    .btn-mat-outline {
      background: transparent;
      border: 2px solid #fff;
      color: #fff;
      box-shadow: none;
    }
    .btn-mat-outline:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

    /* ══════════════════════════════════════════════════════════
       SECTION 1 — HOME
    ══════════════════════════════════════════════════════════ */
    #home {
      min-height: 100dvh;
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1a237e 100%);
      display: flex; align-items: center;
      position: relative; overflow: hidden;
      padding: 100px 0 60px;
    }
    #home::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(circle at 20% 80%, rgba(0,188,212,.18) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(121,134,203,.2) 0%, transparent 50%);
    }
    /* animated blobs */
    .hero-blob {
      position: absolute;
      border-radius: 50%;
      opacity: .08;
      animation: blobFloat 8s ease-in-out infinite;
    }
    .hero-blob-1 { width: 500px; height: 500px; background: var(--accent); top: -150px; right: -100px; }
    .hero-blob-2 { width: 300px; height: 300px; background: var(--primary-light); bottom: -80px; left: -80px; animation-delay: -4s; }
    @keyframes blobFloat {
      0%,100% { transform: translate(0,0) scale(1); }
      50%      { transform: translate(20px,-20px) scale(1.05); }
    }

    .hero-content { position: relative; z-index: 2; }
    .hero-badge {
      display: inline-block;
      background: rgba(0,188,212,.25);
      border: 1px solid rgba(0,188,212,.5);
      color: var(--accent);
      font-size: .8rem; font-weight: 500;
      letter-spacing: 1.5px; text-transform: uppercase;
      padding: .35rem 1rem; border-radius: 20px;
      margin-bottom: 1.25rem;
    }
    .hero-name {
      font-family: 'Roboto Slab', serif;
      font-size: clamp(2.4rem, 6vw, 4rem);
      font-weight: 700;
      color: #fff;
      line-height: 1.1;
      margin-bottom: .5rem;
    }
    .hero-name span { color: var(--accent); }
    .hero-role {
      font-size: clamp(1.1rem, 2.5vw, 1.5rem);
      color: rgba(255,255,255,.8);
      font-weight: 300;
      margin-bottom: 1.5rem;
    }
    .hero-role .typed-text {
      color: var(--accent);
      font-weight: 500;
      border-right: 2px solid var(--accent);
      animation: blink .75s step-end infinite;
    }
    @keyframes blink { 0%,100%{border-color:var(--accent)} 50%{border-color:transparent} }
    .hero-desc {
      color: rgba(255,255,255,.7);
      font-size: 1rem; line-height: 1.7;
      max-width: 500px; margin-bottom: 2rem;
    }
    .hero-stats {
      display: flex; gap: 2rem; flex-wrap: wrap;
      margin-bottom: 2rem;
    }
    .hero-stat { text-align: center; }
    .hero-stat-num {
      font-size: 1.8rem; font-weight: 700; color: #fff;
      line-height: 1;
    }
    .hero-stat-num span { color: var(--accent); }
    .hero-stat-label {
      font-size: .75rem; text-transform: uppercase;
      letter-spacing: 1px; color: rgba(255,255,255,.6);
    }
    .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
    .hero-avatar-wrap {
      display: flex; justify-content: center; align-items: center;
      position: relative; z-index: 2;
    }
    .hero-avatar-ring {
      width: 280px; height: 280px;
      border-radius: 50%;
      border: 3px solid rgba(0,188,212,.4);
      animation: ringPulse 3s ease-in-out infinite;
      display: flex; align-items: center; justify-content: center;
    }
    @keyframes ringPulse {
      0%,100%{ box-shadow: 0 0 0 0 rgba(0,188,212,.4); }
      50%{ box-shadow: 0 0 0 18px rgba(0,188,212,0); }
    }
    .hero-avatar {
      width: 240px; height: 240px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-light), var(--accent));
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 8px 32px rgba(0,0,0,.3);
      font-size: 6rem; color: rgba(255,255,255,.9);
    }
    .scroll-indicator {
      position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
      z-index: 2; text-align: center;
    }
    .scroll-indicator a { color: rgba(255,255,255,.5); text-decoration: none; }
    .scroll-indicator i { font-size: 1.6rem; animation: bounce 2s infinite; }
    @keyframes bounce {
      0%,100%{ transform: translateY(0); }
      50%{ transform: translateY(8px); }
    }

    /* ══════════════════════════════════════════════════════════
       SECTION 2 — ABOUT
    ══════════════════════════════════════════════════════════ */
    #about { background: var(--bg); }
    .about-img-wrap {
      position: relative; display: inline-block; width: 100%;
      max-width: 360px; margin: 0 auto;
    }
    .about-img-bg {
      position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      border-radius: 8px; opacity: .25;
    }
    .about-img {
      position: relative; z-index: 1;
      width: 100%;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
      aspect-ratio: 3/4; max-height: 420px;
      display: flex; align-items: center; justify-content: center;
      box-shadow: var(--shadow-3);
      font-size: 7rem; color: rgba(255,255,255,.8);
    }
    .about-info-item {
      display: flex; align-items: flex-start; gap: 12px;
      margin-bottom: 1rem;
    }
    .about-info-item i {
      color: var(--primary); font-size: 1.1rem;
      margin-top: 2px; min-width: 20px;
    }
    .about-info-label {
      font-weight: 500; color: var(--text-secondary);
      font-size: .8rem; text-transform: uppercase; letter-spacing: .8px;
      margin-bottom: 1px;
    }
    .about-info-value { color: var(--text-primary); font-size: .95rem; }

    /* Skill bars */
    .skill-item { margin-bottom: 1.2rem; }
    .skill-label {
      display: flex; justify-content: space-between;
      font-size: .85rem; font-weight: 500;
      margin-bottom: .4rem; color: var(--text-primary);
    }
    .skill-bar-track {
      height: 6px; background: #e0e0e0;
      border-radius: 3px; overflow: hidden;
    }
    .skill-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: 3px;
      width: 0;
      transition: width 1.4s cubic-bezier(.4,0,.2,1);
    }

    /* Tech chips */
    .tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
    .tech-chip {
      background: var(--surface);
      border: 1px solid var(--divider);
      border-radius: 16px;
      padding: .3rem .85rem;
      font-size: .8rem; font-weight: 500;
      color: var(--primary);
      box-shadow: var(--shadow-1);
      transition: background .2s, color .2s, box-shadow .2s;
    }
    .tech-chip:hover {
      background: var(--primary);
      color: #fff;
      box-shadow: var(--shadow-2);
    }

    /* Social links */
    .social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
    .social-link {
      width: 40px; height: 40px; border-radius: 50%;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 1rem; text-decoration: none;
      transition: transform .2s, box-shadow .2s;
    }
    .social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
    .social-link.linkedin { background: #0077b5; color: #fff; }
    .social-link.github { background: #24292e; color: #fff; }
    .social-link.twitter { background: #1da1f2; color: #fff; }
    .social-link.dribbble { background: #ea4c89; color: #fff; }

    /* ══════════════════════════════════════════════════════════
       SECTION 3 — RESUME
    ══════════════════════════════════════════════════════════ */
    #resume { background: var(--surface); }

    /* Timeline */
    .timeline-col-label {
      display: flex; align-items: center; gap: 10px;
      font-size: 1.15rem; font-weight: 700;
      color: var(--primary-dark);
      margin-bottom: 1.5rem;
      font-family: 'Roboto Slab', serif;
    }
    .timeline-col-label i { color: var(--accent); font-size: 1.4rem; }
    .timeline { position: relative; padding-left: 28px; }
    .timeline::before {
      content: '';
      position: absolute; left: 8px; top: 0; bottom: 0;
      width: 2px;
      background: linear-gradient(180deg, var(--primary), var(--accent));
      border-radius: 1px;
    }
    .timeline-item { position: relative; margin-bottom: 1.5rem; }
    .timeline-dot {
      position: absolute; left: -24px; top: 16px;
      width: 14px; height: 14px; border-radius: 50%;
      background: var(--primary);
      border: 3px solid var(--surface);
      box-shadow: 0 0 0 2px var(--primary);
      z-index: 1;
      transition: background .2s, box-shadow .2s;
    }
    .timeline-item:hover .timeline-dot {
      background: var(--accent);
      box-shadow: 0 0 0 2px var(--accent);
    }
    .timeline-card {
      background: var(--surface);
      border-radius: var(--radius);
      padding: 1.1rem 1.25rem;
      box-shadow: var(--shadow-1);
      border-left: 3px solid transparent;
      transition: border-color .25s, box-shadow .25s, transform .25s;
    }
    .timeline-item:hover .timeline-card {
      border-left-color: var(--accent);
      box-shadow: var(--shadow-2);
      transform: translateX(4px);
    }
    .timeline-period {
      display: inline-block;
      font-size: .72rem; font-weight: 500; letter-spacing: .8px;
      text-transform: uppercase;
      color: var(--accent-dark);
      background: rgba(0,188,212,.1);
      padding: .18rem .6rem;
      border-radius: 10px;
      margin-bottom: .4rem;
    }
    .timeline-title {
      font-weight: 700; font-size: 1rem;
      color: var(--primary-dark); margin-bottom: .1rem;
    }
    .timeline-org {
      font-size: .85rem; color: var(--text-secondary);
      font-weight: 500; margin-bottom: .5rem;
    }
    .timeline-desc {
      font-size: .88rem; color: var(--text-secondary);
      line-height: 1.6; margin: 0;
    }

    /* Skills grid */
    .skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }
    .skill-badge {
      display: flex; align-items: center; gap: 8px;
      background: var(--bg); border-radius: var(--radius);
      padding: .55rem 1rem;
      font-size: .85rem; font-weight: 500;
      box-shadow: var(--shadow-1);
      border-left: 3px solid var(--primary);
      transition: transform .2s, box-shadow .2s;
    }
    .skill-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
    .skill-badge i { color: var(--primary); }

    /* Download CV */
    .cv-card {
      background: linear-gradient(135deg, var(--primary-dark), var(--primary));
      border-radius: 8px;
      padding: 2rem; color: #fff;
      box-shadow: var(--shadow-2);
      display: flex; align-items: center; gap: 1.5rem;
      flex-wrap: wrap;
    }
    .cv-card-icon { font-size: 3rem; opacity: .8; flex-shrink: 0; }
    .cv-card-text h5 { font-weight: 700; margin-bottom: .25rem; }
    .cv-card-text p { margin: 0; opacity: .8; font-size: .9rem; }

    /* ══════════════════════════════════════════════════════════
       SECTION 4 — PORTFOLIO
    ══════════════════════════════════════════════════════════ */
    #portfolio { background: var(--bg); }

    /* Filter tabs */
    .filter-tabs {
      display: flex; flex-wrap: wrap; gap: 8px;
      justify-content: center; margin-bottom: 2.5rem;
    }
    .filter-tab {
      padding: .45rem 1.2rem;
      border-radius: 20px;
      font-size: .82rem; font-weight: 500;
      letter-spacing: .6px; text-transform: uppercase;
      cursor: pointer;
      border: 2px solid var(--primary);
      color: var(--primary);
      background: transparent;
      transition: background .2s, color .2s, box-shadow .2s;
    }
    .filter-tab.active,
    .filter-tab:hover {
      background: var(--primary); color: #fff;
      box-shadow: var(--shadow-1);
    }

    /* Portfolio cards */
    .portfolio-card {
      border-radius: 8px; overflow: hidden;
      box-shadow: var(--shadow-1);
      transition: box-shadow .3s, transform .3s;
      background: var(--surface);
      margin-bottom: 1.5rem;
    }
    .portfolio-card:hover { box-shadow: var(--shadow-3); transform: translateY(-5px); }
    .portfolio-img {
      position: relative; overflow: hidden;
      height: 200px;
    }
    .portfolio-img-bg {
      width: 100%; height: 100%;
      display: flex; align-items: center; justify-content: center;
      font-size: 4rem;
      transition: transform .4s ease;
    }
    .portfolio-card:hover .portfolio-img-bg { transform: scale(1.08); }
    .portfolio-overlay {
      position: absolute; inset: 0;
      background: rgba(40,53,147,.85);
      display: flex; align-items: center; justify-content: center; gap: 12px;
      opacity: 0;
      transition: opacity .3s;
    }
    .portfolio-card:hover .portfolio-overlay { opacity: 1; }
    .portfolio-overlay-btn {
      width: 44px; height: 44px; border-radius: 50%;
      background: rgba(255,255,255,.15);
      border: 2px solid rgba(255,255,255,.6);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 1rem; cursor: pointer;
      transition: background .2s, transform .2s;
      text-decoration: none;
    }
    .portfolio-overlay-btn:hover { background: rgba(255,255,255,.3); transform: scale(1.1); color: #fff; }
    .portfolio-tag {
      position: absolute; top: 10px; right: 10px;
      background: var(--accent); color: #fff;
      font-size: .7rem; font-weight: 700;
      letter-spacing: .6px; text-transform: uppercase;
      padding: .22rem .65rem; border-radius: 10px;
    }
    .portfolio-body { padding: 1.1rem 1.25rem; }
    .portfolio-title { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; color: var(--primary-dark); }
    .portfolio-desc { font-size: .85rem; color: var(--text-secondary); margin-bottom: .75rem; line-height: 1.5; }
    .portfolio-stack { display: flex; gap: 6px; flex-wrap: wrap; }
    .stack-pill {
      font-size: .72rem; font-weight: 500;
      background: rgba(57,73,171,.1);
      color: var(--primary);
      padding: .18rem .6rem; border-radius: 10px;
    }

    /* ══════════════════════════════════════════════════════════
       SECTION 5 — CONTACT
    ══════════════════════════════════════════════════════════ */
    #contact { background: var(--primary-dark); }
    #contact .section-title { color: #fff; }
    #contact .section-subtitle { color: rgba(255,255,255,.7); }

    .contact-info-card {
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px; padding: 1.5rem 1.25rem;
      display: flex; align-items: flex-start; gap: 1rem;
      margin-bottom: 1rem;
      transition: background .2s, transform .2s;
    }
    .contact-info-card:hover { background: rgba(255,255,255,.13); transform: translateX(4px); }
    .contact-info-icon {
      width: 48px; height: 48px; border-radius: 50%;
      background: var(--accent); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.2rem; flex-shrink: 0;
    }
    .contact-info-label {
      font-size: .75rem; text-transform: uppercase; letter-spacing: 1px;
      color: rgba(255,255,255,.5); margin-bottom: .2rem;
    }
    .contact-info-value { color: #fff; font-weight: 500; font-size: .95rem; }

    /* Contact form */
    .contact-form-card {
      background: var(--surface);
      border-radius: 8px;
      padding: 2rem;
      box-shadow: var(--shadow-3);
    }
    .mat-input-wrap { position: relative; margin-bottom: 1.5rem; }
    .mat-input {
      width: 100%;
      padding: 1rem .75rem .4rem;
      font-size: .95rem;
      border: none;
      border-bottom: 2px solid var(--divider);
      background: transparent;
      outline: none;
      color: var(--text-primary);
      transition: border-color .25s;
      font-family: 'Roboto', sans-serif;
    }
    .mat-input:focus { border-color: var(--primary); }
    .mat-label {
      position: absolute; top: .75rem; left: .75rem;
      font-size: .9rem; color: var(--text-secondary);
      pointer-events: none;
      transition: top .2s, font-size .2s, color .2s;
    }
    .mat-input:focus ~ .mat-label,
    .mat-input:not(:placeholder-shown) ~ .mat-label {
      top: .1rem; font-size: .72rem; color: var(--primary);
    }
    .mat-input::placeholder { color: transparent; }
    textarea.mat-input { resize: vertical; min-height: 120px; padding-top: 1.2rem; }

    /* Map placeholder */
    .map-placeholder {
      border-radius: 8px; overflow: hidden;
      height: 200px;
      background: linear-gradient(135deg, #1a237e, #283593);
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 8px;
      color: rgba(255,255,255,.6);
      margin-top: 1rem;
      border: 1px solid rgba(255,255,255,.12);
    }
    .map-placeholder i { font-size: 2.5rem; color: var(--accent); }
    .map-placeholder span { font-size: .85rem; }

    /* ─── FOOTER ───────────────────────────────────────────── */
    footer {
      background: #0d1033;
      color: rgba(255,255,255,.6);
      text-align: center;
      padding: 1.5rem 1rem;
      font-size: .85rem;
    }
    footer a { color: var(--accent); text-decoration: none; }
    footer a:hover { color: var(--accent-dark); }

    /* ─── TOAST ────────────────────────────────────────────── */
    .toast-wrap {
      position: fixed; bottom: 24px; right: 24px; z-index: 9999;
      display: none;
    }
    .mat-toast {
      background: #323232; color: #fff;
      padding: .9rem 1.4rem;
      border-radius: var(--radius);
      box-shadow: var(--shadow-3);
      font-size: .9rem;
      display: flex; align-items: center; gap: 10px;
      animation: slideIn .3s ease;
    }
    @keyframes slideIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
    .mat-toast i { color: #69f0ae; }

   
    /* ─── MOBILE ───────────────────────────────────────────── */
    @media (max-width: 767px) {
      section { padding: 60px 0; }
      .section-title { font-size: 1.6rem; }
      .hero-avatar-wrap { margin-top: 2.5rem; }
      .hero-avatar-ring { width: 200px; height: 200px; }
      .hero-avatar { width: 170px; height: 170px; font-size: 4.5rem; }
      .hero-stats { gap: 1.5rem; }
      .hero-desc { font-size: .9rem; }
      .about-img { max-height: 280px; }
      .cv-card { flex-direction: column; text-align: center; }
      .contact-form-card { padding: 1.25rem; }
    }
    @media (max-width: 575px) {
      .hero-name { font-size: 2rem; }
      .hero-role { font-size: 1rem; }
      .hero-stats { gap: 1rem; }
      .hero-stat-num { font-size: 1.4rem; }
      .filter-tab { font-size: .75rem; padding: .35rem .9rem; }
    }

    .backtosite{
     position: flex; 
      top: 24px;        /* Changed from bottom: 300px */
      right: 24px;
      
      width: 48px; 
      height: 48px; 
      border-radius: 50%;
      background: var(--primary);
      color: #fff; 
      font-size: 1.1rem;
      
      display: none; 
      align-items: center; 
      justify-content: center;
      
      box-shadow: var(--shadow-2);
      cursor: pointer; 
      z-index: 9000;
      border: none;
      transition: background .2s, box-shadow .2s, transform .2s;
    }

    #backtosite:hover { 
      background: var(--accent); 
      box-shadow: var(--shadow-3); 
      transform: translateY(2px); /* Changed to push downward slightly instead of upward */
    }
    
    