/* ============================================
   DESIGN SYSTEM - Portfolio for Manmath Mohanty
   ============================================ */

/* CSS Custom Properties */
:root {
  /* Color Palette */
  --color-bg-primary: #0a0e27;
  --color-bg-secondary: #151932;
  --color-bg-card: rgba(255, 255, 255, 0.05);
  --color-text-primary: #ffffff;
  --color-text-secondary: #a0aec0;
  --color-gradient-1: #00d4ff;
  --color-gradient-2: #8b5cf6;
  --color-accent-green: #10b981;
  --color-accent-orange: #f59e0b;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.875rem;
  --font-size-sm: 1rem;
  --font-size-md: 1.25rem;
  --font-size-lg: 1.75rem;
  --font-size-xl: 2.25rem;
  --font-size-2xl: 3.5rem;
  --font-size-3xl: 4.5rem;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;

  /* Effects */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-speed: 0.3s;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg-primary);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--color-gradient-1);
  color: var(--color-bg-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: 800;
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-sm);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: calc(var(--spacing-xl) * 1.5) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: calc(var(--spacing-lg) * 1.25);
  position: relative;
}

.section-title h2 {
  /* Removed gradient effect - using solid color for clarity */
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.5);
  /* animation: gradientShift 3s ease infinite; */
  /* Disabled for performance */
}

@keyframes gradientShift {

  0%,
  100% {
    filter: hue-rotate(0deg);
  }

  50% {
    filter: hue-rotate(15deg);
  }
}

/* ============================================
   GLASSMORPHISM CARD SYSTEM
   ============================================ */

.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: calc(var(--spacing-md) * 1.25);
  transition: all var(--transition-speed) var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
  transform: translateX(-100%);
  transition: transform var(--transition-speed) var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover::before {
  transform: translateX(0);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: var(--font-size-lg);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

.navbar-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-speed);
  position: relative;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
  transition: width var(--transition-speed);
}

.navbar-nav a:hover {
  color: var(--color-text-primary);
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--font-size-3xl));
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.2s both;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2), var(--color-accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientFlow 4s ease infinite;
}

@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, var(--font-size-lg));
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.4s both;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-description {
  font-size: clamp(1rem, 1.5vw, var(--font-size-md));
  max-width: 700px;
  margin: 0 auto var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.6s both;
  line-height: var(--line-height-relaxed);
  color: rgba(160, 174, 192, 0.95);
}

.hero-profile {
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.1s both;
}

.profile-picture {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(var(--color-bg-primary), var(--color-bg-primary)) padding-box,
    linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2)) border-box;
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
  transition: all var(--transition-speed) var(--transition-smooth);
  animation: profilePulse 3s ease-in-out infinite;
}

.profile-picture:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5);
}

@keyframes profilePulse {

  0%,
  100% {
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
  }

  50% {
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4);
  }
}

.hero-contact-info {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 1s ease-out 0.7s both;
}

.contact-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  padding: 0.625rem 1.25rem;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-speed);
  display: inline-block;
}

.contact-link:hover {
  color: var(--color-gradient-1);
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--color-gradient-1);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.hero-cta {
  display: inline-flex;
  gap: var(--spacing-sm);
  animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
  padding: 1rem 2.25rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed) var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
  color: white;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

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

.btn-secondary:hover {
  border-color: var(--color-gradient-1);
  background: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

/* Floating particles animation */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.hero::before {
  background: var(--color-gradient-1);
  top: 10%;
  left: 10%;
}

.hero::after {
  background: var(--color-gradient-2);
  bottom: 10%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

/* ============================================
   SKILLS GRID
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.skill-card {
  text-align: center;
  animation: fadeIn 1s ease-out both;
}

.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}

.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}

.skill-card:nth-child(3) {
  animation-delay: 0.3s;
}

.skill-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all var(--transition-speed);
}

.skill-card:hover .skill-icon {
  transform: rotateY(360deg);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
}

.skill-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.skill-card p {
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   EXPERTISE SECTION
   ============================================ */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.expertise-card {
  position: relative;
}

.expertise-card .expertise-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-sm);
  opacity: 0.8;
  transition: opacity var(--transition-speed);
}

.expertise-card:hover .expertise-image {
  opacity: 1;
}

.expertise-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.expertise-card p {
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
}

.expertise-card .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
}

.tech-tag {
  padding: 0.4rem 0.9rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--color-gradient-1);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

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

.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.9), rgba(139, 92, 246, 0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-speed);
  padding: var(--spacing-md);
  text-align: center;
}

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

.project-overlay h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
}

