@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #00ffff;
  --secondary: #ff00ff;
  --accent: #00ff88;
  --bg-dark: #0a0a0a;
  --bg-card: rgba(20, 20, 30, 0.8);
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --glow: 0 0 20px var(--primary);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Animated Background */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #0a0a0a, #1a1a2e, #16213e, #0f3460);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::before {
  content: 'function deployCloud() { return "success"; } const dev = { name: "Priyanshu", skills: ["AWS", "Docker"] }; while(true) { innovate(); } class Security { encrypt() { } } let quantum = new Promise(); async function build() { await deploy(); }';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  font-family: monospace;
  font-size: 14px;
  line-height: 2;
  color: rgba(0, 255, 255, 0.08);
  white-space: pre-wrap;
  animation: codeScroll 25s linear infinite;
  pointer-events: none;
}

@keyframes codeScroll {
  0% { transform: translateY(100%) translateX(-20%); }
  100% { transform: translateY(-100%) translateX(-20%); }
}

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--primary);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-welcome {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-role {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  min-height: 2rem;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s both;
}

/* Buttons */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg-dark);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0, 255, 255, 0.05);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.welcome-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.welcome-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-img {
  position: relative;
}

.profile-pic {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  border: 3px solid var(--primary);
  box-shadow: var(--glow);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05) rotate(2deg);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Skills Section */
.skills-section {
  text-align: center;
}

.skills-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-dropdown-list {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.skill-dropdown {
  background: var(--bg-card);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  overflow: hidden;
}

.skill-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.skill-header:hover {
  background: rgba(0, 255, 255, 0.1);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
  color: var(--accent);
}

.skill-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.skill-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
}

.skill-dropdown.active .skill-content {
  max-height: 500px;
}

.skill-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.skill-item:last-child {
  border-bottom: none;
}

