:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --bg-color: #f5f7fa;
  --text-color: #2d3436;
  --card-bg: #ffffff;
  --dark-bg: #0a0e27;
  --dark-text: #e0e6ed;
  --dark-card: #1a1f3a;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-cyber: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 10px 40px rgba(0, 255, 157, 0.3);
  --glow-primary: 0 0 20px rgba(0, 255, 157, 0.5);
  --glow-secondary: 0 0 20px rgba(0, 212, 255, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  overflow-x: hidden;
  padding-top: 100px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 79px, rgba(0, 255, 157, 0.03) 81px),
    linear-gradient(transparent 79px, rgba(0, 255, 157, 0.03) 81px);
  background-size: 80px 80px;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

body.dark-mode {
  background: var(--dark-bg);
  color: var(--dark-text);
  --primary-color: #00ff9d;
  --secondary-color: #00d4ff;
  --accent-color: #ff00ff;
  --text-color: #e0e6ed;
  --card-bg: #1a1f3a;
  --shadow-light: 0 10px 40px rgba(0, 255, 157, 0.2);
}

body.dark-mode::before {
  opacity: 1;
}

/* Matrix-style background effect for dark mode */
body.dark-mode::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 255, 157, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Enhanced Header Styles - Match Home Page */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 9%;
  background: transparent;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: .5s;
}

.header.sticky {
  background: var(--bg-color);
  box-shadow: 0 .1rem 1rem var(--shadow-color);
  padding: 1rem 9%;
}

.dark-mode .header.sticky {
  background: var(--dark-bg);
  box-shadow: 0 .1rem 1rem rgba(0, 255, 157, 0.2);
}

.logo {
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-right: auto;
  text-decoration: none;
}

.dark-mode .logo {
  color: #00ff9d;
}

.navbar {
  display: flex;
  gap: 2rem;
  margin-right: 2rem;
}

.navbar a {
  position: relative;
  font-size: 1.2rem;
  color: var(--white-color);
  font-weight: 500;
  text-decoration: none;
  transition: .3s;
}

.header.sticky .navbar a {
  color: var(--text-color);
}

.header.sticky .navbar a.active {
  color: var(--primary-color);
}

.navbar a.active::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: .2rem;
  background: var(--white-color);
}

.header.sticky .navbar a::before {
  background: var(--primary-color);
  opacity: .7;
}

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

.dark-mode .navbar a {
  color: var(--white-color);
}

.dark-mode .header.sticky .navbar a {
  color: var(--text-color);
}

.dark-mode .navbar a:hover,
.dark-mode .header.sticky .navbar a.active {
  color: #00ff9d;
}

.dark-mode .navbar a.active::before,
.dark-mode .header.sticky .navbar a::before {
  background: #00ff9d;
}

/* Enhanced Icons */
#darkMode-icon {
  font-size: 2rem;
  color: var(--white-color);
  cursor: pointer;
  transition: .3s;
}

.header.sticky #darkMode-icon {
  color: var(--text-color);
  opacity: .9;
}

.dark-mode #darkMode-icon {
  color: #00ff9d;
}

#menu-icon {
  font-size: 2.8rem;
  color: var(--white-color);
  cursor: pointer;
  display: none;
}

.header.sticky #menu-icon {
  color: var(--text-color);
}

/* Enhanced Animated Background */
.animated-bg {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: float 20s infinite linear;
  transition: all 0.3s ease;
}

.dark-mode .shape {
  opacity: 0.3;
  filter: blur(100px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.dark-mode .shape-1 {
  background: radial-gradient(circle, rgba(0, 255, 157, 0.4) 0%, transparent 70%);
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--gradient-secondary);
  top: 70%;
  right: 10%;
  animation-delay: -5s;
}

.dark-mode .shape-2 {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

.dark-mode .shape-3 {
  background: radial-gradient(circle, rgba(255, 0, 255, 0.3) 0%, transparent 70%);
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: var(--gradient-primary);
  top: 20%;
  right: 30%;
  animation-delay: -15s;
}

.dark-mode .shape-4 {
  background: radial-gradient(circle, rgba(0, 255, 157, 0.35) 0%, transparent 70%);
}

.shape-5 {
  width: 180px;
  height: 180px;
  background: var(--gradient-secondary);
  bottom: 10%;
  left: 30%;
  animation-delay: -7s;
}

.dark-mode .shape-5 {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.35) 0%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(50px, -50px) rotate(90deg); }
  50% { transform: translate(-30px, -100px) rotate(180deg); }
  75% { transform: translate(-70px, 30px) rotate(270deg); }
}

