:root {
  --bg-dark: #040814;
  --panel-bg: rgba(8, 14, 30, 0.82);
  --panel-bg-hover: rgba(12, 22, 45, 0.92);
  --panel-border: rgba(0, 240, 255, 0.22);
  --panel-border-glow: rgba(0, 240, 255, 0.5);
  --cyan-bright: #00f0ff;
  --cyan-subtle: #38bdf8;
  --purple-neon: #a855f7;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0, 240, 255, 0.15);
  border-radius: 50%;
  border-top-color: var(--cyan-bright);
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-bar-bg {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-bright), var(--purple-neon));
  transition: width 0.1s linear;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--cyan-bright);
}

/* Fullscreen Canvas & Seamless Gradient Overlay (Zero Black Space) */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  transform: translateX(300px);
}

#sequence-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--bg-dark) 0%,
    rgba(4, 8, 20, 0.92) 22%,
    rgba(4, 8, 20, 0.5) 42%,
    transparent 62%
  );
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 40px;
  background: rgba(4, 8, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-neon));
  color: #000;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan-bright);
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  color: var(--cyan-bright);
  text-shadow: 0 0 8px var(--cyan-bright);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
}

.status-dot {
  color: var(--cyan-bright);
  font-size: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px var(--cyan-bright);
  }

  50% {
    opacity: 0.3;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 101;
  transition: all 0.3s ease;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--cyan-bright);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.is-active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.mobile-menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Left-Aligned Layout */
.content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 140px 40px;
  transform: translateX(-110px);
}

.section {
  width: 100%;
  max-width: 780px;
  margin-bottom: 110px;
}

/* Cyber Panel styling */
.cyber-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cyber-panel:hover {
  background: var(--panel-bg-hover);
  border-color: var(--panel-border-glow);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.15);
  transform: translateY(-3px);
}

.panel-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--cyan-bright);
  margin-bottom: 8px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.panel-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.mt-12 {
  margin-top: 12px;
}

.mt-20 {
  margin-top: 20px;
}

/* Hero Section */
.hero-section {
  padding-top: 20px;
  max-width: 740px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 54px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.title-white {
  display: block;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.title-cyan {
  display: block;
  background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--purple-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subtitle-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-bright);
}

.hero-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 640px;
}

.text-highlight {
  color: var(--cyan-bright);
  font-weight: 600;
}

/* Feature Pills */
.feature-pills {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 14, 30, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 10px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.pill-icon {
  font-size: 16px;
}

.pill-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.2;
}

.pill-text strong {
  color: #fff;
}

.pill-text span {
  color: var(--cyan-bright);
}

/* Action Buttons CTA Row */
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.btn-cyan {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan-bright), var(--purple-neon));
  color: #000;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* Section Header */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-card {
  padding: 20px;
}

.skill-card.full-span {
  grid-column: 1 / -1;
}

.card-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan-bright);
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Tools Section */
.tools-group h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.18);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 500;
}

.tool-tag.highlight {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan-bright);
  color: #fff;
  font-weight: 600;
}

.ai-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ai-box {
  background: rgba(4, 8, 20, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 14px;
  border-radius: 10px;
}

.ai-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--cyan-bright);
  margin-bottom: 6px;
}

.ai-box p {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

/* Work Experience Timeline */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exp-card {
  padding: 24px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  padding-bottom: 12px;
}

.exp-role {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan-bright);
}

.exp-date {
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

.exp-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan-bright);
}

/* Education Grid */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.edu-card {
  padding: 20px;
}

.edu-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.edu-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 12px;
  color: var(--cyan-bright);
}

/* Contact Block */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 8, 20, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 14px;
  border-radius: 10px;
}

.contact-icon {
  font-size: 20px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--cyan-bright);
}

.contact-item p,
.contact-item a {
  font-size: 12px;
  color: #fff;
  text-decoration: none;
}

/* Case Studies Section */
.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-study-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.cs-image-wrapper {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
}

.cs-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study-card:hover .cs-image {
  transform: scale(1.04);
}

.cs-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(4, 8, 20, 0.85);
  border: 1px solid var(--cyan-bright);
  color: var(--cyan-bright);
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.cs-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cs-tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan-bright);
  font-family: var(--font-heading);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
}

.cs-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cs-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cs-btn {
  align-self: flex-start;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  #canvas-container {
    transform: none;
  }

  .content-wrapper {
    transform: none;
    padding: 100px 30px 100px 30px;
    max-width: 100%;
  }

  .gradient-overlay {
    background: linear-gradient(
      to bottom,
      var(--bg-dark) 0%,
      rgba(4, 8, 20, 0.88) 120px,
      rgba(4, 8, 20, 0.75) 100%
    );
  }

  .section {
    max-width: 100%;
  }

  .skills-grid,
  .ai-categories-grid,
  .edu-grid,
  .contact-details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .status-badge {
    display: none;
  }

  .navbar {
    padding: 14px 20px;
  }

  .nav-menu {
    display: flex;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(4, 8, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--panel-border-glow);
    padding: 20px 24px;
    gap: 14px;
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    z-index: 99;
  }

  .nav-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    font-size: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    display: block;
    width: 100%;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .content-wrapper {
    padding: 85px 20px 70px 20px;
  }

  .section {
    margin-bottom: 60px;
  }

  .hero-title {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .subtitle-tag {
    font-size: 13px;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .feature-pills {
    flex-direction: column;
    gap: 10px;
  }

  .pill {
    width: 100%;
    justify-content: flex-start;
  }

  .cta-row {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-cyan {
    width: 100%;
    text-align: center;
  }

  .exp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .exp-date {
    align-self: flex-start;
  }

  .cs-image-wrapper {
    height: 190px;
  }

  .cs-btn {
    width: 100%;
    text-align: center;
  }

  .contact-details-grid {
    grid-template-columns: 1fr;
  }

  .footer-links-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .footer-links-row .btn-cyan {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 14px;
  }

  .logo {
    gap: 8px;
  }

  .logo-icon {
    font-size: 11px;
    padding: 4px 8px;
  }

  .logo-text {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .nav-menu {
    top: 52px;
    padding: 16px 18px;
  }

  .content-wrapper {
    padding: 75px 14px 50px 14px;
  }

  .cyber-panel {
    padding: 18px 14px;
    border-radius: 12px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .panel-title,
  .section-title {
    font-size: 17px;
  }

  .cs-title {
    font-size: 16px;
  }

  .cs-image-wrapper {
    height: 160px;
  }

  .bullet-list li {
    font-size: 12px;
  }
}