/* =====================================================
   ALI LOKHANDWALA - PERSONAL PORTFOLIO
   Modern, Dark Theme with Glassmorphism & Animations
   ===================================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
  /* Colors */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-tertiary: #1a1a25;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-glass: rgba(255, 255, 255, 0.05);

  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0b0;
  --color-text-muted: #6b6b80;

  --color-accent-1: #6366f1;
  --color-accent-2: #8b5cf6;
  --color-accent-3: #a855f7;
  --color-accent-4: #ec4899;
  --color-accent-5: #06b6d4;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-accent-1),
    var(--color-accent-2),
    var(--color-accent-3)
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--color-accent-5),
    var(--color-accent-1)
  );
  --gradient-glow: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.15) 0%,
    transparent 70%
  );

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 5rem;
  --spacing-3xl: 8rem;

  /* Typography */
  --font-primary: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Borders */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index */
  --z-negative: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-accent-1);
  color: var(--color-text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* ==================== UTILITIES ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== CURSOR FOLLOWER ==================== */
.cursor-follower,
.cursor-dot {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-modal);
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(99, 102, 241, 0.5);
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
}

body:hover .cursor-follower,
body:hover .cursor-dot {
  opacity: 1;
}

@media (max-width: 768px) {
  .cursor-follower,
  .cursor-dot {
    display: none;
  }
}

/* ==================== PARTICLES CANVAS ==================== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-negative);
  pointer-events: none;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  padding: var(--spacing-md) 0;
  transition: var(--transition-base);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-sm) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-2xl);
  font-weight: 700;
}

.logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-4);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) 0;
  transition: var(--transition-base);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: var(--transition-base);
}

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

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-xl);
    background: var(--color-bg-primary);
    transition: var(--transition-base);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: var(--text-2xl);
  }
}

/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--spacing-3xl) var(--spacing-lg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1000px;
  height: 100%;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.title-line {
  display: block;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xs);
}

.title-name {
  display: block;
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: 700;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-accent-5);
  margin-bottom: var(--spacing-lg);
  min-height: 1.5em;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.typing-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary i {
  transition: transform var(--transition-base);
}

.btn-primary:hover i {
  transform: translateX(5px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.hero-social {
  display: flex;
  gap: var(--spacing-md);
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
}

.social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--color-text-primary);
  transform: translateY(-5px);
}

.hero-visual {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.hero-image-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-image-glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.3) 0%,
    transparent 70%
  );
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.hero-image-frame {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 50px auto;
  background: var(--gradient-primary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphShape 8s ease-in-out infinite;
  padding: 4px;
}

@keyframes morphShape {
  0%,
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.hero-avatar {
  width: 100%;
  height: 100%;
  background: var(--color-bg-secondary);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-initials {
  font-size: 5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}

.floating-card i {
  color: var(--color-accent-1);
}

.card-1 {
  top: 20%;
  left: -20%;
  animation-delay: 0s;
}

.card-2 {
  top: 60%;
  right: -10%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 10%;
  left: 10%;
  animation-delay: 4s;
}

.card-4 {
  top: 10%;
  right: -15%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  animation: fadeInUp 0.6s ease 0.6s forwards, bounce 2s ease-in-out infinite;
  opacity: 0;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: var(--border-radius-full);
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-text-muted);
  border-radius: var(--border-radius-full);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 1200px) {
  .hero-visual {
    display: none;
  }

  .hero {
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta,
  .hero-social {
    justify-content: center;
  }
}

/* ==================== SECTIONS COMMON ==================== */
.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent-1);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: 700;
  line-height: 1.2;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.about-intro {
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.about-text p {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: var(--text-2xl);
  color: var(--color-accent-1);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.image-bg {
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-xl);
  opacity: 0.2;
}

.image-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--color-bg-tertiary);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-bg-secondary),
    var(--color-bg-tertiary)
  );
}

.placeholder-image i {
  font-size: 5rem;
  color: var(--color-text-muted);
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-glow);
  animation: float 4s ease-in-out infinite;
}