/* Floating Social Links */
.floating-social {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-float {
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  position: relative;
  backdrop-filter: blur(10px);
}

.dark-mode .social-float {
  background: var(--dark-card);
  color: var(--dark-text);
}

.social-float:hover {
  transform: translateX(-10px) scale(1.1);
  color: white;
}

.social-float:nth-child(1):hover { 
  background: #333;
}

.dark-mode .social-float:nth-child(1):hover { 
  background: #333;
  box-shadow: 0 0 20px rgba(51, 51, 51, 0.8);
}

.social-float:nth-child(2):hover { background: #0077b5; }
.dark-mode .social-float:nth-child(2):hover { 
  background: #0077b5;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.8);
}

.social-float:nth-child(3):hover { background: #1da1f2; }
.dark-mode .social-float:nth-child(3):hover { 
  background: #1da1f2;
  box-shadow: 0 0 20px rgba(29, 161, 242, 0.8);
}

.social-float:nth-child(4):hover { background: #e4405f; }
.dark-mode .social-float:nth-child(4):hover { 
  background: #e4405f;
  box-shadow: 0 0 20px rgba(228, 64, 95, 0.8);
}

.social-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background: var(--dark-card);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.social-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

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

/* Enhanced Page Title */
.page-title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  filter: drop-shadow(0 0 10px transparent);
}

.dark-mode .page-title {
  filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.6));
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.6)); }
  50% { filter: drop-shadow(0 0 30px rgba(0, 255, 157, 0.9)); }
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-secondary);
  border-radius: 2px;
}

.dark-mode .page-title::after {
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
}

/* Enhanced About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

/* Enhanced Profile Section */
.profile-section {
  position: sticky;
  top: 120px;
  opacity: 0;
  transform: translateX(-50px);
}

.profile-image {
  position: relative;
  margin-bottom: 2rem;
}

.image-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gradient-primary);
  padding: 8px;
}

.dark-mode .image-wrapper {
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.4),
              0 0 80px rgba(0, 212, 255, 0.2);
  animation: imageGlow 4s ease-in-out infinite;
}

@keyframes imageGlow {
  0%, 100% { 
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.4),
                0 0 80px rgba(0, 212, 255, 0.2);
  }
  50% { 
    box-shadow: 0 0 60px rgba(0, 255, 157, 0.6),
                0 0 100px rgba(0, 212, 255, 0.4);
  }
}

.hover-scale {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.5s ease;
  filter: grayscale(20%);
}

.hover-scale:hover {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  filter: blur(20px);
}

.image-wrapper:hover .image-glow {
  opacity: 0.5;
}

.image-border {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  mask: radial-gradient(circle at center, transparent 85%, black 90%);
  -webkit-mask: radial-gradient(circle at center, transparent 85%, black 90%);
}

/* Profile Card */
.profile-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .profile-card {
  background: rgba(26, 31, 58, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.3);
  box-shadow: 0 10px 40px rgba(0, 255, 157, 0.2),
              inset 0 0 20px rgba(0, 255, 157, 0.05);
}

