body {
  margin: 0;
  font-family: 'Inter', 'Space Grotesk', Arial, sans-serif;
  background: linear-gradient(135deg, #e8f4ff 0%, #f8fbff 100%);
  color: #1a2233;
  min-height: 100vh;
  cursor: none;
  transition: background 0.4s, color 0.4s;
}
/* Respect iOS safe areas */
:root {
  --safe-top: env(safe-area-inset-top);
  --safe-right: env(safe-area-inset-right);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
}
.hero-content,
.timeline-content,
.project-card,
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.82) !important;
  color: #1a2233 !important;
  box-shadow: 0 8px 32px 0 #60a5fa22;
  border: 1.5px solid #e0eaff;
  backdrop-filter: blur(10px);
}
.footer {
  background: #e0eaff;
  color: #2563eb;
}
/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  background: #2563eb;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.cta-btn, .resume-btn {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
}
.nav-links a:hover, .nav-link.active {
  background: #e0eaff;
  color: #2563eb !important;
}
#floating-action-btn {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
}
#fab-icon svg { color: #2563eb; }

/* Section entrance animations */
.animated { opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1); }
.animated.visible { opacity: 1; transform: none; }
.fade-in { opacity: 0; transition: opacity 0.7s; }
.fade-in.visible { opacity: 1; }
.slide-up { opacity: 0; transform: translateY(40px); transition: opacity 0.7s, transform 0.7s; }
.slide-up.visible { opacity: 1; transform: none; }
.scale-in { opacity: 0; transform: scale(0.92); transition: opacity 0.7s, transform 0.7s; }
.scale-in.visible { opacity: 1; transform: scale(1); }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.07);
  z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}
