@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #050816;
  color: white;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 35%);
  height: 3.5em;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 16px 28px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.nav-links {
  display: flex;
  gap: 40px;
}
/* Fix navbar links - each link gets its own underline */
.nav-links a {
  position: relative;
  display: inline-block;  /* ensures pseudo-element is relative to the link only */
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
  padding-bottom: 6px;    /* space for the underline */
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;              /* changed from -6px to 0 to match padding */
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* HERO (unchanged) */
.hero { position: relative; height: 600vh; }
.bg-gradient-left, .bg-gradient-right {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 700px; height: 700px; border-radius: 50%; filter: blur(140px);
  pointer-events: none;
}
.bg-gradient-left { left: -250px; background: rgba(255,122,24,0.18); z-index:1; }
.bg-gradient-right { right: -250px; background: rgba(45,91,255,0.18); z-index:1; }
#heroCanvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index:5; pointer-events: none; }
.hero-marquee { position: fixed; top: 50%; left: 0; width: 100%; overflow: hidden; transform: translateY(-50%); z-index:2; pointer-events: none; }
.marquee-track { display: flex; width: fit-content; animation: marquee 35s linear infinite; }
.marquee-track span { font-family: 'Tulpen One', cursive; font-size: min(25vw,320px); font-weight: 900; white-space: nowrap; opacity: 0.025; padding-right: 100px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-name { position: fixed; left: 88%; bottom: 45px; transform: translateX(-50%); z-index:20; text-align: center; }
.hero-name span { display: inline-block; margin: 0 3px; font-weight: 800; font-size: 1rem; letter-spacing: 0.35em; transition: transform 0.3s; }
.hero-name:hover span { transform: translateY(-4px); }
.service { position: fixed; top: 38%; width: 420px; z-index:15; opacity: 0; transform: translateY(80px); transition: opacity 0.7s, transform 0.7s; pointer-events: none; }
.left { left: 8%; }
.right { right: 8%; text-align: right; }
.service h2 { font-size: clamp(2rem,3vw,3.5rem); margin-bottom: 12px; line-height: 1; }
.service p { color: rgba(255,255,255,0.65); line-height: 1.8; font-size: 1rem; }

/* GLOBAL SECTIONS */
.section { position: relative; z-index: 30; background: #050816; padding: 140px 10vw; }
.container { max-width: 1300px; margin: auto; }
.section-label { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; opacity: 0; transform: translateY(20px); transition: all 0.8s cubic-bezier(0.2,0.9,0.4,1.1); }
.section-label.visible { opacity: 1; transform: translateY(0); }
.label-text { font-size: 0.85rem; font-weight: 500; color: rgba(255,122,24,0.8); letter-spacing: 2px; }
.label-line { width: 40px; height: 1px; background: linear-gradient(90deg, rgba(255,122,24,0.6), transparent); }
.label-title { font-size: 0.85rem; font-weight: 400; letter-spacing: 3px; opacity: 0.5; text-transform: uppercase; }

/* ABOUT */
.about-section { background: linear-gradient(180deg, #050816 0%, #0a0f1f 100%); }
.about-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 80px; opacity: 0; transform: translateY(30px); transition: all 0.8s 0.2s; }
.about-wrapper.visible { opacity: 1; transform: translateY(0); }
.about-left h2 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; line-height: 1.2; background: linear-gradient(135deg, #fff, #c4b5fd, #a78bfa, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-left .accent { background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead-text { font-size: 1.3rem; font-weight: 500; line-height: 1.5; margin-bottom: 24px; color: rgba(255,255,255,0.9); }
.body-text { font-size: 1rem; line-height: 1.8; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.signature-line { display: flex; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.signature { width: 60px; height: 2px; background: linear-gradient(90deg, #ff7a18, #ffb347); }
.achievement-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; opacity: 0; transform: translateY(30px); transition: all 0.8s 0.3s; }
.achievement-grid.visible { opacity: 1; transform: translateY(0); }
.achievement-card { padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; transition: 0.4s; }
.achievement-card:hover { border-color: rgba(255,122,24,0.3); transform: translateY(-5px); background: rgba(255,122,24,0.03); }
.achievement-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

/* SKILLS (split layout) */
.skills-section { background: linear-gradient(180deg, #050816, #0a0b1a); }
.skills-split-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; opacity: 0; transform: translateY(30px); transition: all 0.8s; }
.skills-split-layout.visible { opacity: 1; transform: translateY(0); }
.skills-heading-left { position: static; top: 120px; }
.skills-heading-left h2 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; background: linear-gradient(135deg, #fff, #c4b5fd, #a78bfa, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skills-heading-left h2 .accent { background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skills-heading-left p { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.heading-stats { display: flex; gap: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.heading-stat .stat-num { font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tech-stack-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.tech-category { background: rgba(10,14,30,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 24px; transition: 0.4s; }
.tech-category:hover { transform: translateY(-6px); border-color: rgba(255,122,24,0.3); }
.category-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.category-icon { font-size: 1.6rem; }
.category-header h3 { flex: 1; font-size: 1.2rem; font-weight: 600; }
.category-progress { font-size: 0.75rem; font-weight: 600; color: #ff7a18; background: rgba(255,122,24,0.1); padding: 4px 8px; border-radius: 20px; }
.tech-items { display: flex; flex-direction: column; gap: 16px; }
.tech-item { display: flex; align-items: center; gap: 12px; }
.tech-name { flex: 1; font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.tech-level-bar { width: 100px; height: 4px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.level-fill { height: 100%; background: linear-gradient(90deg, #ff7a18, #ffb347); border-radius: 4px; }

/* PROJECTS */
.projects-section { background: linear-gradient(180deg, #0a0b1a, #050816); height: 190vh;}
.projects-header-left { margin-bottom: 60px; opacity: 0; transform: translateY(30px); transition: all 0.8s; }
.projects-header-left.visible { opacity: 1; transform: translateY(0); }
.projects-header-left h2 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; line-height: 1.2; margin-bottom: 20px; background: linear-gradient(135deg, #fff, #c4b5fd, #a78bfa, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.projects-header-left h2 .accent { background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.projects-header-left p { font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,0.6); max-width: 600px; }
.projects-grid-container { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; margin-bottom: 60px; opacity: 0; transform: translateY(30px); transition: all 0.8s 0.15s; }
.projects-grid-container.visible { opacity: 1; transform: translateY(0); }
.project-card { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; cursor: pointer; background: #0a0e1f; }
.card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.7s; }
.project-card:hover .card-bg { transform: scale(1.08); }
/* Stronger overlay - darker and more opaque */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 22, 0.5) 0%,
    rgba(5, 8, 22, 0.9) 50%,
    #050816 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 28px;
  transition: all 0.5s ease;
}

/* On hover, slightly reduce opacity but still strong */
.project-card:hover .card-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 8, 22, 0.2) 0%,
    rgba(5, 8, 22, 0.75) 40%,
    rgba(5, 8, 22, 0.92) 100%
  );
}
.card-content { width: 100%; transform: translateY(20px); transition: transform 0.5s; }
.project-card:hover .card-content { transform: translateY(0); }
.card-meta { display: flex; justify-content: space-between; margin-bottom: 12px; }
.card-category { font-size: 0.7rem; padding: 4px 12px; background: rgba(255, 120, 24, 0.733); border-radius: 20px; color: #fff1e7; }
.card-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; background: linear-gradient(135deg, #fff, rgba(255,255,255,0.85)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-description { font-size: 0.85rem; line-height: 1.5; color: rgba(255,255,255,0.65); margin-bottom: 16px; display: -webkit-box; line-clamp: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.card-tech span { font-size: 0.65rem; padding: 4px 12px; background: rgba(255,255,255,0.06); border-radius: 12px; }
.card-links { display: flex; gap: 24px; opacity: 0; transform: translateY(10px); transition: 0.3s 0.1s; }
.project-card:hover .card-links { opacity: 1; transform: translateY(0); }
.card-link { font-size: 0.85rem; color: #ff7a18; text-decoration: none; font-weight: 500; position: relative; }
.card-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px; background: linear-gradient(90deg, #ff7a18, #ffb347); transition: width 0.3s; }
.card-link:hover::after { width: 100%; }
.projects-footer { text-align: center; margin-top: 20px; opacity: 0; transform: translateY(20px); transition: all 0.8s 0.3s; }
.projects-footer.visible { opacity: 1; transform: translateY(0); }
.view-all-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 36px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,122,24,0.3); border-radius: 50px; color: white; text-decoration: none; font-weight: 600; transition: 0.3s; }
.view-all-btn:hover { background: rgba(255,122,24,0.1); gap: 16px; }

/* BLOGS (fully restored) */
.blogs-section { background: linear-gradient(180deg, #050816, #0a0b1a); }
.blogs-header { margin-bottom: 60px; opacity: 0; transform: translateY(30px); transition: all 0.8s; }
.blogs-header.visible { opacity: 1; transform: translateY(0); }
.blogs-header h2 { font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; background: linear-gradient(135deg, #fff, #c4b5fd, #a78bfa, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blogs-header h2 .accent { background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blogs-header p { font-size: 1rem; color: rgba(255,255,255,0.5); margin-top: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 30px; opacity: 0; transform: translateY(30px); transition: all 0.8s 0.2s; }
.blog-grid.visible { opacity: 1; transform: translateY(0); }
.blog-card { padding: 32px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; transition: 0.4s; }
.blog-card:hover { border-color: rgba(255,122,24,0.3); transform: translateY(-8px); background: rgba(255,122,24,0.02); }
.blog-meta { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.75rem; opacity: 0.5; }
.blog-heading { font-size: 1.5rem; font-weight: 600; margin-bottom: 16px; background: linear-gradient(135deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-excerpt { font-size: 0.9rem; line-height: 1.6; opacity: 0.6; margin-bottom: 24px; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
.blog-tag { font-size: 0.7rem; padding: 4px 12px; background: rgba(255,122,24,0.1); border-radius: 20px; color: #ff7a18; }
.blog-link { color: white; text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.blog-link:hover { color: #ff7a18; }

/* CONTACT (perfect) */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; opacity: 0; transform: translateY(30px); transition: all 0.8s; }
.contact-wrapper.visible { opacity: 1; transform: translateY(0); }
.contact-headline { font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; line-height: 1.2; margin-bottom: 48px; background: linear-gradient(135deg, #fff, #c4b5fd, #a78bfa, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-headline .accent { background: linear-gradient(135deg, #ff7a18, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-email { font-size: 1.5rem; font-weight: 600; color: #ffcda9; text-decoration: none; transition: color 0.3s; }
.contact-email:hover { color: #ff7a18; }
.email-label {font-size: 1rem; font-weight: 500; line-height: 1.5; margin-bottom: 24px; color: rgba(224, 224, 224, 0.9);}
.social-connect { display: flex; gap: 24px; margin-top: 30px; }
.social-icon { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; }
.social-icon:hover { color: #ff7a18; transform: translateX(3px); }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; color: white; font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: 0.3s; }
.form-group textarea { resize: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #ff7a18; background: rgba(255,122,24,0.05); }
.submit-button { display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; background: linear-gradient(135deg, #ff7a18, #ffb347); border: none; border-radius: 40px; color: #0a0e1f; font-weight: 700; cursor: pointer; transition: 0.3s; width: fit-content; }
.submit-button:hover { transform: scale(0.98); gap: 16px; }

/* MODERN FOOTER */
.footer-modern { position: relative; background: #03050e; border-top: 1px solid rgba(255,122,24,0.15); padding: 70px 10vw 30px; z-index: 30; overflow: hidden; }
.footer-bg-glow { position: absolute; top: -50%; left: -20%; width: 140%; height: 140%; background: radial-gradient(ellipse at center, rgba(255,122,24,0.05), transparent); pointer-events: none; }
.footer-container { max-width: 1300px; margin: auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 50px; position: relative; z-index: 2; }
.footer-brand { max-width: 300px; }
.footer-logo { font-size: 2rem; font-weight: 800; letter-spacing: 4px; background: linear-gradient(135deg, #fff, #ff7a18); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.footer-tagline { font-size: 0.85rem; opacity: 0.6; margin-bottom: 24px; }
.footer-social-row { display: flex; gap: 20px; }
.footer-social-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,0.03); border-radius: 50%; transition: 0.3s; font-size: 1.2rem; text-decoration: none; color: rgba(255,255,255,0.7); }
.footer-social-icon:hover { background: #ff7a18; color: #0a0e1f; transform: translateY(-3px); }
.footer-links-columns { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links-group { display: flex; flex-direction: column; gap: 12px; }
.footer-links-group h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; letter-spacing: 1px; color: rgba(255,255,255,0.8); }
.footer-links-group a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: 0.2s; }
.footer-links-group a:hover { color: #ff7a18; transform: translateX(4px); }
.footer-bottom { margin-top: 50px; padding-top: 30px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; opacity: 0.6; position: relative; z-index: 2; }
.footer-credit { margin-top: 8px; font-size: 0.7rem; letter-spacing: 0.5px; }

/* RESPONSIVE */
@media (max-width: 1100px) { .skills-split-layout { grid-template-columns: 1fr; } .skills-heading-left { position: relative; top: 0; text-align: center; } .heading-stats { justify-content: center; } }
@media (max-width: 968px) { .about-wrapper { grid-template-columns: 1fr; } .achievement-grid { grid-template-columns: repeat(2,1fr); } .contact-wrapper { grid-template-columns: 1fr; } .projects-grid-container { grid-template-columns: 1fr; } .footer-container { flex-direction: column; align-items: center; text-align: center; } .footer-links-columns { justify-content: center; } }
@media (max-width: 768px) { .tech-stack-grid { grid-template-columns: 1fr; } .nav-links { gap: 20px; } .section { padding: 100px 6vw; } .achievement-grid { grid-template-columns: 1fr; } }

/* SCROLL ANIMATION BASE */
.section-label, .about-wrapper, .achievement-grid, .skills-split-layout, .projects-header-left, .projects-grid-container, .projects-footer, .blogs-header, .blog-grid, .contact-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.section-label.visible, .about-wrapper.visible, .achievement-grid.visible, .skills-split-layout.visible, .projects-header-left.visible, .projects-grid-container.visible, .projects-footer.visible, .blogs-header.visible, .blog-grid.visible, .contact-wrapper.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}