.badge-number {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.badge-text {
  font-size: var(--text-xs);
  line-height: 1.3;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-image {
    order: -1;
  }

  .image-wrapper {
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

/* ==================== SKILLS SECTION ==================== */
.skills {
  background: var(--color-bg-secondary);
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.skills-category {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.skills-category.animate {
  opacity: 1;
  transform: translateY(0);
}

.category-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
}

.category-title i {
  color: var(--color-accent-1);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-md);
}

.skill-card {
  position: relative;
  padding: var(--spacing-lg);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  text-align: center;
  transition: var(--transition-base);
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-base);
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
}

.skill-card:hover::before {
  opacity: 0.05;
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--border-radius-md);
  font-size: var(--text-2xl);
  color: var(--color-accent-1);
  transition: var(--transition-base);
}

.skill-card:hover .skill-icon {
  background: var(--gradient-primary);
  color: var(--color-text-primary);
  transform: scale(1.1);
}

.skill-name {
  display: block;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.skill-level {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.skill-level::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width 1s ease;
}

.skill-card.animate .skill-level::after {
  width: attr(data-level percentage);
}

/* ==================== EXPERIENCE SECTION ==================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-accent-1),
    var(--color-accent-3),
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-left: var(--spacing-2xl);
  padding-bottom: var(--spacing-2xl);
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -8px;
  top: 0;
}

.marker-dot {
  width: 18px;
  height: 18px;
  background: var(--color-bg-primary);
  border: 3px solid var(--color-accent-1);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
}

.timeline-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(10px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.card-date {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent-1);
}

.card-type {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-full);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.card-company {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.card-company i {
  color: var(--color-accent-1);
}

.card-description {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tag {
  font-size: var(--text-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent-1);
  border-radius: var(--border-radius-full);
}

@media (max-width: 600px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    padding-left: var(--spacing-xl);
  }

  .timeline-marker {
    left: 0;
  }
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
  background: var(--color-bg-secondary);
}

.projects-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--color-text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(30px);
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: var(--shadow-lg);
}

.project-card.featured {
  grid-column: span 2;
}

.project-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-bg-tertiary),
    var(--color-bg-secondary)
  );
}

.project-placeholder i {
  font-size: 4rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: rgba(10, 10, 15, 0.8);
  opacity: 0;
  transition: var(--transition-base);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-text-primary);
  font-size: var(--text-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-base);
}

.project-card:hover .project-link {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
  transition-delay: 0.1s;
}

.project-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: scale(1.1) translateY(0) !important;
}

.project-content {
  padding: var(--spacing-lg);
}

.project-category {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
}

.project-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.project-description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-md);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
}

@media (max-width: 800px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }
}

/* ==================== CONTACT SECTION ==================== */
.contact-centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: var(--spacing-md) 0 var(--spacing-lg);
}

.contact-subtext {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-2xl);
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-2xl);
  background: var(--gradient-primary);
  border-radius: 100px;
  font-size: var(--text-xl);
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.contact-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.4);
}

.contact-cta .cta-icon {
  font-size: 1.2em;
}

.contact-cta .cta-arrow {
  opacity: 0.7;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-cta:hover .cta-arrow {
  transform: translateX(5px);
  opacity: 1;
}

.contact-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.contact-detail {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail:hover {
  color: var(--color-accent-1);
}

.contact-detail i {
  color: var(--color-accent-1);
  opacity: 0.7;
}

.contact-divider {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.contact-social-row {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: var(--color-accent-1);
  border-color: var(--color-accent-1);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

@media (max-width: 600px) {
  .contact-cta {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--text-lg);
  }

  .contact-details {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .contact-divider {
    display: none;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--color-accent-1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-credit {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-credit i {
  color: var(--color-accent-4);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-lg);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
  :root {
    --text-6xl: 3rem;
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .section {
    padding: var(--spacing-2xl) 0;
  }
}

/* ==================== LOADING ANIMATION ==================== */
.loading {
  position: fixed;
  inset: 0;
  background: var(--color-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ==================== NEW SECTIONS: CAPABILITIES, WORK, EDUCATION ==================== */

/* Section subtitle */
.section-subtitle {
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: var(--spacing-sm) auto 0;
  font-size: var(--text-base);
}

/* About Highlights */
.about-highlights {
  margin-top: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-base);
}

.highlight-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(5px);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--border-radius-md);
  color: var(--color-accent-1);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.highlight-text strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.highlight-text span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Capabilities Section */
.capabilities {
  background: var(--color-bg-secondary);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.capability-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-lg);
  transition: var(--transition-base);
}

.capability-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-5px);
}

.capability-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.capability-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  font-size: var(--text-xl);
  color: white;
}

.capability-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text-primary);
}

.capability-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.capability-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.capability-stack span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-accent-1);
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Mindset Section */
.mindset-section {
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(139, 92, 246, 0.05)
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--border-radius-xl);
  text-align: center;
}

.mindset-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.mindset-title i {
  color: var(--color-accent-1);
}

.mindset-text {
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.8;
}

.mindset-text strong {
  color: var(--color-text-primary);
}

/* Work Section */
.work {
  background: var(--color-bg-primary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.work-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
  transition: var(--transition-base);
  overflow: hidden;
}

.work-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-5px);
}

.work-number {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: rgba(99, 102, 241, 0.1);
  line-height: 1;
}

.work-content {
  position: relative;
  z-index: 1;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.work-category {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-context {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-full);
}

.work-title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.work-description {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.work-outcome {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--border-radius-md);
  color: #22c55e;
  font-size: var(--text-sm);
  font-weight: 500;
}

.work-outcome i {
  font-size: var(--text-base);
}

/* FYP Section */
.fyp-section {
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-xl);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  text-align: center;
}

.fyp-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-5);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--border-radius-full);
  margin-bottom: var(--spacing-md);
}

.fyp-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.fyp-description {
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Education Section */
.education {
  background: var(--color-bg-secondary);
}

.education-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.education-main {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
}

.edu-degree {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: var(--spacing-md) 0 var(--spacing-xs);
}

.edu-institution {
  font-size: var(--text-lg);
  color: var(--color-accent-1);
  margin-bottom: var(--spacing-xs);
}

.edu-status {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.edu-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.edu-modules {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
}

.edu-modules span {
  font-size: var(--text-xs);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-secondary);
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.edu-achievement {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: var(--border-radius-md);
  color: #eab308;
  font-size: var(--text-sm);
}

.edu-achievement i {
  font-size: var(--text-lg);
}

.education-recognition {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-xl);
}

.recognition-items {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.recognition-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.recognition-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--border-radius-md);
  color: var(--color-accent-1);
  flex-shrink: 0;
}

.recognition-text strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.recognition-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .capabilities-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
}