.logo {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #1a2233;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.nav-links a:hover {
  color: #2563eb;
  background: #e0eaff;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 600px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.floating-code {
  position: absolute;
  top: 60%;
  left: 10vw;
  font-family: 'Space Grotesk', monospace;
  font-size: 1.1rem;
  color: #2563eb;
  background: rgba(255,255,255,0.7);
  border-radius: 1rem;
  padding: 0.7rem 1.2rem;
  box-shadow: 0 2px 12px 0 rgba(30, 64, 175, 0.10);
  animation: floatY 5s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes floatY {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}
.hero-section {
  position: relative;
  z-index: 2;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-video-bg video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.5) blur(1px);
}
.portal {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 0 32px 8px #60a5fa99, 0 0 0 4px #a78bfa55;
  border: 3px solid #60a5fa;
  background: linear-gradient(135deg, #60a5fa 60%, #a78bfa 100%);
  opacity: 0.85;
  animation: portal-glow 2.5s infinite alternate;
}
.portal-top {
  width: 90px; height: 30px;
  left: 50%; top: 8%;
  transform: translateX(-50%) rotateX(60deg);
  animation-delay: 0s;
}
.portal-bottom {
  width: 90px; height: 30px;
  left: 50%; bottom: 8%;
  transform: translateX(-50%) rotateX(60deg);
  animation-delay: 1.2s;
}
.portal-wall {
  width: 30px; height: 90px;
  right: 8%; top: 50%;
  transform: translateY(-50%) rotateY(60deg);
  animation-delay: 0.6s;
}
@keyframes portal-glow {
  from { box-shadow: 0 0 32px 8px #60a5fa99, 0 0 0 4px #a78bfa55; opacity: 0.7; }
  to   { box-shadow: 0 0 48px 16px #a78bfaee, 0 0 0 8px #60a5fa55; opacity: 1; }
}
.cat-portal {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 60px;
  z-index: 3;
  transform: translateX(-50%);
  animation: cat-portal-move 4.5s infinite linear;
  filter: drop-shadow(0 2px 8px #60a5fa99);
}
@keyframes cat-portal-move {
  0%   { top: 8%; left: 50%; transform: translateX(-50%) scaleX(1) rotate(0deg); }
  20%  { top: 40%; left: 60%; transform: translateX(-50%) scaleX(1.1) rotate(10deg); }
  40%  { top: 80%; left: 50%; transform: translateX(-50%) scaleX(-1) rotate(-10deg); }
  60%  { top: 40%; left: 40%; transform: translateX(-50%) scaleX(-1.1) rotate(-10deg); }
  80%  { top: 8%; left: 50%; transform: translateX(-50%) scaleX(1) rotate(0deg); }
  100% { top: 8%; left: 50%; transform: translateX(-50%) scaleX(1) rotate(0deg); }
}
.hero-content {
  position: relative;
  z-index: 4;
  background: rgba(255,255,255,0.75);
  border-radius: 2rem;
  box-shadow: 0 8px 32px 0 rgba(30, 64, 175, 0.10);
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  text-align: center;
}
.hero-content h1 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-content .highlight {
  color: #2563eb;
}
.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: #3b82f6;
  margin-bottom: 1.2rem;
}
.hero-content p {
  font-size: 1.1rem;
  color: #334155;
  margin-bottom: 2rem;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(30, 64, 175, 0.18);
}
.typing-headline {
  min-height: 3.5rem;
  letter-spacing: 1px;
}
#typed-text {
  font-size: 1.3rem;
  color: #3b82f6;
  min-height: 2.2rem;
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero-btns {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-top: 1.2rem;
}
.resume-btn {
  display: inline-block;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
  border: 2px solid #2563eb;
  transition: background 0.2s, color 0.2s;
}
.resume-btn:hover {
  background: #2563eb;
  color: #fff;
}

.projects-section {
  padding: 4rem 0 2rem 0;
}
.projects-section h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255,255,255,0.8);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  will-change: transform, box-shadow, opacity;
  opacity: 0;
  transform: translateY(40px) scale(1);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.2s, opacity 0.5s;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.project-card.tilt {
  transition: transform 0.15s cubic-bezier(.4,2,.6,1), box-shadow 0.2s;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(30, 64, 175, 0.18);
}
.project-card .tags span { position: relative; overflow: hidden; }
.project-card .tags span.brand-hover { color: #fff; }
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
}
.project-card h3 { position: relative; }
.project-card h3.section-underline:after { bottom: -6px; }
.project-card h3 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.2rem 0 0.5rem 0;
  color: #2563eb;
}
.project-card p {
  color: #334155;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tags span {
  background: #e0eaff;
  color: #2563eb;
  font-size: 0.85rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.about-section, .contact-section, .socials-section {
  padding: 4rem 0 2rem 0;
}
.about-section h2, .contact-section h2, .socials-section h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.about-section p {
  color: #334155;
  font-size: 1.1rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 400px;
  margin: 0 auto;
}
.contact-form input, .contact-form textarea {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #cbd5e1;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
  resize: none;
  transition: border 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border: 1.5px solid #2563eb;
  outline: none;
}
.contact-form button {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
}
.contact-form button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(30, 64, 175, 0.18);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 2.2rem;
  margin-top: 1.5rem;
}
.social-icons a {
  color: #2563eb;
  background: #e0eaff;
  border-radius: 50%;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.social-icons a:hover {
  background: #2563eb;
  color: #fff;
  transform: scale(1.12);
}

/* Services */
.services-section { padding: 4rem 0 2rem 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid #e0eaff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
}
.service-card h3 { color: #2563eb; margin-top: 0; margin-bottom: 0.4rem; }
.service-card p { color: #334155; margin: 0; }

/* Testimonials */
.testimonials-section { padding: 4rem 0 2rem 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.testimonial {
  margin: 0;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid #e0eaff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem;
  color: #1a2233;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
}
.testimonial footer { margin-top: 0.6rem; color: #2563eb; font-weight: 700; }

/* FAQ */
.faq-section { padding: 4rem 0 2rem 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid #e0eaff;
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 0.6rem;
  color: #1a2233;
}
.faq-icon { color: #2563eb; font-weight: 700; }
.faq-panel {
  background: rgba(255,255,255,0.95);
  border: 1.5px solid #e0eaff;
  border-radius: 0.8rem;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem 0;
  color: #334155;
}

/* Blog */
.blog-section { padding: 4rem 0 2rem 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.blog-card {
  background: rgba(255,255,255,0.9);
  border: 1.5px solid #e0eaff;
  border-radius: 1rem;
  padding: 1.2rem 1.2rem;
  color: #1a2233;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
}
.blog-card a { color: #2563eb; text-decoration: none; }
.blog-card a:hover { text-decoration: underline; }

.footer {
  background: #e0eaff;
  color: #2563eb;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  font-size: 1rem;
  font-family: 'Inter', Arial, sans-serif;
  margin-top: 2rem;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
  transition: all 0.3s;
}
.menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30, 64, 175, 0.18);
  z-index: 120;
  transition: opacity 0.3s;
}
.menu-overlay.open {
  display: block;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
@media (max-width: 700px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100vw;
    flex-direction: column;
    background: rgba(255,255,255,0.97);
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    gap: 2rem;
    padding: 2.5rem 1.5rem;
    box-shadow: -2px 0 24px 0 rgba(30, 64, 175, 0.10);
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    transition: right 0.3s;
    z-index: 150;
    align-items: flex-start;
    padding-top: 3.5rem;
    gap: 2.2rem;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1.3rem;
    padding: 0.7rem 1.2rem;
    width: 100%;
    text-align: left;
    border-radius: 1rem;
  }
  .hamburger {
    z-index: 200;
  }
}

/* Scrollspy */
.nav-link.active {
  color: #fff !important;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  box-shadow: 0 2px 12px 0 rgba(30, 64, 175, 0.10);
} 

/* Remove project-filters and filter-btn styles */
.techstack-section {
  padding: 4rem 0 2rem 0;
}
.techstack-section h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.tech-icons div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #2563eb;
  font-weight: 600;
  transition: transform 0.2s;
  opacity: 0;
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(.4,2,.6,1), opacity 0.5s;
}
.tech-icons div.visible {
  opacity: 1;
  transform: scale(1);
}
.tech-icons div:hover {
  transform: scale(1.13) rotate(-3deg);
}
.tech-icons img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px #60a5fa33);
}

.timeline-section {
  padding: 4rem 0 2rem 0;
}
.timeline-section h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}
.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 600px;
  padding-left: 30px;
}
.timeline:before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #60a5fa 100%);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: flex-start;
}
.timeline-dot {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 4px solid #2563eb;
  border-radius: 50%;
  position: absolute;
  left: -2px;
  top: 0;
  z-index: 1;
  box-shadow: 0 2px 8px #60a5fa33;
}
.timeline-content {
  background: rgba(255,255,255,0.85);
  border-radius: 1rem;
  box-shadow: 0 2px 12px 0 rgba(30, 64, 175, 0.10);
  padding: 1.2rem 1.5rem;
  margin-left: 40px;
  min-width: 200px;
}
.timeline-content h3 {
  margin: 0 0 0.3rem 0;
  color: #2563eb;
  font-size: 1.1rem;
  font-weight: 700;
}
.timeline-content p {
  margin: 0;
  color: #334155;
  font-size: 1rem;
}

.workingon-section {
  padding: 4rem 0 2rem 0;
  text-align: center;
}
.workingon-section h2 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.workingon-section p {
  color: #334155;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

#backToTop {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  z-index: 300;
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.08);
} 

.aboutme-lab-section {
  padding: 4rem 0 2rem 0;
}
.aboutme-lab-grid {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.aboutme-lab-left {
  background: linear-gradient(180deg, #0a1e3c 0%, #0a2348 100%);
  border: 2.5px solid #60a5fa;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px 0 #60a5fa33;
  color: #e8f4ff;
  font-family: 'Space Grotesk', Arial, sans-serif;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.aboutme-lab-left::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(135deg, #60a5fa33 0%, #a78bfa33 100%);
  opacity: 0.7;
}
.aboutme-lab-left::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px #2a6cff88, 0 0 24px #60a5fa22;
}
.aboutme-lab-left > * { position: relative; z-index: 1; }
.aboutme-skills-title, .aboutme-facts-title {
  color: #60a5fa;
}
.aboutme-skills-title {
  display: inline-block;
  background: linear-gradient(180deg, #1b3258 0%, #152a4e 100%);
  border: 2px solid #2a6cff88;
  border-bottom: none;
  padding: 0.5rem 1rem;
  border-top-left-radius: 0.8rem;
  border-top-right-radius: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.aboutme-skills-box {
  margin-top: 0.6rem;
  padding: 1rem;
  border: 2px solid #2a6cff88;
  border-radius: 1rem;
  background: linear-gradient(180deg, #0f2548 0%, #0c274f 100%);
  box-shadow: inset 0 0 0 1px #60a5fa22;
}
.aboutme-info-box span {
  color: #60a5fa;
}
.aboutme-bar { background: #183b5b; border-radius: 999px; height: 10px; }
.aboutme-bar-fill { background: linear-gradient(90deg, #60a5fa 0%, #2563eb 100%); box-shadow: 0 2px 8px #60a5fa55; transition: width 1.2s cubic-bezier(.4,2,.6,1); height: 10px; border-radius: 999px; }
.aboutme-lab-left.visible .aboutme-bar-fill {
  width: var(--bar);
}
.aboutme-facts-box {
  margin-top: 1.5rem;
}
.aboutme-facts-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 0.7rem;
  letter-spacing: 1px;
}
.aboutme-fact {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #cfe9ff;
}
.aboutme-fact svg {
  min-width: 24px;
  min-height: 24px;
  margin-top: 2px;
  stroke: #60a5fa;
}

/* Neon panel accents */
.aboutme-lab-left { background: linear-gradient(180deg, #0a1e3c 0%, #0a2348 100%); }
.aboutme-lab-left::after { content: ''; position: absolute; inset: 0; border-radius: 1.5rem; pointer-events: none; box-shadow: inset 0 0 0 2px #2a6cff88, 0 0 24px #60a5fa22; }
.aboutme-header { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; background: rgba(12, 36, 72, 0.9); border: 1.5px solid #60a5fa; border-radius: 1rem; padding: 0.8rem 1rem; margin: 0.8rem 0 1rem 0; box-shadow: inset 0 0 16px #60a5fa22; }
.aboutme-stat { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; color: #e8f4ff; font-weight: 600; }
.aboutme-stat .stat-label { color: #8cc7ff; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.aboutme-stat .stat-value { color: #ffffff; }
.aboutme-skill { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 0.7rem; }
.aboutme-skill span { display: flex; align-items: center; gap: 0.5rem; color: #cfe9ff; font-weight: 700; }
.skill-icon { width: 20px; height: 20px; filter: drop-shadow(0 1px 4px #60a5fa55); }
.aboutme-lab-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 320px;
}
.aboutme-lab-3d {
  width: 340px;
  max-width: 100%;
  filter: drop-shadow(0 8px 32px #60a5fa55);
  border-radius: 2rem;
  background: rgba(255,255,255,0.05);
}
@media (max-width: 900px) {
  .aboutme-lab-grid { flex-direction: column; align-items: center; }
  .aboutme-lab-right { min-width: 220px; }
  .aboutme-lab-3d { width: 220px; }
} 

.hero-three-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
#three-hero {
  width: 100vw;
  height: 100vh;
  display: block;
  position: absolute;
  top: 0; left: 0;
  z-index: 0;
  pointer-events: none;
} 
#floating-action-btn {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(30, 64, 175, 0.10);
  cursor: pointer;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  outline: none;
}
#floating-action-btn.fab-dark {
  background: linear-gradient(90deg, #232946 0%, #232946 100%);
  color: #ffd700;
}
#floating-action-btn.fab-up {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  color: #fff;
}
#fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
}
#floating-action-btn svg {
  width: 28px;
  height: 28px;
  display: block;
} 

/* Parallax/floating background shapes */
.parallax-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.parallax-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(2px);
  animation: floatParallax 12s ease-in-out infinite alternate;
}
.parallax-shape1 { width: 320px; height: 320px; left: 8vw; top: 10vh; background: linear-gradient(135deg, #60a5fa 60%, #a78bfa 100%); animation-delay: 0s; }
.parallax-shape2 { width: 180px; height: 180px; right: 10vw; top: 30vh; background: linear-gradient(135deg, #ff9800 60%, #ffd700 100%); animation-delay: 2s; }
.parallax-shape3 { width: 220px; height: 220px; left: 20vw; bottom: 8vh; background: linear-gradient(135deg, #a78bfa 60%, #60a5fa 100%); animation-delay: 4s; }
@keyframes floatParallax {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-40px) scale(1.08); }
}

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 3.8rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  animation: bounceDown 1.6s infinite;
  margin-bottom: 1.2rem;
}
.scroll-indicator span {
  font-size: 1.2rem;
  color: #2563eb;
  margin-bottom: 0.2rem;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(16px); }
} 

#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border: 2px solid #2563eb;
  border-radius: 50%;
  background: rgba(96,165,250,0.1);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, border-color 0.2s ease, background 0.2s ease;
  mix-blend-mode: multiply;
}
#custom-cursor.cursor-hover {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.2s ease;
}

/* Purple outline effect for hovered elements */
.cursor-captured {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(167,139,250,0.15), 0 0 12px rgba(167,139,250,0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: liquidExit 0.6s ease-out;
}

@keyframes liquidExit {
  0% {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(167,139,250,0.15), 0 0 12px rgba(167,139,250,0.3);
  }
  100% {
    outline: 2px solid transparent;
    outline-offset: 8px;
    box-shadow: 0 0 0 0px rgba(167,139,250,0), 0 0 0px rgba(167,139,250,0);
  }
}

/* Fun widget */
.fun-widget {
  margin: 2.5rem auto 0 auto;
  max-width: 340px;
  background: rgba(255,255,255,0.95);
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px 0 #60a5fa22;
  border: 2px solid #e0eaff;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  color: #2563eb;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: fadeInFun 1.2s;
  justify-content: center;
}
@keyframes fadeInFun {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* Card/section hover effect */
.project-card, .aboutme-lab-left, .timeline-content, .contact-form, .hero-content {
  transition: box-shadow 0.2s, transform 0.2s;
}
.project-card:hover, .aboutme-lab-left:hover, .timeline-content:hover, .contact-form:hover, .hero-content:hover {
  box-shadow: 0 12px 36px 0 #60a5fa44;
  transform: translateY(-4px) scale(1.015);
} 
}

/* ========= Mobile optimization ========= */
@media (max-width: 700px) {
  html { scroll-padding-top: calc(64px + var(--safe-top)); }
  body { cursor: auto; }
  .navbar { padding-left: var(--safe-left); padding-right: var(--safe-right); }
  .nav-content { padding: 0.8rem 0; }
  .logo { font-size: 1.4rem; }
  .hero-section { min-height: calc(100vh - var(--safe-top) - var(--safe-bottom)); padding: 4rem 0 2rem 0; }
  .hero-content { padding: 1.6rem 1.2rem; border-radius: 1.2rem; }
  .hero-content h1 { font-size: 2rem; }
  #typed-text { font-size: 1.05rem; }
  .hero-content p { font-size: 1rem; }
  .cta-btn, .resume-btn { padding: 0.8rem 1.4rem; font-size: 1rem; }
  .scroll-indicator { bottom: calc(1.2rem + var(--safe-bottom)); }
  .hero-bg { height: 420px; }
  #three-hero { height: 70vh; }

  .projects-section, .about-section, .contact-section, .socials-section, .services-section, .techstack-section, .timeline-section, .workingon-section { padding: 2.5rem 0 1.2rem 0; }
  .projects-section h2, .services-section h2, .techstack-section h2, .timeline-section h2, .workingon-section h2, .contact-section h2, .socials-section h2 { font-size: 1.6rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .project-card img { height: 160px; }

  .tech-icons { gap: 1.2rem; }
  .tech-icons img { width: 40px; height: 40px; }

  .timeline { padding-left: 22px; }
  .timeline-content { padding: 1rem; margin-left: 32px; }

  .aboutme-lab-grid { gap: 1.2rem; }
  .aboutme-header { grid-template-columns: 1fr 1fr; }
  .aboutme-skill { grid-template-columns: 1fr; }
  .aboutme-lab-3d { width: 200px; }

  .footer { padding-bottom: calc(1rem + var(--safe-bottom)); }
  #floating-action-btn { right: max(2vw, var(--safe-right)); bottom: max(2vw, calc(1rem + var(--safe-bottom))); }

  /* Hide floating code and reduce decorative shapes on mobile */
  .floating-code { display: none; }
  .parallax-shape { opacity: 0.1; filter: blur(3px); }
}

/* Extra-small devices */
@media (max-width: 360px) {
  .logo { font-size: 1.2rem; }
  .hero-content h1 { font-size: 1.8rem; }
}