.dark-mode .profile-card:hover {
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 10px 50px rgba(0, 255, 157, 0.3),
              inset 0 0 30px rgba(0, 255, 157, 0.1);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-mode .profile-name {
  filter: drop-shadow(0 0 10px rgba(0, 255, 157, 0.5));
}

.profile-role {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.profile-stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

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

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.dark-mode .stat-number {
  text-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Content Sections */
.content-section {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(50px);
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 20px 20px 0 0;
}

.dark-mode .content-section::before {
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.8);
}

.dark-mode .content-section {
  background: rgba(26, 31, 58, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.2);
  box-shadow: 0 10px 40px rgba(0, 255, 157, 0.15),
              inset 0 0 20px rgba(0, 255, 157, 0.05);
}

.content-section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

.dark-mode .content-section:hover {
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 15px 50px rgba(0, 255, 157, 0.3),
              inset 0 0 30px rgba(0, 255, 157, 0.1);
}

.section-header {
  margin-bottom: 2rem;
  position: relative;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  display: inline-block;
}

.dark-mode .section-title {
  text-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.dark-mode .section-line {
  background: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.8);
}

.animated-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Enhanced Timeline */
.interactive-timeline {
  position: relative;
  padding-left: 2rem;
}

.interactive-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-30px);
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 10px;
  width: 15px;
  height: 15px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 0 3px var(--primary-color);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(69, 183, 209, 0.3);
}

.dark-mode .timeline-dot {
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.4),
              0 0 20px rgba(0, 255, 157, 0.6);
}

.dark-mode .timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(0, 255, 157, 0.5),
              0 0 30px rgba(0, 255, 157, 0.8);
}

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

.dark-mode .timeline-content h3 {
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.timeline-content p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Enhanced Language Bubbles */
.skill-bubbles {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.bubble {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  background: var(--color);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(0.8);
  animation-delay: var(--delay);
}

.bubble::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--color), transparent, var(--color));
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.bubble:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.bubble:hover::before {
  opacity: 1;
}

.dark-mode .bubble {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.dark-mode .bubble:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7),
              0 0 20px rgba(255, 255, 255, 0.3);
}

/* Enhanced Education Cards */
.education-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.education-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.dark-mode .education-card {
  background: rgba(26, 31, 58, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.2);
  box-shadow: 0 5px 30px rgba(0, 255, 157, 0.1);
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.education-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dark-mode .education-card:hover {
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 10px 40px rgba(0, 255, 157, 0.2),
              inset 0 0 20px rgba(0, 255, 157, 0.05);
}

.education-card.featured {
  border: 2px solid var(--primary-color);
  background: var(--card-bg);
}

.dark-mode .education-card.featured {
  border: 2px solid rgba(0, 255, 157, 0.5);
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(0, 212, 255, 0.1));
  box-shadow: 0 10px 40px rgba(0, 255, 157, 0.3),
              inset 0 0 30px rgba(0, 255, 157, 0.1);
}

.dark-mode .education-card.featured:hover {
  border-color: rgba(0, 255, 157, 0.7);
  box-shadow: 0 15px 50px rgba(0, 255, 157, 0.4),
              inset 0 0 40px rgba(0, 255, 157, 0.15);
}

.education-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.education-card:hover .education-icon {
  filter: grayscale(0%);
}

