/* -----------------------------
   Fade Up Animation Keyframes
----------------------------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------
   Apply fade-up to all elements
----------------------------- */
body > * {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.8s ease-out forwards;
}

/* -----------------------------
   Stagger animations automatically
   (1st element 0.05s, 2nd 0.1s, etc.)
----------------------------- */
body *:nth-child(1) { animation-delay: 0.05s; }
body *:nth-child(2) { animation-delay: 0.1s; }
body *:nth-child(3) { animation-delay: 0.15s; }
body *:nth-child(4) { animation-delay: 0.2s; }
body *:nth-child(5) { animation-delay: 0.25s; }
body *:nth-child(6) { animation-delay: 0.3s; }
body *:nth-child(7) { animation-delay: 0.35s; }
body *:nth-child(8) { animation-delay: 0.4s; }
body *:nth-child(9) { animation-delay: 0.45s; }
body *:nth-child(10){ animation-delay: 0.5s; }

/* -----------------------------
   Optional: limit to visible elements only
----------------------------- */
body * {
  will-change: transform, opacity; /* improves performance */
}


    /* =====================
       THEME VARIABLES
    ====================== */
    :root {
      --bg: #0b0f14;
      --panel: #111827;
      --section: #161b22;
      --section-border: #1f2937;
      --text: #c9d1d9;
      --accent: #0F766E;
      --accent-soft: #3EA65A;
      --gold: #f5c451;
      --border: #1f2937;
      --shadow: rgba(0,0,0,0.6);
    }

    [data-theme="light"] {
      --bg: #f5f7fa;
      --panel: #ffffff;
      --section: #f9fafb;
      --section-border: #e5e7eb;
      --text: #1f2937;
      --accent: #0F766E;
      --accent-soft: #3EA65A;
      --gold: #c58b00;
      --border: #e5e7eb;
      --shadow: rgba(0,0,0,0.08);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: "JetBrains Mono", monospace;
      transition: background .3s ease, color .3s ease;
    }

    /* #themeToggle {
      margin-left:auto;
      background:none;
      border:none;
      color:var(--text);
      cursor:pointer;
    } */

/* Right aligned container */
/* Toggle track */
.theme-toggle-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

/* Toggle track */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  background: #d1d1d6;               /* OFF (iOS gray) */
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.35),   /* bottom cavity */
    inset 0 -1px 1px rgba(255, 255, 255, 0.25); /* top inner highlight */
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;

  /* inner rim equalizer */
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

/* ON state (green) */
.theme-toggle.dark {
  background: #22c55e;               /* iOS-like green */
}

/* Knob */
.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(0,0,0,0.25),
    0 3px 8px rgba(0,0,0,0.15);
  transition:
    left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.15s ease;
}

/* Knob position when ON */
.theme-toggle.dark .toggle-knob {
  left: 21px;
}