.project-date {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* ============================================
   WORK EXPERIENCE SECTION
   ============================================ */

.experience-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  margin-bottom: var(--spacing-md);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.company-name {
  color: var(--color-gradient-1);
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.01em;
}

.experience-date {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.experience-details {
  list-style: none;
  margin: var(--spacing-sm) 0;
  padding-left: 0;
}

.experience-details li {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  font-size: 0.95rem;
}

.experience-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--color-gradient-1);
  font-size: 1.2rem;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.education-card {
  text-align: center;
}

.institution-name {
  color: var(--color-gradient-1);
  font-size: var(--font-size-md);
  font-weight: 600;
  margin: var(--spacing-xs) 0;
  letter-spacing: 0.01em;
}

.education-date {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.education-grade {
  color: var(--color-accent-green);
  font-weight: 600;
}

/* ============================================
   ACHIEVEMENTS SECTION
   ============================================ */

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.achievement-card {
  text-align: center;
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  border-radius: var(--border-radius-md);
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: all var(--transition-speed);
}

.achievement-card:hover .achievement-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
}

.achievement-date {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
}

.achievement-card h3 {
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.achievement-card p {
  font-size: 0.95rem;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--border-radius-lg);
  padding: calc(var(--spacing-lg) * 1.5);
}

.contact h2 {
  font-size: clamp(2rem, 4vw, var(--font-size-2xl));
  margin-bottom: var(--spacing-sm);
}

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

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: 1.5rem;
  transition: all var(--transition-speed);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 2.75rem;
    --font-size-2xl: 2.25rem;
    --font-size-xl: 1.75rem;
    --font-size-lg: 1.5rem;
    --spacing-xl: 3.5rem;
    --spacing-lg: 2.5rem;
  }

  .navbar-nav {
    gap: var(--spacing-sm);
    font-size: 0.9rem;
  }

  .skills-grid,
  .expertise-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

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

  .profile-picture {
    width: 150px;
    height: 150px;
  }

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

  .glass-card {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-3xl: 2rem;
    --font-size-2xl: 1.75rem;
    --font-size-xl: 1.5rem;
    --spacing-lg: 2rem;
  }

  .navbar-nav {
    display: none;
  }

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

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .hero-contact-info {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  .contact-link {
    font-size: 0.875rem;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SNOWFALL EFFECT
   ============================================ */

.snow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1em;
  user-select: none;
  cursor: default;
  animation: snowfall linear infinite;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) translateX(var(--drift, 0)) rotate(360deg);
  }
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */

.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ============================================
   GLOWING CURSOR EFFECT
   ============================================ */

.cursor-glow {
  position: fixed;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.2);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3);
  mix-blend-mode: screen;
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

/* ============================================
   ENHANCED ANIMATIONS
   ============================================ */

.glass-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.05),
      transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.achievement-icon {
  animation: float-achievement 3s ease-in-out infinite;
}

@keyframes float-achievement {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.tech-tag {
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Make clickable project cards more obvious */
.project-card[onclick] {
  cursor: pointer;
}

.project-card[onclick]:hover {
  transform: translateY(-10px);
}

.project-card[onclick] .project-overlay {
  cursor: pointer;
}

/* ============================================
   HUMANIZING EFFECTS - VARIED LAYOUTS
   ============================================ */

/* Add subtle rotations to cards for organic feel */
.project-card:nth-child(1) {
  transform: rotate(-0.5deg);
}

.project-card:nth-child(2) {
  transform: rotate(0.8deg);
}

.project-card:nth-child(3) {
  transform: rotate(-0.3deg);
}

.project-card:nth-child(4) {
  transform: rotate(0.6deg);
}

.project-card:nth-child(5) {
  transform: rotate(-0.7deg);
}

.project-card:nth-child(6) {
  transform: rotate(0.4deg);
}

.project-card:nth-child(7) {
  transform: rotate(-0.6deg);
}

.project-card:nth-child(8) {
  transform: rotate(0.5deg);
}

.project-card:hover {
  transform: translateY(-10px) rotate(0deg) !important;
}

/* Varied skill card rotations */
.skill-card:nth-child(odd) {
  transform: rotate(-0.5deg);
}

.skill-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.skill-card:hover {
  transform: rotate(0deg) scale(1.02) !important;
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   BLOB BACKGROUNDS
   ============================================ */

.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  filter: blur(40px);
  animation: blob-float 20s ease-in-out infinite;
  opacity: 0.6;
}

.blob-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  top: 50%;
  right: -100px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.blob-3 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 30s;
}

@keyframes blob-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  25% {
    transform: translate(50px, -50px) scale(1.1) rotate(90deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    transform: translate(-30px, 30px) scale(0.9) rotate(180deg);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  75% {
    transform: translate(30px, 50px) scale(1.05) rotate(270deg);
    border-radius: 50% 50% 50% 50% / 40% 60% 40% 60%;
  }
}

/* ============================================
   3D TILT EFFECT
   ============================================ */

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.tilt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  border-radius: inherit;
}

.tilt-card:hover::before {
  opacity: 1;
}

/* ============================================
   WAVY SECTION DIVIDERS
   ============================================ */

.section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='rgba(10, 14, 39, 0.3)'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

/* ============================================
   ELASTIC ANIMATIONS
   ============================================ */

@keyframes elastic-bounce {
  0% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.15);
  }

  50% {
    transform: scale(0.95);
  }

  70% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn:active {
  animation: elastic-bounce 0.6s ease;
}

