* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; background: #0a0a0a; color: #ffffff; scroll-behavior: smooth; }

        /* Layout + Section rhythm */
        section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4.5rem 2rem 2.5rem; position: relative; } /* extra top padding so content never hides behind the navbar */
        .container { max-width: 1000px; width: 100%; margin: 0 auto; }

        /* NAVBAR (new) */
        .navbar {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            background: rgba(10,10,10,.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #191919;
        }
      .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between; /* keeps logo left, links right */
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto; /* 👈 forces the brand (logo/name) to the left edge */
}

        
        .brand-mark {
            width: 34px; height: 34px; border-radius: 8px; background: #78f755; display: grid; place-items: center; font-weight: 800;
        }
        .brand span { font-weight: 700; letter-spacing: .3px; }
        .nav-links { display: flex; align-items: center; gap: 1.25rem; }
        .nav-links a {
            color: #bcbcbc; text-decoration: none; font-size: .98rem; padding: .45rem .65rem; border-radius: .5rem; transition: color .2s ease, background .2s ease;
        }
        .nav-links a:hover { color: #fff; background: #171717; }

        /* Burger */
        .burger {
            display: none; background: transparent; border: 0; cursor: pointer; padding: .35rem; border-radius: .5rem;
        }
        .burger:focus-visible { outline: 2px solid #78f755; }
        .burger span, .burger::before, .burger::after {
            content: ""; display: block; width: 22px; height: 2px; background: #ddd; margin: 5px 0; transition: transform .25s ease, opacity .25s ease;
        }
        .burger.active span { opacity: 0; }
        .burger.active::before { transform: translateY(7px) rotate(45deg); }
        .burger.active::after { transform: translateY(-7px) rotate(-45deg); }

        /* Mobile menu panel */
        .nav-panel {
            display: none; flex-direction: column; gap: .5rem; padding: .5rem 1rem 1rem;
        }
        .nav-panel a { padding: .7rem .8rem; background: #121212; border-radius: .6rem; }

/* Home Section (hero) */
#home{
  position:relative;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:1.1rem;
  min-height:100vh;
  padding: calc(64px + 1.5rem) 2rem 2.5rem; /* space for navbar */
  overflow:hidden; /* clip the bg image */
}

/* Background image (full-bleed) */
.home-image{
  position:absolute;
  inset:0;            /* top:0; right:0; bottom:0; left:0 */
  display:block;      /* show it */
  z-index:-2;         /* keep behind the text */
}
.home-image img{
  width:100%;
  height:100%;
  object-fit:cover;   /* responsive fill */
  object-position:center; /* adjust if you want: 'center right' etc. */
  display:block;
}

/* Soft dark overlay for readability */
#home::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);        /* base dim */
  backdrop-filter:saturate(85%);      /* optional */
  z-index:-1;
}

/* Headline + subline spacing & contrast */
h1{
  font-size:clamp(3rem,8vw,5rem);
  font-weight:600;
  line-height:1.1;
  letter-spacing:-.02em;
  margin:0;                           /* tighter */
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}

.yt-link {
  display: inline-block;
  margin-top: 0.75rem;
  line-height: 0;                /* trims stray whitespace */
  transition: transform .2s ease, filter .2s ease;
}

.yt-link:hover { transform: translateY(-2px); filter: brightness(1.15); }

.yt-icon {
  width: 36px;                   /* tweak size as you like */
  height: auto;
  display: block;
  border-radius: 6px;            /* matches your rounded style */
}

.intro p {
  font-size: 1.35rem;
  color: #d3d3d3;
  line-height: 1.5;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.intro .roles {
  position: relative;
  display: inline-block;

}

#roles {
  color: #78f755;
  font-weight: 600;
  animation: fadeInOut 4s ease-in-out infinite;
  display:inline-block;            /* prevents baseline jitter */
  animation: fadeInOut 4s ease-in-out infinite;
  animation-fill-mode: both;       /* holds first/last frame */
  will-change: opacity, transform;
}


@keyframes fadeInOut {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  10%, 90% { opacity: 1; transform: translateY(0); }
}


        /* Experience */
        .experience-section { width: 100%; max-width: 900px; margin: 2rem auto 0; }
        .experience-title { font-size: 2rem; font-weight: 600; margin-bottom: 2.2rem; text-align: center; color: #ffffff; }
        .timeline { position: relative; padding: 1.2rem 0; }
        .timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: #222222; transform: translateX(-50%); }
        .timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; position: relative; margin-bottom: 2.2rem; }
        .timeline-item:nth-child(even) { justify-content: flex-start; padding-right: 0; padding-left: 50%; }
        .timeline-content { width: 90%; padding: 1.5rem; background: #111111; border: 1px solid #222222; border-radius: 8px; position: relative; transition: all 0.3s ease; }
        .timeline-content:hover { border-color: #a855f7; transform: scale(1.02); }
        .timeline-dot { position: absolute; left: 50%; top: 1.5rem; width: 60px; height: 60px; background: #0a0a0a; border: 3px solid #a855f7; border-radius: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .timeline-company { font-size: 1.25rem; font-weight: 600; color: #ffffff; margin-bottom: 0.25rem; }
        .timeline-role { font-size: 1rem; font-style: italic; color: #a855f7; margin-bottom: 0.5rem; }
        .timeline-date { font-size: 0.9rem; color: #666666; }
        @media (max-width: 768px) {
            .timeline::before { left: 30px;}
            .timeline-item, .timeline-item:nth-child(even) { justify-content: flex-start; padding-left: 80px; padding-right: 0;}
            .timeline-dot { left: 30px;}
            .timeline-content { width: 100%; }
        }

/* Projects – horizontal cards */
#projects {
  align-items: flex-start;
  padding-top: 6.5rem;
}
h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 2.2rem;
  letter-spacing: -0.02em;
}
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
/* Title-first layout like ChessMate */
.project-card {
  display: flex;
  flex-direction: column;
  background: #111111;
  border: 1px solid #222222;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 1.5rem 2rem;
}
.project-card:hover {
  border-color: #444444;
  transform: translateY(-4px);
}

/* Title at top */
.project-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

/* Content/Image layout */
.project-body {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: stretch;
}
.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-images {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.project-image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #0b0b0b;
  border-radius: 8px;
}

/* “Watch Demo” button style */
.project-card a.demo-btn {
  display: inline-block;
/*   background: #a855f7;
 */  
  color: #fff;
  background: #78f755;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1.5rem;
  width: fit-content;
  transition: background 0.25s ease;
}
.project-card a.demo-btn:hover {
  background: #9333ea;
}

/* Mobile stack */
@media (max-width: 900px) {
  .project-body {
    flex-direction: column;
  }
}


.contact-icon {
  width: 28px;     /* constant size for all logos */
  height: 28px;
  object-fit: contain;
  display: block;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #888888;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  padding: 0.9rem;
  border-radius: 8px;
}

.contact-link:hover {
  color: #ffffff;
  background: #111111;
  transform: translateX(8px);
}


        /* Mobile nav behavior */
        @media (max-width: 800px) {
            .nav-links { display: none; }
            .burger { display: block; }
            .nav-panel.show { display: flex; }
        }