/* Press feedback */
.theme-toggle:active .toggle-knob {
  transform: scale(0.94);
}




    /* =====================
       LAYOUT
    ====================== */
    .layout {
      display: flex;
      max-width: 1300px;
      margin: auto;
    }

    /* Sidebar */
    .sidebar {
      width: 260px;
      background: #10161d;
      padding: 20px;
      position: sticky;
      top: 0;
      height: 100vh;
      border-right: 1px solid var(--border);
    }

    [data-theme="light"] .sidebar {
      background: #f3f4f6;
    }

    .sidebar h4 {
      font-size: 12px;
      opacity: .6;
      margin-bottom: 12px;
    }

    .file {
      cursor: pointer;
      padding: 6px 0;
      font-size: 13px;
      opacity: .85;
    }

    .file:hover { color: var(--accent-soft); }

    /* Main */
    .main { flex: 1; padding: 40px; }

    .editor {
      background: var(--panel);
      border-radius: 12px;
      box-shadow: 0 30px 80px var(--shadow);
      overflow: hidden;
    }

    .editor-header {
      display: flex;
      align-items: center;
      position: relative;
      padding: 12px 16px;
      background: linear-gradient(
        180deg,
        rgba(255,255,255,0.04),
        rgba(0,0,0,0.2)
      );
      gap: 8px;
      border-bottom: 1px solid var(--border);
    }

    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .red { background:#ff5f56; }
    .yellow { background:#ffbd2e; }
    .green { background:#27c93f; }

    .title {
      margin-left: 10px;
      font-size: 13px;
      opacity: .7;
    }

    .editor-body { padding: 36px; }

    /* =====================
       HERO
    ====================== */
    .hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      margin-bottom: 60px;
    }

    /* .name-text {
      font-size: 32px;
      font-weight: 600;
      font-family: "Poppins", sans-serif;
      background: linear-gradient(
        90deg,
        var(--gold),
        var(--accent),
        var(--accent-soft)
      );
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    } */

    /* Static gradient + soft glow (no motion) */
    .name-text {
      font-size: 32px;
      font-weight: 600;
      font-family: "Poppins", sans-serif;

      background: linear-gradient(
        120deg,
        var(--gold),
        var(--accent),
        var(--accent-soft),
        var(--gold)
      );
      background-size: 300% 300%;
      animation: gradient-flow 8s ease infinite;

      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

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


    .typing-text {
      font-size: 26px;
      font-weight: 500;
      font-family: "Poppins", sans-serif;
      color: var(--accent-soft);
      letter-spacing: 0.3px;
      text-shadow: 0 0 6px rgba(62, 166, 90, 0.25);
    }

    .cursor::after {
      content: "|";
      margin-left: 6px;
      animation: blink 1s infinite;
    }

    @keyframes blink { 50% { opacity: 0; } }

    /* Rotating dashed ring around photo */
:root {
  --photo-size: 190px;         /* Photo size */
  --border-size: 2px;          /* Photo border */
  --outline-size: 2px;         /* Dashed ring thickness */
  --outline-gap: 8px;          /* Distance between photo border and dashed ring */
  --orbit-logo-size: 40px;     /* Size of orbiting logos */
}

/* Photo wrapper */
.photo-wrapper {
  position: relative;
  width: var(--photo-size);
  height: var(--photo-size);
  flex-shrink: 0;
}

/* Photo */
.photo-wrapper .photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: var(--border-size) solid var(--border);
  display: block;
  z-index: 2;
}

/* Dashed ring behind everything */
.photo-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--photo-size) + 2 * var(--outline-gap));
  height: calc(var(--photo-size) + 2 * var(--outline-gap));
  border: var(--outline-size) dashed var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotate-outline 12s linear infinite;
  pointer-events: none;
  z-index: 1; /* <- ensure it’s behind the logos */
}

/* Photo stays above the ring */
.photo-wrapper .photo {
  z-index: 2;
}

/* Orbiting logos above everything */
.orbiting-logo {
  z-index: 3; /* <- ensure logos are on top of the dashed line */
}

@keyframes rotate-outline {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Orbiting logos */
.orbiting-logo {
  width: var(--orbit-logo-size);
  height: var(--orbit-logo-size);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(0deg) translateX(calc((var(--photo-size)/2) + var(--outline-gap)));
}

/* Animations for orbiting logos */
.orbit-1 {
  animation: rotate-logo-1 10s linear infinite;
}

.orbit-2 {
  animation: rotate-logo-2 15s linear infinite reverse;
}

@keyframes rotate-logo-1 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(calc((var(--photo-size)/2) + var(--outline-gap))); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(calc((var(--photo-size)/2) + var(--outline-gap))); }
}

@keyframes rotate-logo-2 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(calc((var(--photo-size)/2) + var(--outline-gap))); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(calc((var(--photo-size)/2) + var(--outline-gap))); }
}



.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Photo styling */
.photo {
  border-radius: 50%;
  display: block;

  /* Green-dominant ambient glow */
  box-shadow:
    0 0 0 2px rgba(201, 162, 63, 0.12),      /* subtle gold rim */
    0 0 12px rgba(34, 197, 94, 0.30),        /* green core */
    0 0 26px rgba(34, 197, 94, 0.42);        /* green outer */

  animation: dualPulse 8s ease-in-out infinite;
}

