/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
  box-sizing: border-box;
}

/* Tech Background Elements */
.tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Floating Tech Icons */
.tech-icon {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  animation: tech-float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.7;
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5));
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.8));
}

/* Data Streams */
.data-stream {
  position: absolute;
  left: var(--x, 50%);
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: data-flow 8s linear infinite;
  animation-delay: var(--delay, 0s);
}

.data-bit {
  width: 8px;
  height: 8px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

/* Glow Orbs */
.glow-orb {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  border-radius: 50%;
  animation: orb-pulse 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.6;
  filter: blur(1px);
}

/* Circuit Lines */
.circuit-line {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #6366f1, transparent);
  animation: circuit-pulse 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0.4;
}

.circuit-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  width: 20px;
  height: 2px;
  background: linear-gradient(to right, transparent, #6366f1, transparent);
}

/* Tech Background Animations */
@keyframes tech-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

@keyframes data-flow {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px));
    opacity: 0;
  }
}

@keyframes orb-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

@keyframes circuit-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.8;
    transform: scaleY(1.2);
  }
}



:root {
  /* Dark Theme Colors Only */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #06b6d4;
  --accent-color: #f59e0b;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --border-color: #475569;
  --card-bg: #1e293b;
  --header-bg: rgba(15, 23, 42, 0.95);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  --gradient-card: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-text: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --gradient-button: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
}





body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-follower {
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
}

/* Particle Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header and Navigation */
  header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Ensure content doesn't go under fixed header */
main {
  padding-top: 80px; /* Adjust based on your header height */
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  }
  
  .nav-links {
  display: flex;
    list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

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



.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  color: white;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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

/* Typing animation styles */
.typing-container {
  display: inline-block;
  position: relative;
}

.typing-text {
  border-right: 3px solid var(--accent-color);
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-color); }
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background-color: var(--accent-color);
  margin-left: 2px;
  animation: blink 1s infinite;
}

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

.hero-greeting {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  opacity: 0.9;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-name {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-name .typing-text {
  color: white;
  font-weight: 600;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-button);
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

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

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.profile-container {
  position: relative;
  width: 450px;
  height: 450px;
}

.profile-image {
  width: 350px;
  height: 350px;
  background: var(--gradient-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.profile-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: rotate 3s linear infinite;
  z-index: 1;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) { top: 10%; left: 10%; }
.floating-element:nth-child(2) { top: 20%; right: 10%; }
.floating-element:nth-child(3) { bottom: 20%; left: 10%; }
.floating-element:nth-child(4) { bottom: 10%; right: 10%; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 2px;
  height: 30px;
  background: white;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid white;
}

/* Sections */
.section {
  padding: 6rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.about-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
  z-index: 3;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 3;
}

.stat {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 3;
  border: 1px solid var(--border-color);
}

.stat:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 3;
}

.skill-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 3;
  border: 1px solid var(--border-color);
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-tertiary);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: var(--gradient-card);
  color: white;
  transform: scale(1.05) rotate(2deg);
  box-shadow: var(--shadow-lg);
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.skill-item:hover i {
  transform: scale(1.2) rotate(360deg);
}

.skill-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.skill-item span {
  font-weight: 500;
  text-align: center;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 3;
}

.project-card {
  background: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  z-index: 3;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  width: 100%;
  height: 200px;
  background: var(--gradient-card);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
}

.project-image i {
  font-size: 3rem;
  color: white;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card:hover .project-image i {
  transform: scale(1.1);
  opacity: 1;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.project-tech span {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
  }
  
.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
    text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: var(--primary-dark);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 3;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-md);
}

.timeline-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  margin-left: 2rem;
  position: relative;
  border: 1px solid var(--border-color);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--card-bg);
}

.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.timeline-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.company {
  color: var(--primary-color);
  font-weight: 500;
}

.period {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.timeline-achievements {
  list-style: none;
}

.timeline-achievements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.timeline-achievements li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
    font-weight: bold;
  }
  
/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.contact-info {
  display: grid;
  gap: 2rem;
  position: relative;
  z-index: 3;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
    padding: 2rem;
  background: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
    color: white;
  }
  
.contact-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary-dark);
}