.skill-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.progress {
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.progress-inner {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 2s ease;
  box-shadow: 0 0 8px var(--primary);
}

.achievements-section {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.achievements-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.achievement-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.achievement-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

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

.achievement-card .achievement-org {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* GitHub Section */
.github-section {
  text-align: center;
}

.github-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.github-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.github-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.github-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.github-info h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.github-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contribution-graph {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.contribution-graph h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.graph-container {
  position: relative;
}

.months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.graph {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  margin-bottom: 1rem;
  height: 120px;
}

.day {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(0, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.day[data-level="1"] { background: rgba(0, 255, 255, 0.3); }
.day[data-level="2"] { background: rgba(0, 255, 255, 0.5); }
.day[data-level="3"] { background: rgba(0, 255, 255, 0.7); }
.day[data-level="4"] { background: var(--primary); }

.day:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--primary);
}

.legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-colors {
  display: flex;
  gap: 2px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(0, 255, 255, 0.1);
}

.legend-color[data-level="1"] { background: rgba(0, 255, 255, 0.3); }
.legend-color[data-level="2"] { background: rgba(0, 255, 255, 0.5); }
.legend-color[data-level="3"] { background: rgba(0, 255, 255, 0.7); }
.legend-color[data-level="4"] { background: var(--primary); }

.activity-feed {
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.activity-feed h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.commits-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.commit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  transition: all 0.3s ease;
}

.commit-item:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

.commit-icon {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.commit-content {
  flex: 1;
}

.commit-message {
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.commit-message a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.commit-message a:hover {
  color: var(--primary);
  text-shadow: 0 0 8px var(--primary);
}

.commit-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.repositories-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.repositories-section h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.repo-card {
  padding: 1.5rem;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.repo-card:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.2);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.repo-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.repo-header h4 a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.repo-header h4 a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

.repo-visibility {
  background: rgba(0, 255, 255, 0.2);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid var(--primary);
}

.repo-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  min-height: 2.5rem;
}

.repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.repo-language {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.language-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.repo-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.repo-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.achievement-category {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.achievement-category h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  text-align: center;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  padding: 1rem;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.achievement-item:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

.achievement-title {
  display: block;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.achievement-org {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Projects Section */
.projects-section {
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.project-card.terminal {
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

.project-card.terminal:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.terminal-header {
  background: #2d2d2d;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #333;
}

.terminal-buttons {
  display: flex;
  gap: 0.5rem;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 500;
}

.terminal-body {
  padding: 1rem;
  background: #1a1a1a;
  color: #00ff00;
}

.terminal-line {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.prompt {
  color: var(--primary);
  margin-right: 0.5rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: rgba(0, 255, 255, 0.2);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--primary);
}

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary);
}

/* Timeline Section */
.timeline-section {
  text-align: center;
}

.timeline-section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.timeline-item {
  position: relative;
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  width: 45%;
}

.timeline-item:nth-child(odd) {
  margin-left: auto;
}

.timeline-item:nth-child(even) {
  margin-right: auto;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: var(--glow);
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::before {
  left: -60px;
}

.timeline-item:nth-child(even)::before {
  right: -60px;
}

.timeline-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-org {
  color: var(--accent);
  font-weight: 600;
}

.timeline-period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  text-align: center;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .github-activity {
    text-align: center;
  }
}

.github-activity {
  text-align: left;
}

.github-activity h3 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.github-profile {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  flex-wrap: wrap;
  justify-content: center;
}

.github-avatar {
  width: clamp(50px, 8vw, 60px);
  height: clamp(50px, 8vw, 60px);
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.profile-details h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.profile-stats {
  display: flex;
  gap: clamp(0.5rem, 2vw, 1rem);
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.contribution-graph {
  background: var(--bg-card);
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  width: 100%;
  overflow: hidden;
}

.contact-form-section {
  text-align: center;
}

.about-text .contact-info {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-form-section .contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--bg-card);
  border-radius: 25px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary);
}

.contact-icon {
  font-size: 1.2rem;
}

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

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

@media (max-width: 480px) {
  .contact-item {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

.contact-form-section h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  width: 100%;
  padding: 0 1rem;
}

#contact-form input,
#contact-form textarea {
  background: var(--bg-card);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  color: var(--text-light);
  font-family: inherit;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow);
}

#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.social-sidebar {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.social-toggle {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-toggle:hover {
  background: var(--primary);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.social-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.social-sidebar.collapsed .social-content {
  opacity: 0;
  transform: translateX(100px);
  pointer-events: none;
}

.social-sidebar.collapsed {
  gap: 0;
}

.social-links-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
  position: relative;
}

.social-line::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

.social-icons-innovative {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.social-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(0, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-circle:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .social-sidebar {
    right: 1rem;
    gap: 0.5rem;
  }
  
  .social-line {
    height: 20px;
  }
  
  .social-icon-circle {
    width: 35px;
    height: 35px;
  }
  
  .social-icon-circle img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .social-sidebar {
    right: 0.5rem;
    gap: 0.3rem;
  }
  
  .social-line {
    height: 15px;
  }
  
  .social-icon-circle {
    width: 30px;
    height: 30px;
  }
  
  .social-icon-circle img {
    width: 16px;
    height: 16px;
  }
}

.social-icon {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 1rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    padding: 1.5rem;
  }
  
  .achievement-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 1rem;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }
  
  .hero-role {
    font-size: clamp(1.2rem, 3vw, 2rem);
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    width: 200px;
  }
  
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .skills-dropdown-list {
    max-width: 100%;
  }
  
  .skill-header {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .achievement-card {
    padding: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1rem;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: calc(100% - 60px);
    margin-left: 60px;
    padding: 1.5rem;
  }
  
  .timeline-item::before {
    left: -50px !important;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .github-container {
    max-width: 100%;
  }
  
  .github-profile {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem;
  }
  
  .github-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .months {
    font-size: 0.7rem;
    gap: 1px;
  }
  
  .graph {
    gap: 1px;
    height: 100px;
  }
  
  .day {
    width: 10px;
    height: 10px;
  }
  
  .social-icons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .social-icon {
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .contact-form-section h2,
  .github-activity-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-container {
    gap: 1.5rem;
  }
  
  .github-profile {
    padding: 1rem;
  }
  
  .github-avatar img {
    width: 60px;
    height: 60px;
  }
  
  .github-info h3 {
    font-size: 1.2rem;
  }
  
  .months {
    font-size: 0.6rem;
  }
  
  .graph {
    height: 80px;
  }
  
  .day {
    width: 8px;
    height: 8px;
  }
  
  .contribution-graph {
    padding: 1rem;
  }
  
  .contribution-graph h4 {
    font-size: 1rem;
  }
  .hero-content {
    padding: 0.5rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 0.5rem;
  }
  
  .hero-welcome {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .hero-role {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
    width: 180px;
  }
  
  .skills-section h2,
  .projects-section h2,
  .achievements-section h2,
  .timeline-section h2,
  .contact-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .skill-header {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .skill-item {
    padding: 0.8rem 1rem;
  }
  
  .achievement-card {
    padding: 1rem;
  }
  
  .achievement-card h3 {
    font-size: 1rem;
  }
  
  .project-card {
    padding: 0.8rem;
  }
  
  .project-card h3 {
    font-size: 1.2rem;
  }
  
  .timeline-item {
    padding: 1rem;
    width: calc(100% - 40px);
    margin-left: 40px;
  }
  
  .timeline::before {
    left: 10px;
  }
  
  .timeline-item::before {
    left: -40px !important;
    width: 15px;
    height: 15px;
  }
  
  #contact-form {
    padding: 0 1rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.8rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

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

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

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

.loading-container {
  text-align: center;
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2rem;
  letter-spacing: 3px;
  animation: pulse 2s infinite;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(0, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.loading-progress {
  height: 100%;
  background: var(--gradient);
  width: 0;
  animation: loadProgress 3s ease-in-out infinite;
  box-shadow: 0 0 10px var(--primary);
}

.loading-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: dotPulse 1.5s infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

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

@keyframes loadProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

body.loaded .loading-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Contribution Graph */
.contribution-grid {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  gap: 2px;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 0.5rem;
  height: clamp(60px, 15vw, 100px);
  width: 100%;
}

.contribution-day {
  width: clamp(6px, 2vw, 10px);
  height: clamp(6px, 2vw, 10px);
  border-radius: 2px;
  background: rgba(0, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.contribution-day:hover {
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--primary);
}

.contribution-day[data-level="0"] { background: rgba(0, 255, 255, 0.1); }
.contribution-day[data-level="1"] { background: rgba(0, 255, 255, 0.3); }
.contribution-day[data-level="2"] { background: rgba(0, 255, 255, 0.5); }
.contribution-day[data-level="3"] { background: rgba(0, 255, 255, 0.7); }
.contribution-day[data-level="4"] { background: var(--primary); }

.contribution-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  justify-content: center;
  margin-top: 1rem;
}

.legend-colors {
  display: flex;
  gap: 2px;
}

.legend-day {
  width: clamp(6px, 2vw, 10px);
  height: clamp(6px, 2vw, 10px);
  border-radius: 2px;
}

.legend-day[data-level="0"] { background: rgba(0, 255, 255, 0.1); }
.legend-day[data-level="1"] { background: rgba(0, 255, 255, 0.3); }
.legend-day[data-level="2"] { background: rgba(0, 255, 255, 0.5); }
.legend-day[data-level="3"] { background: rgba(0, 255, 255, 0.7); }
.legend-day[data-level="4"] { background: var(--primary); }

.contribution-stats {
  margin-top: 1rem;
  text-align: center;
}

.contribution-stats p {
  margin: 0.3rem 0;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--text-muted);
}

.github-achievements {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.github-achievements {
  text-align: center;
}

.github-achievements h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.achievement-images {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.achievement-images {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.achievement-images img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.achievement-images img:hover {
  transform: scale(1.1);
}

.hackerrank-achievements {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.hackerrank-achievements {
  text-align: center;
}

.hackerrank-achievements h5 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.achievement-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hr-badge {
  display: inline-block;
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.7rem;
  border: 1px solid rgba(0, 255, 0, 0.3);
  transition: all 0.3s ease;
}

.hr-badge:hover {
  background: rgba(0, 255, 0, 0.2);
  transform: translateY(-2px);
}

.hr-badges-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hr-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hr-badge-item img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.hr-badge-item img:hover {
  transform: scale(1.1);
}

.badge-label {
  font-size: 0.7rem;
  color: var(--primary);
  text-align: center;
  font-weight: 500;
}

.contribution-legend {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 1vw, 0.5rem);
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  color: var(--text-muted);
  justify-content: center;
  margin-top: 1rem;
}

.legend-colors {
  display: flex;
  gap: clamp(1px, 0.5vw, 2px);
}

@media (max-width: 480px) {
  .contribution-grid {
    gap: 1px;
    padding: 0.3rem;
  }
}