/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-default);
}

.contact-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info h3::before {
  content: '📧';
  font-size: 1.5rem;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 50%;
  color: var(--accent-primary);
  border: 1px solid var(--border-default);
}

.socials {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.socials a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  transition: top 0.3s ease;
  border-radius: 50%;
}

.socials a:hover::before {
  top: 0;
}

.socials a:hover {
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(47, 129, 247, 0.4);
}

.socials a i {
  position: relative;
  z-index: 2;
}

/* GitHub specific styling */
.socials a[href*="github"]:hover {
  background: #333;
  border-color: #333;
}

.socials a[href*="github"]:hover::before {
  background: #333;
}

/* LinkedIn specific styling */
.socials a[href*="linkedin"]:hover {
  background: #0077b5;
  border-color: #0077b5;
}

.socials a[href*="linkedin"]:hover::before {
  background: #0077b5;
}

/* Instagram specific styling */
.socials a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  border-color: #e6683c;
}

.socials a[href*="instagram"]:hover::before {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid var(--border-default);
}

.contact-form h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form h3::before {
  content: '💬';
  font-size: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-default);
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.15);
  background: var(--bg-primary);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

textarea {
  min-height: 140px;
  max-height: 300px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.2rem 2rem;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(47, 129, 247, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn i {
  font-size: 1rem;
}

/* Form Messages */
.form-messages {
  margin-top: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

.form-messages.show {
  opacity: 1;
  transform: translateY(0);
}

.form-messages .message {
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-messages .message.success {
  background: rgba(63, 185, 80, 0.1);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}

.form-messages .message.error {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}

.form-messages .message i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Enhanced form field states */
.form-group.focused label {
  color: var(--accent-primary);
  font-size: 0.9rem;
  transform: translateY(-2px);
}

.form-group input.success,
.form-group textarea.success {
  border-color: var(--success-color);
  background: rgba(63, 185, 80, 0.05);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--danger-color);
  background: rgba(248, 81, 73, 0.05);
}

.error-message {
  color: var(--danger-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.error-message::before {
  content: '⚠️';
  font-size: 0.8rem;
}

/* Loading states for buttons */
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.submit-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success animation */
.submit-btn.success {
  background: var(--success-color) !important;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}/* GitHub-styled Portfolio CSS */
:root {
  /* Light Theme Colors (GitHub Light) */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #ffffff;
  --text-primary: #24292f;
  --text-secondary: #656d76;
  --text-muted: #8b949e;
  --border-default: #d0d7de;
  --border-muted: #d8dee4;
  --accent-primary: #0969da;
  --accent-hover: #0860ca;
  --success-color: #1a7f37;
  --warning-color: #bf8700;
  --danger-color: #cf222e;
  --shadow-default: rgba(31, 35, 40, 0.04);
  --shadow-medium: rgba(31, 35, 40, 0.15);
  --gradient-bg: linear-gradient(135deg, #f6f8fa 0%, #ffffff 100%);
}

[data-theme="dark"] {
  /* Dark Theme Colors (GitHub Dark) */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #7d8590;
  --border-default: #30363d;
  --border-muted: #21262d;
  --accent-primary: #2f81f7;
  --accent-hover: #1f6feb;
  --success-color: #3fb950;
  --warning-color: #d29922;
  --danger-color: #f85149;
  --shadow-default: rgba(1, 4, 9, 0.8);
  --shadow-medium: rgba(1, 4, 9, 0.8);
  --gradient-bg: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all 0.3s ease;
  overflow-x: hidden;
}

/* Particles Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--gradient-bg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-default);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(13, 17, 23, 0.85);
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

#menu {
  display: flex;
  gap: 2rem;
}

#menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

#menu a:hover {
  color: var(--accent-primary);
}

#menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--accent-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

#menu a:hover::after {
  width: 100%;
}

#themeToggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-muted);
}

#hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  min-height: 100vh;
  padding: 2rem 5%;
  position: relative;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 0 0 auto;
  position: relative;
}

.profile-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 6px solid var(--accent-primary);
  box-shadow: 
    0 0 0 4px var(--bg-primary),
    0 0 0 8px var(--border-default),
    0 20px 60px var(--shadow-medium);
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.profile-img:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 
    0 0 0 4px var(--bg-primary),
    0 0 0 8px var(--accent-primary),
    0 25px 80px var(--shadow-medium);
}

/* Decorative elements around profile image */
.hero-image::before {
  content: '💻';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
  z-index: 3;
}

.hero-image::after {
  content: '🚀';
  position: absolute;
  bottom: 30px;
  left: 10px;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite 1.5s;
  z-index: 3;
}

.hero-greeting {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-greeting::before {
  content: '👋 ';
  animation: wave 2s ease-in-out infinite;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-name {
  position: relative;
  display: inline-block;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-primary), var(--success-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-title {
  font-size: 1.4rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title::before {
  content: '{ ';
  color: var(--success-color);
}

.hero-title::after {
  content: ' }';
  color: var(--success-color);
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(47, 129, 247, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border: 2px solid var(--border-default);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.stat-item i {
  color: var(--success-color);
  font-size: 1.1rem;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Wave animation */
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-10deg); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 129, 247, 0.3);
}

/* Sections */
section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

section:not(.hero) {
  margin-bottom: 2rem;
}

h2 {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

h2::before {
  content: attr(data-icon);
  font-size: 2.5rem;
  color: var(--accent-primary);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--success-color));
  border-radius: 2px;
}

/* Section intro text */
.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.skill {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--success-color));
  transition: left 0.5s ease;
}

.skill:hover::before {
  left: 0;
}

.skill:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px var(--shadow-medium);
  border-color: var(--accent-primary);
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 50%;
  border: 2px solid var(--border-default);
  transition: all 0.3s ease;
}

.skill:hover .skill-icon {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

.skill i {
  font-size: 2.5rem;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

.skill:hover i {
  color: white;
  transform: scale(1.1);
}

.skill p {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.bar {
  width: 100%;
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  position: relative;
}

.bar::before {
  content: attr(data-percentage);
  position: absolute;
  right: 8px;
  top: -25px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--success-color));
  border-radius: 5px;
  transition: width 2s ease;
  position: relative;
}

.bar span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Achievements Section */
.achievements {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-default);
  text-align: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.achievements::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--success-color), var(--warning-color));
}

.section-img {
  width: 100px;
  height: 100px;
  margin-bottom: 2rem;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px var(--shadow-medium));
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.achievement-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--success-color);
  border-radius: 2px 0 0 2px;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow-medium);
  border-color: var(--success-color);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.achievement-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.achievement-description {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.achievements ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  display: none; /* Hidden in favor of grid */
}

.achievements li {
  background: var(--bg-tertiary);
  margin: 1.5rem 0;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-default);
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievements li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success-color);
  border-radius: 50%;
  flex-shrink: 0;
}

