/* ========== Navbar ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem 0.5rem 2.5rem;
    position: relative;
    z-index: 10;
  }
  .nav-left { display: flex; align-items: center; gap: 0.7rem; }
  .nav-home-link { text-decoration: none; }
  .phi { color: #F4DD17; font-size: 1.5rem; font-weight: bold; margin-right: 0.2rem; }
  .r1 { color: #fff; font-size: 1.2rem; font-weight: 400; }
  .nav-right { display: flex; gap: 2.2rem; }
  .nav-greek { color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; transition: color 0.2s; }
  .nav-greek:hover { color: #F4DD17; }
  
  /* ========== Hero Section ========== */
  .hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2.5rem;
    position: relative;
    overflow: hidden;
  }
  .hero-video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .hero-center { display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; position: relative; width: 100%; height: 100%; }
  .ascent-anim { color: #F4DD17; font-size: 2.7rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; }
  .hero-greek-row { display: flex; justify-content: center; gap: 2.5rem; margin-top: 2rem; z-index: 1; position: relative; width: 100%; }
  .greek-symbol {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.8;
    transition: color 0.2s;
    animation: float 3s ease-in-out infinite;
  }
  .greek-symbol:hover { color: rgba(255, 255, 139, 0.7); opacity: 1; }
  .greek-symbol:nth-child(2) { animation-delay: 0.5s; }
  .greek-symbol:nth-child(3) { animation-delay: 1s; }
  .greek-symbol:nth-child(4) { animation-delay: 1.5s; }
  
  /* ========== Intro Banner ========== */
  .intro-section {
    width: 100vw;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0 3rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
  }
  .intro-video-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: blur(8px); opacity: 0.7; transform: scale(1.1); animation: slow-pan 60s linear infinite alternate; }
  .intro-content { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .intro-banner { display: flex; align-items: center; gap: 2.5rem; background: #fff; border-radius: 18px; box-shadow: 0 2px 24px 0 rgba(0,0,0,0.04); padding: 2.5rem 3.5rem; color: #000; position: relative; }
  .github-cat { width: 90px; height: 90px; object-fit: contain; margin-right: 1.5rem; }
  .intro-text h2 { font-size: 2.5rem; font-weight: 800; margin: 0; letter-spacing: 0.01em; }
  .r1-highlight { color: #F4DD17; font-weight: 900; letter-spacing: 0.04em; }
  
  /* Learn More Button */
  /* .learn-more-btn {
    background: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 15px;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
  }
  
  .learn-more-btn:hover {
    background: #000;
    color: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
  }
  
  .learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 221, 23, 0.2), transparent);
    transition: left 0.3s ease;
  }
  
  .learn-more-btn:hover::before {
    left: 100%;
  }
   */
   .learn-more-btn {
    position: absolute;
    bottom: 1rem;  /* distance from bottom edge of the box */
    right: 1.5rem; /* distance from right edge */
    background: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.5); /* softer text */
    font-size: 0.85rem;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .learn-more-btn:hover {
    color: #F4DD17; /* only slightly brighter on hover */
    transform: scale(1.02); /* minimal hover effect */
  }
  
  .learn-more-btn::before {
    content: none; /* remove shine effect for minimalism */
  }
  
  /* ========== Projects Section ========== */
  .projects-section { padding: 4rem 0 3rem 0; }
  .projects-intro.left-align { margin-left: 1.5rem; margin-bottom: 3.5rem; font-size: 1.3rem; font-style: italic; font-weight: 300; }
  .projects-highlight { color: #F4DD17; font-style: bold italic; font-weight: 700; }
  .project-list { display: flex; flex-direction: column; gap: 3rem; max-width: 1100px; margin: 0 auto; }
  .project-item {
    display: flex;
    background: #1a1a1a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.3s ease;
  }
  .project-item:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(244, 221, 23, 0.2); background: #222; }
  .project-item::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(244, 221, 23, 0.1), transparent); transition: left 0.6s ease; z-index: 1; }
  /* .project-item:hover::before { left: 100%; } */
  .project-item.odd { flex-direction: row; }
  .project-item.even { flex-direction: row-reverse; }
  .project-item:hover .project-img img { transform: scale(1.02); }
  .project-img { flex: 0 0 400px; max-width: 400px; display: flex; align-items: center; justify-content: center; }
  .project-img img { width: 100%; border-radius: 20px; background: #222; transition: transform 0.4s ease; }

  .project-info { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; }
  .project-info h3 { color: #fff; font-size: 1.5rem; font-weight: 700; margin: 0 0 1.2rem 0; }
  .project-info p { font-size: 1rem; margin: 0 0 1.2rem 0; font-weight: 300; }
  .project-desc a { color: #fff; text-decoration: underline; transition: color 0.2s; }
  .project-desc a:hover { color: #F4DD17; } */

.project-item {
    display: flex;
    background: #1a1a1a;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  }
  
  .project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background: #222;
  }
  
  
  .project-item.odd { flex-direction: row; }
  .project-item.even { flex-direction: row-reverse; }
  
  /* ========== Work Section ========== */
  .work-section { padding: 0 0 1rem 0; }
  .work-intro.left-align { margin-left: 1.5rem; margin-bottom: 3.5rem; font-size: 1.3rem; font-style: italic; font-weight: 300; }
  .work-highlight { color: #F4DD17; font-style: bold italic; font-weight: 700; }
  .work-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 900px; margin: 0 auto; }
  .work-item {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .work-item:hover { transform: translateX(10px); box-shadow: -5px 0 20px rgba(244, 221, 23, 0.3); }
  .work-item::after { content: ''; position: absolute; left: -6px; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #F4DD17 0%, #fff 100%); transform: scaleY(0); transition: transform 0.3s ease; transform-origin: bottom; }
  .work-item:hover::after { transform: scaleY(1); }
  .work-company { display: flex; align-items: center; gap: 1.2rem; }
  .work-logo { width: 130px; height: 130px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10); }
  .work-meta { display: flex; flex-direction: column; gap: 0.5rem; }
  .work-title { font-size: 1.5rem; font-weight: 700; }
  .work-role { font-size: 1.1rem; font-weight: 400; }
  .work-tenure { font-size: 1rem; font-weight: 300; color: #F4DD17; }
  
  /* ========== Resume Section ========== */
  .resume-section { background: #D9D9D9; padding: 0 0 3rem 0; }
  .resume-banner { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 0 3rem 0; border-bottom: 1px solid #eee; color: #000; }
  .resume-main-text { font-size: 4.5rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: 0.01em; }
  .resume-sub { display: flex; align-items: center; gap: 1rem; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
  .resume-download-btn { margin-top: 1.2rem; background: none; border: none; padding: 0.5rem; transition: background 0.2s; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
  .resume-download-btn svg circle { fill: #111; }
  .resume-download-btn svg path { stroke: #fff; }
  .resume-download-btn:hover svg circle { fill: rgba(255,255,255,0.6); }
  .resume-download-btn:hover svg path { stroke: black; }
  
  /* ========== Quote Section ========== */
  .quote-section { min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 3rem 0 2rem 0; width:100%;}
  .quote-bg { background-image: url('../assets/moon.png'); background-size: cover; background-position: center; height: 350px; display: flex; align-items: center; justify-content: center; border-radius: 10px; width: 100%;}
  .nepali-quote { position: relative; z-index: 2; font-size: 2rem; font-style: italic; text-align: center; padding: 2rem 1rem; }
  
  /* ========== About Section ========== */
  .about-section { padding: 0 0 4rem 0; display: flex; flex-direction: column; align-items: center; }
  .about-row-container { width: 100%; max-width: 1100px; padding: 0 8vw; margin-bottom: 2.5rem; }
  .about-section-header { width: 100%; display: flex; justify-content: flex-end; margin-bottom: 2rem; }
  .about-section-header h2 { color: #F4DD17; font-size: 2.2rem; font-weight: 700; text-align: right; }
  .about-visuals-row1, .about-visuals-row2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 3vw; width: 100%; margin-bottom: 2.5rem; }
  .about-coffee-man, .about-blog-card, .about-note { height: auto; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
  .about-coffee-man { width: 320px; }
  .about-note { max-width: 400px; }
  .about-blog-card { width: 340px; }
  .about-note-text-mobile { display: none; }
  .about-writing { max-width: 500px; font-size: 1.2rem; font-style: italic; text-align: left; }
  
  /* ========== Contact Section ========== */
  .contact-section { padding: 4rem 0 3rem 0; display: flex; align-items: center; justify-content: center; }
  .contact-banner {
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 2px 24px 0 rgba(0,0,0,0.10);
    padding: 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    animation: slideUpFade 0.8s ease-out;
  }
  .contact-banner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 2rem; }
  .contact-banner form { display: flex; flex-direction: column; gap: 1rem; width: 100%; margin-bottom: 2rem; }
  .contact-banner label { color: white; font-weight: bold; }
  .contact-banner input, .contact-banner textarea { background: #222; color: #fff; border: 1px solid black; border-radius: 6px; padding: 0.7rem; font-size: 1rem; resize: none; }
  .contact-banner button {
    background: #181818;
    color: #fff;
    border: 0.1px solid white;
    border-style: groove;
    border-radius: 6px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
  }
  .contact-banner button:hover { background: #000; color: #F4DD17; box-shadow: 0 0 8px 2px #F4DD1744; border-color: #F4DD17; }
  .contact-socials { display: flex; gap: 1.5rem; justify-content: center; margin-top: 1.5rem; }
  
  /* ========== Buttons & Links ========== */
  .project-links, .work-links, .contact-links { display: flex; gap: 1.5rem; }
  .svg-link {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .svg-link:hover { transform: translateY(-3px) scale(1.1); }
  .svg-link svg { width: 32px; height: 32px; }
  .svg-link path { fill: #E6E6E6; transition: fill 0.2s; }
  .svg-link:hover .github-svg path { fill: #F4DD17; }
  .svg-link:hover .youtube-svg path { fill: #FF2F2F; }
  .svg-link:hover .website-svg path { fill: aquamarine; }
  .svg-link:hover .linkedin-svg path { fill: #0A66C2; }
  .svg-link:hover .email-svg path { fill: #EA4335; }
  .svg-link:hover .whatsapp-svg path { fill: #25D366; }
  .svg-link:hover .cv-svg path { fill: goldenrod; }
  
  .browse-more-btn {
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 20px;
    padding: 0.7rem 2.2rem;
    text-decoration: none;
    border: 1.5px solid #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    position: relative;
    overflow: hidden;
  }
  .browse-more-btn:hover { background: #fff; color: #000; }
  .browse-more-btn::before, .contact-banner button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s ease; }
  .browse-more-btn:hover::before, .contact-banner button:hover::before { left: 100%; }
  /* In css/4-components.css */

.browse-more-wrapper.right-align {
    margin-right: 1.5rem;
    margin-top: 2.5rem;
    text-align: right; /* This line aligns the button to the right */
  }
  /* ========== Scroll-to-Top Button ========== */
  #scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1000;
    display: none; /* Toggled by JS */
    opacity: 0.85;
    transition: opacity 0.2s;
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  #scroll-to-top:hover { opacity: 1; }
  #scroll-to-top svg path { transition: fill 0.2s; }
  #scroll-to-top:hover svg path { fill: #F4DD17; filter: drop-shadow(0 0 8px #F4DD17); }
  
  /* Glowing text effect */
  .projects-highlight, .work-highlight, .r1-highlight {
    text-shadow: 0 0 10px rgba(244, 221, 23, 0.5);
    transition: text-shadow 0.3s ease;
  }
  .projects-highlight:hover, .work-highlight:hover, .r1-highlight:hover {
    text-shadow: 0 0 20px rgba(244, 221, 23, 0.8);
  }
  /* ========== Scroll Progress Indicator ========== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInScrollBar 0.8s ease-out 0.5s forwards;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #F4DD17, #fff);
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(244, 221, 23, 0.5);
}

@keyframes fadeInScrollBar {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Hide on very small screens to avoid clutter */
@media (max-width: 480px) {
  .scroll-progress-container {
    height: 2px;
  }
}

/* ========== Skills Section ========== */
.skills-section {
    padding: 4rem 0;
    background: #000;
  }
  
  .skills-intro.left-align {
    text-align: left;
    margin-bottom: 3rem;
    font-size: 1.3rem;
    color: #fff;
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
    padding: 0 2rem;
  }
  
  .skills-highlight {
    color: #F4DD17;
    font-weight: bold;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
  }
  
  .skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 221, 23, 0.3);
    box-shadow: 0 10px 30px rgba(244, 221, 23, 0.1);
  }
  
  .skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(244, 221, 23, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .skill-icon svg {
    width: 32px;
    height: 32px;
    color: #F4DD17;
    transition: all 0.3s ease;
  }
  
  .skill-category:hover .skill-icon {
    background: rgba(244, 221, 23, 0.2);
    transform: scale(1.1);
  }
  
  .skill-category:hover .skill-icon svg {
    color: #fff;
  }
  
  .skill-category h3 {
    color: #F4DD17;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .skill-category p {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
  }