/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --dark-color: #0a0a0a;
  --darker-color: #050505;
  --dark-gray: #1f2937;
  --medium-gray: #374151;
  --light-gray: #6b7280;
  --light-color: #f8fafc;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-dark: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Typography */
  --font-family: 'Manrope', sans-serif;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--dark-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: var(--font-regular);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== Loading Screen ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  text-align: center;
}

.loader-text {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  animation: pulse 2s infinite;
}

.loader-bar {
  width: 200px;
  height: 4px;
  background: var(--medium-gray);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  animation: loading 2s ease-in-out infinite;
}

/* ===== Background Elements ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(103, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  z-index: -2;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== Navigation ===== */
.navsection {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1rem 0;
}

.navsection.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: var(--shadow-lg);
}

.navbar-brand.logo {
  font-size: 1.8rem;
  font-weight: var(--font-bold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: var(--font-medium);
  margin: 0 var(--space-xs);
  padding: var(--space-xs) var(--space-sm) !important;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(99, 102, 241, 0.1);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.social-nav {
  display: flex;
  gap: var(--space-sm);
}

.social-nav a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-nav a:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

/* ===== Hero Section ===== */
/* Fix for hero section spacing with fixed navbar */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 var(--space-md);
  /* Add proper padding to account for fixed navbar */
  padding-top: 80px; /* Height of navbar + some extra space */
}

.profile-photo-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  /* Remove margin-top from here and control spacing in hero-section */
}

/* Adjust for different screen sizes */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 70px; /* Slightly less on mobile */
  }
  
  .profile-photo-container {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 60px;
  }
  
  .profile-photo-container {
    width: 120px;
    height: 120px;
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1;
}

.profile-photo-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  /* Add margin-top to push it down */
  margin-top: 4rem;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--dark-color);
  position: relative;
  z-index: 2;
}

.profile-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  opacity: 0.3;
  filter: blur(20px);
  animation: glow 3s ease-in-out infinite;
}

.photo-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background: var(--gradient-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate 10s linear infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-anim 5s infinite linear alternate-reverse;
  color: #ff00ff;
  z-index: -1;
}

.glitch::after {
  animation: glitch-anim2 1s infinite linear alternate-reverse;
  color: #00ffff;
  z-index: -2;
}

.typewriter-text {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  animation: typewriter 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

.tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

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

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: var(--font-semibold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

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

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.scroll-line {
  width: 2px;
  height: 50px;
  background: var(--gradient-primary);
  margin: 0 auto var(--space-xs);
  border-radius: 1px;
  animation: bounce 2s infinite;
}

/* ===== Section Common Styles ===== */
.section-padding {
  padding: var(--space-2xl) 0;
}

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

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-md);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.highlight {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

/* ===== About Section ===== */
.about-section {
  background: var(--darker-color);
}

.about-content {
  padding-right: var(--space-lg);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.about-text p {
  margin-bottom: var(--space-lg);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.feature i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 4px;
}

.feature h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.feature p {
  color: var(--text-secondary);
  margin: 0;
}

.about-image {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.floating-card:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 2s;
}

.floating-card:nth-child(3) {
  bottom: 0;
  left: 20%;
  animation-delay: 4s;
}

.floating-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.floating-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.floating-card h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.floating-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Skills Section ===== */
.skills-section {
  background: var(--dark-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

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

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  text-align: center;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-info span:first-child {
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.skill-info span:last-child {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

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

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0;
  transition: width 2s ease-in-out;
}

.skills-marquee {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--space-md) 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
  gap: var(--space-xl);
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: var(--font-medium);
  transition: color 0.3s ease;
}

.marquee-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.marquee-item:hover {
  color: var(--text-primary);
}

/* ===== Projects Section ===== */
.projects-section {
  background: var(--darker-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.project-image {
  position: relative;
  height: 200px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.project-links {
  display: flex;
  gap: var(--space-md);
}

.project-link {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.project-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-semibold);
}

.project-content {
  padding: var(--space-xl);
}

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

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

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

.tech-tag {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===== Experience Section ===== */
.experience-section {
  background: var(--dark-color);
}

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

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

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  border: 4px solid var(--dark-color);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateX(10px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-md);
}

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

.timeline-content h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
  font-weight: var(--font-medium);
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.timeline-tech span {
  background: rgba(16, 185, 129, 0.2);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ===== Education Section ===== */
.education-section {
  background: var(--darker-color);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.education-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  transition: all 0.3s ease;
}

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

.education-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.education-icon i {
  font-size: 1.5rem;
  color: white;
}

.education-content h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.education-content h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
  font-weight: var(--font-medium);
}

.education-date {
  color: var(--secondary-color);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-xs);
}

.education-content p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--dark-color);
}

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

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateX(10px);
  border-color: var(--primary-color);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.5rem;
  color: white;
}

.contact-details h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

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

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

.contact-form-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-block {
  width: 100%;
}

/* ===== Footer ===== */
.footer {
  background: var(--darker-color);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-info p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-muted);
  margin: 0;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6); }
}

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

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes loading {
  0% { width: 0%; }
  50% { width: 60%; }
  100% { width: 100%; }
}

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

@keyframes glitch-anim2 {
  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); }
}

/* ===== Responsive Design ===== */
/* Add these to your styles.css file */

/* Mobile responsive fixes */
@media (max-width: 768px) {
  /* Hero section mobile fixes */
  .hero-section {
    padding-top: 80px;
    min-height: 100vh;
    overflow: hidden;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
@media (max-width: 768px) {
  .profile-photo-container {
    margin-top: 3rem; /* More space on mobile */
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
}

/* For very small screens */
@media (max-width: 480px) {
  .profile-photo-container {
    margin-top: 2rem;
    width: 120px;
    height: 120px;
  }
}

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  .typewriter-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .hero-buttons {
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  /* About section mobile fixes */
  .about-section {
    padding: 3rem 0;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .about-image {
    height: auto;
    min-height: 300px;
  }
  
  .floating-card {
    position: static !important;
    margin-bottom: 1rem;
    animation: none;
    transform: none !important;
  }
  
  .floating-card:hover {
    transform: translateY(-5px) !important;
  }
  
  /* Ensure proper spacing between sections */
  .section-padding {
    padding: 3rem 0;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .profile-photo-container {
    width: 120px;
    height: 120px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 200px;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Fix navbar for mobile */
  .navbar-collapse {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link {
    text-align: center;
    padding: 0.75rem !important;
    margin: 0.25rem 0 !important;
  }
}

/* Fix for iOS Safari viewport height */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
  
  .full-vh {
    min-height: -webkit-fill-available;
  }
}

/* Prevent horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Fix for mobile touch interactions */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover,
  .feature:hover,
  .floating-card:hover {
    transform: none;
  }
  
  .nav-link:hover {
    background: transparent;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .feature {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: var(--space-md); }
.p-4 { padding: var(--space-lg); }
.p-5 { padding: var(--space-xl); }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .hero-buttons,
  .back-to-top,
  .footer-social {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .section-padding {
    padding: 2rem 0;
  }

  .project-card,
  .timeline-content,
  .education-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}