.education-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.dark-mode .education-card h3 {
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.education-card p {
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.education-year {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dark-mode .education-year {
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.6);
}

.education-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(69, 183, 209, 0.2);
}

.course {
  font-weight: 600;
  color: var(--primary-color);
}

.dark-mode .course {
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.specialization {
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: italic;
}

/* Enhanced Contact Section */
.contact {
  margin-top: 2rem;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .contact-card {
  background: rgba(26, 31, 58, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.2);
  box-shadow: 0 10px 40px rgba(0, 255, 157, 0.15),
              inset 0 0 20px rgba(0, 255, 157, 0.05);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: transparent;
  border-radius: 15px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(102, 126, 234, 0.05);
}

.dark-mode .contact-item {
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
}

.dark-mode .contact-item:hover {
  background: rgba(0, 255, 157, 0.15);
  border-color: rgba(0, 255, 157, 0.4);
  box-shadow: 0 5px 20px rgba(0, 255, 157, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.dark-mode .contact-icon {
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
}

.contact-text {
  flex: 1;
}

.contact-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

.dark-mode .contact-label {
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.contact-value {
  font-size: 1rem;
  opacity: 0.9;
}

.contact-value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Enhanced Footer Social Links */
.social-links {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.social-container {
  display: flex;
  gap: 1.5rem;
  background: var(--card-bg);
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: var(--shadow-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .social-container {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon {
  font-size: 1.5rem;
  color: var(--text-color);
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  background: rgba(69, 183, 209, 0.1);
}

.social-tooltip {
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-card);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.social-icon:hover .social-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Animation Classes */
.animate-title {
  animation: fadeInUp 1s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 1s ease forwards 0.3s;
}

.animate-card {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-card:nth-child(1) { animation-delay: 0.2s; }
.animate-card:nth-child(2) { animation-delay: 0.4s; }
.animate-card:nth-child(3) { animation-delay: 0.6s; }
.animate-card:nth-child(4) { animation-delay: 0.8s; }

.animate-timeline {
  animation: slideInRight 0.8s ease forwards;
}

.animate-timeline:nth-child(1) { animation-delay: 0.2s; }
.animate-timeline:nth-child(2) { animation-delay: 0.4s; }
.animate-timeline:nth-child(3) { animation-delay: 0.6s; }

.animate-bubble {
  animation: bounceIn 0.6s ease forwards;
}

.animate-education {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-education:nth-child(1) { animation-delay: 0.2s; }
.animate-education:nth-child(2) { animation-delay: 0.4s; }
.animate-education:nth-child(3) { animation-delay: 0.6s; }

.animate-contact {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-contact:nth-child(1) { animation-delay: 0.1s; }
.animate-contact:nth-child(2) { animation-delay: 0.2s; }
.animate-contact:nth-child(3) { animation-delay: 0.3s; }
.animate-contact:nth-child(4) { animation-delay: 0.4s; }

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .floating-social {
    right: 20px;
  }
  
  .social-float {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 5%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-section {
    position: static;
    order: 1;
  }

  .about-content {
    order: 2;
  }

  .profile-image .image-wrapper {
    width: 250px;
    height: 250px;
  }

  .page-title {
    font-size: 3rem;
  }

  .content-section {
    padding: 2rem;
  }

  .floating-social {
    display: none;
  }

  .social-links {
    position: static;
    margin-top: 3rem;
    transform: none;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-item {
    padding: 1rem;
  }

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

  .profile-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-item {
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  /* Mobile Menu Styles */
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg);
    flex-direction: column;
    padding: 1rem;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-light);
    border-radius: 0 0 15px 15px;
  }

  .navbar.active {
    transform: scaleY(1);
  }

  .navbar a {
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .navbar a:hover {
    background: rgba(69, 183, 209, 0.1);
  }

  #menu-icon {
    display: block;
  }

  .dark-mode .navbar {
    background: rgba(26, 31, 58, 0.98);
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 10px 40px rgba(0, 255, 157, 0.2);
  }

  .dark-mode .navbar a:hover {
    background: rgba(0, 255, 157, 0.15);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 55%;
  }

  .container {
    padding: 1rem 4%;
  }

  .page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .logo {
    font-size: 1.8rem;
  }

  .header {
    padding: 1rem 4%;
  }

  .navbar a {
    font-size: 1.6rem;
    padding: 0.8rem 1rem;
  }

  #darkMode-icon {
    font-size: 2rem;
  }

  .profile-section {
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .profile-card {
    padding: 1.5rem;
    margin: 0 auto;
    max-width: 100%;
  }

  .profile-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5rem;
  }

  .profile-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .profile-title {
    font-size: 1.3rem;
  }

  .profile-bio {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  .content-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .section-line {
    width: 60px;
    margin-bottom: 2rem;
  }

  .skill-bubbles {
    justify-content: center;
    gap: 0.8rem;
  }

  .bubble {
    padding: 0.7rem 1.3rem;
    font-size: 1.1rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: 0;
    width: 12px;
    height: 12px;
  }

  .timeline-item::after {
    left: 5px;
    width: 2px;
  }

  .timeline-year {
    font-size: 1.3rem;
  }

  .timeline-content h3 {
    font-size: 1.5rem;
  }

  .timeline-content p {
    font-size: 1.2rem;
  }

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

  .education-card {
    padding: 1.5rem;
  }

  .education-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .education-card h3 {
    font-size: 1.5rem;
  }

  .education-card p {
    font-size: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .contact-card h3 {
    font-size: 1.5rem;
  }

  .contact-card p,
  .contact-card a {
    font-size: 1.2rem;
  }

  .social-container {
    padding: 1rem 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icon {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
  }

  .floating-social {
    display: none;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  html {
    font-size: 52%;
  }

  .profile-name {
    font-size: 1.8rem;
  }

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

  .stat-item {
    padding: 1.2rem;
  }

  .bubble {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* Very Small Mobile */
@media (max-width: 320px) {
  html {
    font-size: 50%;
  }

  .container {
    padding: 0.8rem 3%;
  }

  .page-title {
    font-size: 2rem;
  }

  .profile-image-container {
    width: 180px;
    height: 180px;
  }

  .profile-name {
    font-size: 1.6rem;
  }

  .profile-title {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .content-section {
    padding: 1.2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1.6rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .floating-social,
  .social-links,
  .animated-bg {
    display: none;
  }

  body {
    background: white;
    color: black;
    padding-top: 0;
  }

  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .content-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-title,
  .animate-slide-left,
  .animate-card,
  .animate-timeline,
  .animate-bubble,
  .animate-education,
  .animate-contact {
    opacity: 1;
    transform: none;
  }
}

/* Focus Styles for Accessibility */
.social-float:focus,
.social-icon:focus,
.navbar a:focus,
.logo:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0066cc;
    --secondary-color: #cc0000;
    --text-color: #000000;
    --bg-color: #ffffff;
  }

  .content-section {
    border: 2px solid var(--primary-color);
  }
}

/* Additional Techy Dark Mode Effects */

/* Cyber scan line effect for dark mode */
.dark-mode body::after {
  animation: scanline 8s linear infinite;
}

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

/* Holographic text effect for featured cards */
.dark-mode .profile-name::before,
.dark-mode .section-title::before {
  content: attr(class);
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.3), transparent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s infinite;
  opacity: 0;
}

.dark-mode .profile-name:hover::before,
.dark-mode .section-title:hover::before {
  opacity: 1;
}

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

/* Glitch effect on hover for profile image in dark mode */
.dark-mode .image-wrapper:hover {
  animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* Cyber grid overlay for dark mode cards */
.dark-mode .content-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, transparent 49.5%, rgba(0, 255, 157, 0.05) 50%, transparent 50.5%),
    linear-gradient(transparent 49.5%, rgba(0, 255, 157, 0.05) 50%, transparent 50.5%);
  background-size: 20px 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.dark-mode .content-section:hover::after {
  opacity: 1;
}

/* Subtle neon border animation for dark mode */
@keyframes neonBorder {
  0%, 100% {
    border-color: rgba(0, 255, 157, 0.3);
    box-shadow: 0 10px 40px rgba(0, 255, 157, 0.2),
                inset 0 0 20px rgba(0, 255, 157, 0.05);
  }
  50% {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 50px rgba(0, 255, 157, 0.25),
                inset 0 0 25px rgba(0, 255, 157, 0.08);
  }
}

.dark-mode .profile-card {
  animation: neonBorder 6s ease-in-out infinite;
}

/* Terminal cursor effect for timeline items */
.dark-mode .timeline-content p::after {
  content: '▌';
  color: var(--primary-color);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

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

.dark-mode .stat-item {
  position: relative;
}

/* Circuit board pattern for dark mode background */
.dark-mode .profile-section::before {
  content: '';
  position: absolute;
  inset: -50px;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 255, 157, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

/* Pulsing glow for contact icons */
.dark-mode .contact-icon {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.8),
                0 0 40px rgba(0, 212, 255, 0.4);
  }
}