@keyframes dualPulse {
  0% {
    box-shadow:
      0 0 0 2px rgba(201, 162, 63, 0.10),
      0 0 10px rgba(34, 197, 94, 0.26),
      0 0 22px rgba(34, 197, 94, 0.36);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(201, 162, 63, 0.18),
      0 0 16px rgba(34, 197, 94, 0.38),
      0 0 34px rgba(34, 197, 94, 0.55);
  }

  100% {
    box-shadow:
      0 0 0 2px rgba(201, 162, 63, 0.10),
      0 0 10px rgba(34, 197, 94, 0.26),
      0 0 22px rgba(34, 197, 94, 0.36);
  }
}

    /* =====================
       SECTIONS
    ====================== */
    .section {
      margin-bottom: 40px;
      padding: 28px 32px;
      background: var(--section);
      border: 1px solid var(--section-border);
      border-radius: 14px;
      box-shadow: 0 10px 30px var(--shadow);
      font-size: 14px;
      line-height: 1.8;
    }

    .comment { color: #6b7280; }
    .keyword { color: var(--accent); }

    /* Dark theme */
    [data-theme="dark"] .section-heading {
      color: #00F0FF;
      font-weight: 550;
      opacity: 0.8;
    }

    /* Light theme */
    [data-theme="light"] .section-heading {
      color: #019b96;
      font-weight: 550;
    }

    /* Kubestronaut */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border: 1px solid var(--accent);
      border-radius: 10px;
      background: rgba(15,118,110,0.08);
      margin-top: 12px;
    }

    .badge strong { color: var(--gold); }

    /* Timeline */
    .timeline {
      border-left: 2px solid var(--accent);
      padding-left: 24px;
      margin-top: 14px;
    }

    .timeline-item {
      margin-bottom: 34px;
      position: relative;
    }

    .timeline-item::before {
      content: "";
      width: 10px;
      height: 10px;
      background: var(--accent);
      border-radius: 50%;
      position: absolute;
      left: -30px;
      top: 6px;
    }

    .role { color: var(--accent-soft); font-weight: 500; }
    .meta { font-size: 12px; opacity: .7; margin-bottom: 6px; }

    ul { margin: 6px 0 0 18px; }

    /* =====================
       MOBILE
    ====================== */
    @media (max-width: 900px) {
      .sidebar { display: none; }
      .main { padding: 20px; }
      .hero { flex-direction: column-reverse; text-align: center; }
    }

    /* Project links styling */
    .project-link {
      text-decoration: none;       /* Remove underline */
      transition: color 0.3s ease; /* Smooth color change */
    }
    .project-link:hover {
      color: var(--gold);          /* Hover accent color */
    }

    .skills-category {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
      margin-top: 16px;
    }

    .skill-group {
      display: flex;
      flex-direction: column;
    }

    .skills-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 6px;
    }

    .skill {
      background: rgba(15, 118, 110, 0.08);
      color: var(--accent-soft);
      padding: 4px 10px;
      border-radius: 8px;
      font-size: 13px;
      transition: background 0.3s ease, color 0.3s ease;
      cursor: default;
    }

    .skill:hover {
      background: var(--accent-soft);
      color: var(--bg);
    }

    /* Role headings within skills section */
    #skills .role {
      font-weight: 500;
      margin-bottom: 6px;
      color: var(--gold); /* new color for better visual hierarchy */
    }

    .gold-dot {
      color: var(--gold);
      margin: 0 6px;
      font-weight: bold;
    }

    #contact .info-message {
      font-weight: 500;
      margin-bottom: 6px;
      color: var(--gold); /* new color for better visual hierarchy */
    }


  /* -----------------------
     CONTACT FORM STYLING
  ------------------------ */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 12px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .form-group label {
    font-weight: 500;
    margin-bottom: 6px;
  }

  .contact-form input,
  .contact-form textarea {
    font-family: "JetBrains Mono", monospace;
    background: var(--section);
    border: 1px solid var(--section-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.1s ease;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 8px rgba(15, 118, 110, 0.6);
  }

  /* Validation error effect */
  .input-error {
    border-color: #f87171 !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.6);
    animation: shake 0.2s;
  }

  @keyframes shake {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0px); }
  }

  .error-message {
    color: #f87171;
    font-size: 12px;
    margin-top: 4px;
    display: none;
  }

  /* Submit Button */
  .submit-btn {
    align-self: flex-start;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--gold));
    color: var(--bg);
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    cursor: pointer;
    font-family: "JetBrains Mono", monospace;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.5);
  }

/* Footer */
  .footer {
    text-align: center;
    padding: 16px 0;
    font-size: 13px;
    color: var(--text);
    background: transparent; /* keeps it inline with the page */
    border-top: 1px solid var(--section-border);
    margin-top: 40px;
  }

  @media (max-width: 900px) {
    .footer {
      font-size: 12px;
      padding: 12px 0;
    }
  }


/* ---------------------------
   HORIZONTAL LOGO BAR (inside hero)
---------------------------- */
.logo-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px; /* spacing below typing text */
}

.logo-bar .logo-link {
  display: inline-block;
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-bar .logo-link img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: brightness(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-bar .logo-link:hover img {
  transform: scale(1.15);
  filter: brightness(1);
}

.title-link {
  text-decoration: none;
  cursor: pointer;
}

/* Base title style */
.title-link .title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* Dark theme */
[data-theme="dark"] .title-link .title {
  color: #9fb3c8; /* cool editor-like blue */
  opacity: 0.9;
}

/* Light theme */
[data-theme="light"] .title-link .title {
  color: #374151; /* clean slate gray */
  opacity: 0.85;
}

/* Hover (subtle, professional) */
.title-link:hover .title {
  color: var(--accent-soft);
  opacity: 1;
}


/* =====================
   SEO SAFE VISUALLY HIDDEN
   ===================== */
.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