.achievements li:hover {
  transform: translateX(15px);
  border-color: var(--success-color);
  box-shadow: 0 4px 20px var(--shadow-medium);
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 0;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-default);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--success-color));
  transition: left 0.5s ease;
}

.project-card:hover::before {
  left: 0;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow-medium);
  border-color: var(--accent-primary);
}

.project-header {
  background: var(--bg-tertiary);
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border-default);
  position: relative;
}

.project-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: all 0.3s ease;
  border-radius: 12px;
  background: var(--bg-secondary);
  padding: 1rem;
  border: 1px solid var(--border-default);
}

.project-card:hover img {
  transform: scale(1.1) rotate(5deg);
  opacity: 1;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-body {
  padding: 2rem;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.tech-tag {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-primary);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.project-card a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(47, 129, 247, 0.3);
}

.project-card a i {
  font-size: 1rem;
}

/* Project status indicators */
.project-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-completed {
  background: rgba(63, 185, 80, 0.15);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.status-inprogress {
  background: rgba(217, 153, 34, 0.15);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

/* Center Sections */
.center-section {
  text-align: center;
}

.center-section img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.tech-grid span {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tech-grid span:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px var(--shadow-medium);
  color: var(--accent-primary);
}

.tech-grid i {
  font-size: 1.2rem;
}

/* Contact Section */
.socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.socials a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(47, 129, 247, 0.3);
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input,
form textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.1);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-default);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  text-align: center;
  color: var(--text-secondary);
}

.footer-content p {
  font-size: 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-links span {
  color: var(--text-muted);
}

/* Resume highlights */
.resume-highlights {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.highlight-item i {
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* LeetCode container */
.leetcode-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border-default);
  margin: 2rem 0;
}

.leetcode-container img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px var(--shadow-medium);
  transition: transform 0.3s ease;
}

.leetcode-container:hover img {
  transform: scale(1.02);
}

/* Enhanced scroll to top button styles */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 1000;
  box-shadow: 0 8px 32px var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(47, 129, 247, 0.5);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Loading states */
.loading .fade-in {
  opacity: 0;
  transform: translateY(50px);
}

/* Additional animations */
@keyframes pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.05);
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Gradient text animation */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-text {
  background: linear-gradient(270deg, var(--accent-primary), var(--success-color), var(--warning-color));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* Focus states for accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-default: rgba(0, 0, 0, 0.5);
    --shadow-medium: rgba(0, 0, 0, 0.7);
  }
  
  .project-card,
  .skill,
  .achievement-card {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode image filters */
[data-theme="dark"] img:not(.profile-img):not([src*="leetcard"]) {
  filter: brightness(0.9) contrast(1.1);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  section {
    padding: 6rem 4%;
  }
  
  .hero {
    gap: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  #menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    padding-top: 2rem;
    transition: left 0.3s ease;
    border-top: 1px solid var(--border-default);
    backdrop-filter: blur(20px);
    z-index: 999;
  }

  #menu.active {
    left: 0;
  }

  #hamburger {
    display: block;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
    gap: 2.5rem;
  }

  .profile-img {
    width: 220px;
    height: 220px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  section {
    padding: 4rem 4%;
  }

  h2 {
    font-size: 2.3rem;
    margin-bottom: 3rem;
  }

  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .socials {
    justify-content: center;
  }

  .navbar {
    padding: 1rem 4%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
  }

  .profile-img {
    width: 180px;
    height: 180px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  section {
    padding: 3rem 5%;
  }

  h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .project-grid {
    gap: 1.5rem;
  }

  .skill,
  .project-card {
    padding: 1.5rem;
  }

  .contact-info,
  .contact-form {
    padding: 2rem;
  }

  .navbar {
    padding: 1rem 5%;
  }
}

/* Additional spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Loading animations */
.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--bg-secondary);
  z-index: 1001;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--success-color));
  width: 0%;
  transition: width 0.1s ease;
}

/* Print styles */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  #particles-js,
  .scroll-to-top,
  .scroll-indicator {
    display: none !important;
  }
  
  section {
    padding: 2rem 0 !important;
    page-break-inside: avoid;
  }
  
  .hero {
    min-height: auto !important;
    padding-top: 0 !important;
  }
}