/* Footer */
footer {
  background: var(--card-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 3;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

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

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

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

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

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 90%;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 95%;
    padding: 0 1rem;
  }
  
  /* Header & Navigation */
  .nav {
    padding: 1rem;
  }
  
  .nav-brand h1 {
    font-size: 1.2rem;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .hamburger {
    display: flex !important;
  }
  
  /* Main Content Mobile Adjustments */
  main {
    padding-top: 80px;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero-name {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  /* Profile Image Mobile */
  .profile-container {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .floating-element {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Sections Mobile */
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  /* About Section Mobile */
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-description {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat {
    padding: 1.5rem 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  /* Skills Mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .skill-category {
    padding: 1.5rem;
  }
  
  .skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .skill-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .skill-item {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .skill-item i {
    font-size: 1.2rem;
  }
  
  /* Projects Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  
  .project-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .project-tech {
    gap: 0.5rem;
    margin: 1rem 0;
  }
  
  .project-tech span {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  .project-links {
    gap: 0.75rem;
  }
  
  .project-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Timeline Mobile */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-marker {
    left: 20px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-content {
    margin-left: 3rem;
    padding: 1.5rem;
  }
  
  .timeline-content::before {
    left: -8px;
    width: 8px;
    height: 8px;
  }
  
  .timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .timeline-meta {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .company {
    font-size: 1rem;
  }
  
  .period {
    font-size: 0.9rem;
  }
  
  .timeline-achievements {
    padding-left: 1rem;
  }
  
  .timeline-achievements li {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  
  /* Contact Mobile */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-item {
    padding: 1.5rem;
    text-align: center;
  }
  
  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .contact-details a {
    font-size: 1rem;
  }
  
  /* Footer Mobile */
  .footer {
    padding: 2rem 0;
    text-align: center;
  }
  
  .footer-content {
    font-size: 0.9rem;
  }
  
  /* Mobile Menu Adjustments */
  .mobile-menu {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 0.75rem 1rem;
  }
  
  .nav-brand h1 {
    font-size: 1.1rem;
  }
  
  .hamburger {
    display: flex !important;
    width: 28px;
    height: 22px;
  }
  
  .hamburger span {
    height: 2px;
  }
  
  .mobile-menu {
    width: 100%;
  }
  
  .mobile-menu-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .mobile-menu-links {
    padding: 1.5rem 1rem;
  }
  
  .mobile-nav-link {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
  
  /* Ultra Mobile Typography */
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-name {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  /* Ultra Mobile Layout */
  .container {
    padding: 0 0.75rem;
  }
  
  .profile-container {
    width: 220px;
    height: 220px;
  }
  
  .profile-image {
    width: 160px;
    height: 160px;
  }
  
  .floating-element {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-items {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .skill-item {
    padding: 0.75rem;
    font-size: 0.85rem;
  }
  
  .project-card {
    padding: 1.25rem;
  }
  
  .timeline-content {
    margin-left: 2.5rem;
    padding: 1.25rem;
  }
  
  .contact-item {
    padding: 1.25rem;
  }
}

@media (max-width: 360px) {
  .nav-brand h1 {
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .hero-name {
    font-size: 1.6rem;
  }
  
  .profile-container {
    width: 200px;
    height: 200px;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .floating-element {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Landscape Mobile Optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .hero-content {
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-name {
    font-size: 1.8rem;
  }
  
  .profile-container {
    width: 180px;
    height: 180px;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .mobile-menu {
    width: 250px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .nav-links a:hover::after,
  .mobile-nav-link:hover::before {
    opacity: 0;
  }
  
  .nav-links a:active::after,
  .mobile-nav-link:active::before {
    opacity: 1;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:active {
    transform: scale(0.95);
  }
  
  .skill-item:hover {
    transform: none;
  }
  
  .skill-item:active {
    transform: scale(0.95);
  }
}

/* Hamburger Menu - Moved to top for proper precedence */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  transition: all 0.3s ease;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger:hover span {
  background: var(--primary-color);
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.mobile-menu-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
}

.mobile-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-link::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary-color);
  padding-left: 1rem;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
  opacity: 1;
}

/* Education Section */
.education-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  align-items: start;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.education-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.education-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.education-card:hover .education-image {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.education-details h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.education-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.institution {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
}

.graduation-date {
  color: var(--accent-color);
  font-weight: 500;
  font-size: 1rem;
}

.education-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.education-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.highlight-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.highlight-item span {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Education Section Responsive */
@media (max-width: 768px) {
  .education-content {
    gap: 1.5rem;
  }
  
  .education-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
  }
  
  .education-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  
  .education-details h3 {
    font-size: 1.3rem;
  }
  
  .education-meta {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .institution {
    font-size: 1rem;
  }
  
  .graduation-date {
    font-size: 0.9rem;
  }
  
  .education-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .highlight-item {
    padding: 0.5rem 0.75rem;
  }
  
  .highlight-item span {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .education-content {
    gap: 1rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .education-image {
    width: 80px;
    height: 80px;
  }
  
  .education-details h3 {
    font-size: 1.2rem;
  }
  
  .education-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .education-highlights {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .highlight-item {
    padding: 0.5rem;
  }
  
  .highlight-item span {
    font-size: 0.85rem;
  }
}
  