/* ============================================
   STAGGER ANIMATIONS
   ============================================ */

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: stagger-fade-in 0.6s ease forwards;
}

.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}

.stagger-item:nth-child(7) {
  animation-delay: 0.7s;
}

.stagger-item:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes stagger-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HANDWRITTEN UNDERLINES
   ============================================ */

.handwritten-underline {
  position: relative;
  display: inline-block;
}

.handwritten-underline::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,2 50,5 T100,5' stroke='%2300D4FF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  opacity: 0.7;
}

/* ============================================
   MAGNETIC CURSOR EFFECT
   ============================================ */

.magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   TYPING CURSOR
   ============================================ */

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-gradient-1);
  margin-left: 4px;
  animation: blink-cursor 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink-cursor {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* ============================================
   DOODLE ELEMENTS
   ============================================ */

.doodle-arrow {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.6;
  animation: doodle-float 3s ease-in-out infinite;
}

@keyframes doodle-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.doodle-star {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.7;
  animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 1;
  }
}

/* ============================================
   SECTION COLOR VARIATIONS
   ============================================ */

#skills {
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.02));
}

#experience {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02));
}

#projects {
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.02));
}

#education {
  background: linear-gradient(180deg, transparent, rgba(236, 72, 153, 0.02));
}

#achievements {
  background: linear-gradient(180deg, transparent, rgba(251, 191, 36, 0.02));
}

/* Fix project card text visibility */
.project-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 212, 255, 0.75), rgba(139, 92, 246, 0.75)) !important;
  backdrop-filter: blur(10px);
}

.project-card:hover .project-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 212, 255, 0.85), rgba(139, 92, 246, 0.85)) !important;
}

.project-overlay h3,
.project-overlay p,
.project-overlay .tech-tag,
.project-date {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
}

.project-overlay .tech-tag {
  background: rgba(0, 212, 255, 0.3) !important;
  border-color: rgba(0, 212, 255, 0.6) !important;
  backdrop-filter: blur(5px);
}

/* ============================================
   GOLD ACCENTS & ENHANCED VISIBILITY
   ============================================ */

/* Add gold color variable */
:root {
  --color-gold: #FFD700;
  --color-gold-dark: #FFA500;
  --color-gold-light: #FFEC8B;
}

/* Gold gradient text for hero */
.hero-gradient-text {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gradient-1), var(--color-gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 3s ease-in-out infinite;
}

@keyframes gold-shimmer {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.3);
  }
}

/* Gold borders on cards */
.glass-card {
  border: 1px solid rgba(255, 215, 0, 0.2) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 215, 0, 0.1) !important;
}

.glass-card:hover {
  border-color: rgba(255, 215, 0, 0.4) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 215, 0, 0.2) !important;
}

/* Gold accent on section titles */
.section-title h2 {
  color: #fff !important;
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  border-radius: 2px;
}

/* Gold handwritten underlines */
.handwritten-underline::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,2 50,5 T100,5' stroke='%23FFD700' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* Gold tech tags */
.tech-tag {
  background: rgba(255, 215, 0, 0.1) !important;
  border: 1px solid rgba(255, 215, 0, 0.4) !important;
  color: var(--color-gold-light) !important;
}

.tech-tag:hover {
  background: rgba(255, 215, 0, 0.2) !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Gold buttons */
.btn {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold)) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)) !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
  transform: translateY(-2px);
}

/* Gold contact links */
.contact-link {
  color: var(--color-gold-light) !important;
  border-color: rgba(255, 215, 0, 0.3) !important;
}

.contact-link:hover {
  background: rgba(255, 215, 0, 0.1) !important;
  border-color: var(--color-gold) !important;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Gold profile picture border */
.profile-picture {
  border: 4px solid var(--color-gold) !important;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced text visibility for all sections */
.hero-title,
.hero-subtitle,
.hero-description {
  color: #fff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.skill-card h3,
.experience-card h3,
.education-card h3,
.achievement-card h3 {
  color: var(--color-gold-light) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.skill-card p,
.experience-card p,
.experience-card li,
.education-card p,
.achievement-card p {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Gold achievement icons */
.achievement-icon {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Gold navigation */
.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Gold scroll indicator */
.scroll-indicator::after {
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Gold cursor glow */
.cursor-glow {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent) !important;
  border: 2px solid rgba(255, 215, 0, 0.5);
}

/* Enhanced project overlay visibility */
.project-overlay {
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.92),
      rgba(255, 215, 0, 0.15),
      rgba(0, 212, 255, 0.15)) !important;
}

.project-overlay h3 {
  color: var(--color-gold-light) !important;
  text-shadow:
    0 0 15px rgba(255, 215, 0, 0.5),
    2px 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.98) !important;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.project-date {
  color: var(--color-gold) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

/* Gold sparkles for doodles */
.doodle-star {
  color: var(--color-gold);
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.6));
}

/* Footer text visibility */
footer p {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Gold blob accents */
.blob {
  background: linear-gradient(135deg,
      rgba(255, 215, 0, 0.08),
      rgba(0, 212, 255, 0.08),
      rgba(139, 92, 246, 0.08)) !important;
}

/* Enhanced contact info visibility */
.contact-info {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.contact-info a {
  color: var(--color-gold-light) !important;
}

.contact-info a:hover {
  color: var(--color-gold) !important;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Experience timeline gold accent */
.experience-timeline::before {
  background: linear-gradient(180deg, var(--color-gold), var(--color-gradient-1));
}

/* Gold highlights on hover */
.skill-card:hover,
.experience-card:hover,
.education-card:hover,
.achievement-card:hover {
  border-color: rgba(255, 215, 0, 0.5) !important;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(255, 215, 0, 0.3) !important;
}

/* ============================================
   FIX BLUR AND PERFORMANCE ISSUES
   ============================================ */

/* Remove blur from section titles */
.section-title h2 {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.section-title {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Optimize glass card blur */
.glass-card {
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* Reduce project overlay blur for performance */
.project-overlay {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* Optimize animations - use transform and opacity only */
.stagger-item {
  will-change: transform, opacity;
}

.blob {
  will-change: transform;
  transform: translateZ(0);
}

.snowflake {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce particle count for better performance */
.particle-canvas {
  opacity: 0.6;
}

/* Optimize cursor glow */
.cursor-glow {
  will-change: transform;
  transform: translateZ(0);
}

/* Disable heavy animations on mobile */
@media (max-width: 768px) {

  .blob,
  .snowflake,
  .particle-canvas,
  .cursor-glow {
    display: none !important;
  }

  .glass-card {
    backdrop-filter: none !important;
  }

  .project-overlay {
    backdrop-filter: none !important;
  }
}

/* Optimize 3D transforms */
.tilt-card {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce animation complexity */
@keyframes blob-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* Clear text rendering */
.section-title h2,
.hero-title,
.skill-card h3,
.experience-card h3,
.education-card h3,
.achievement-card h3,
.project-overlay h3 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure section titles are crisp */
.section-title h2 span {
  display: inline-block;
  filter: none !important;
  backdrop-filter: none !important;
}

/* Performance optimization for cards */
.project-card,
.skill-card,
.experience-card,
.education-card,
.achievement-card {
  will-change: transform;
  transform: translateZ(0);
}

/* Reduce shadow complexity for performance */
.glass-card {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(255, 215, 0, 0.1) !important;
}

.glass-card:hover {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.2) !important;
}

/* CRITICAL FIX - Remove ALL blur from section titles */
.section-title,
.section-title h2,
.section-title h2 span,
.section-title * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Force clear text rendering */
.section-title h2 {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Fix project card overflow */
.project-overlay {
  overflow-y: auto !important;
  max-height: 100% !important;
  padding: 1.5rem !important;
}

.project-overlay p {
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0.75rem !important;
}

.project-overlay h3 {
  font-size: 1.25rem !important;
  margin-bottom: 0.75rem !important;
}

.tech-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-top: 0.75rem !important;
}

.tech-tag {
  font-size: 0.75rem !important;
  padding: 0.25rem 0.6rem !important;
}

.project-date {
  margin-top: 0.75rem !important;
  font-size: 0.75rem !important;
}
/* FINAL FIX - Ensure section titles are never transparent */
.section-title h2,
.section-title h2 span,
.handwritten-underline {
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
}

/* Ensure project cards show all content */
.project-card {
  height: auto !important;
  min-height: 350px !important;
}

.project-overlay {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 1.5rem !important;
  overflow-y: auto !important;
}

.project-overlay::-webkit-scrollbar {
  width: 4px;
}

.project-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.project-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.5);
  border-radius: 2px;
}
