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

:root {
  /* Modern Color Palette */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --background-dark: #0f172a;
  --background-light: #f8fafc;
  --text-primary-dark: #f8fafc;
  --text-secondary-dark: #94a3b8;
  --text-primary-light: #0f172a;
  --text-secondary-light: #475569;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --card-bg-dark: rgba(255, 255, 255, 0.05);
  --card-bg-hover-dark: rgba(255, 255, 255, 0.1);
  --gradient-primary: linear-gradient(
    135deg,
    var(--accent-blue),
    var(--accent-purple)
  );
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
  overflow-y: auto;
}

body {
  background-color: var(--background-dark);
  color: var(--text-primary-dark);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  height: 100%;
  position: relative;
  min-height: 100vh;
  overflow-y: auto;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 1rem 0;
  margin: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  animation-delay: 7s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  animation-delay: 14s;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 0 0;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.hero-text {
  z-index: 2;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary-dark);
  margin-bottom: 1rem;
  animation: slideInLeft 0.8s ease-out;
}

.wave {
  font-size: 1.5rem;
  animation: wave 2s ease-in-out infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

.name-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-blue);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary-dark);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 500px;
  animation: slideInLeft 0.8s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  animation: slideInLeft 0.8s ease-out 0.8s both;
}

.stat {
  text-align: center;
}

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

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

.hero-actions {
  display: flex;
  gap: 1.5rem;
  animation: slideInLeft 0.8s ease-out 1s both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
  background: transparent;
  color: var(--text-primary-dark);
  border: 2px solid var(--accent-blue);
}

.cta-button.secondary:hover {
  background: var(--accent-blue);
  color: white;
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 0.8s ease-out 0.4s both;
}

.profile-card {
  background: var(--card-bg-dark);
  padding: 2rem;
  border-radius: 2rem;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.profile-pic-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-pic-container:hover img {
  transform: scale(1.1);
}

.profile-pic-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic-container:hover .profile-pic-overlay {
  opacity: 0.2;
}

.status-indicator {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 3px solid white;
  animation: pulse 2s infinite;
}

.profile-info h3 {
  color: var(--text-primary-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.profile-info p {
  color: var(--text-secondary-dark);
  font-size: 0.9rem;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 0;
  left: 0;
  overflow: hidden;
}

.floating-card {
  position: absolute;
  background: var(--card-bg-dark);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary-dark);
  animation: float 6s ease-in-out infinite;
  max-height: 50px;
  min-height: 40px;
}

.card-1 {
  top: 2%;
  right: 10%;
  animation-delay: 0s;
}

.card-2 {
  top: 15%;
  right: 5%;
  animation-delay: 2s;
}

.card-3 {
  top: 8%;
  left: 5%;
  animation-delay: 4s;
}

.card-4 {
  top: 25%;
  left: 5%;
  animation-delay: 6s;
}

/* Animations */
@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(20deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

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

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

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

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

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
}

#user-name {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
}

.typing-text {
  color: var(--accent-blue);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

#bio {
  color: var(--text-secondary-dark);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Buttons and Links */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-info {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-bg-dark);
  border-radius: 0.75rem;
  color: var(--text-primary-dark);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--card-bg-hover-dark);
  transform: translateY(-2px);
}

/* Social Links */
#socials--list {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--card-bg-dark);
  border-radius: 0.75rem;
  color: var(--text-primary-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link:hover {
  background: var(--card-bg-hover-dark);
  transform: translateY(-2px);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  opacity: 0.1;
}

/* Skills Section */
.skills-intro {
  color: var(--text-secondary-dark);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  text-align: left;
  max-width: 600px;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-category {
  background: var(--card-bg-dark);
  padding: 1.5rem;
  border-radius: 1.2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.skill-category:hover::before {
  opacity: 1;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.category-header h3 {
  color: var(--text-primary-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.skill-item:hover {
  transform: translateX(5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill-item:hover::before {
  opacity: 0.05;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary-dark);
}

.skill-level {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.skill-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.skill-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transform-origin: left;
  transform: scaleX(0);
  animation: skillProgress 1.5s ease-out forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
  position: relative;
  overflow: hidden;
}

.skill-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes skillProgress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(var(--progress));
  }
}

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

/* Skill level color variations */
.skill-level[data-level="Expert"] {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  border-color: rgba(34, 197, 94, 0.2);
}

.skill-level[data-level="Advanced"] {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-color: rgba(59, 130, 246, 0.2);
}

.skill-level[data-level="Intermediate"] {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.skill-level[data-level="Beginner"] {
  background: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border-color: rgba(156, 163, 175, 0.2);
}

/* Work History */
.card--work-history {
  background: var(--card-bg-dark);
  padding: 2rem;
  border-radius: 1rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.card--work-history:hover {
  background: var(--card-bg-hover-dark);
  transform: translateY(-2px);
}

.card--work-history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.card--work-history strong {
  font-size: 1.25rem;
  color: var(--text-primary-dark);
  display: block;
  margin-bottom: 0.5rem;
}

.card--work-history p {
  color: var(--text-secondary-dark);
  margin-bottom: 1rem;
}

.card--work-history ul {
  list-style-type: none;
  color: var(--text-secondary-dark);
}

.card--work-history li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.card--work-history li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

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

.card--project {
  background: var(--card-bg-dark);
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.card--project:hover {
  background: var(--card-bg-hover-dark);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card--project::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

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

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-primary-dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

/* Section Styles */
.section--page {
  margin: 1rem 0 2rem 0;
}

.section--page #qualifications--list {
  padding-left: 15px;
}

.section--page h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary-dark);
  position: relative;
  display: inline-block;
}

.section--page h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Animations */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Project Cards Enhancement */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary-dark);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.loading {
  background: linear-gradient(
    90deg,
    var(--card-bg-dark) 25%,
    var(--card-bg-hover-dark) 50%,
    var(--card-bg-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .profile-card {
    padding: 1.5rem;
  }

  .profile-pic-container {
    width: 150px;
    height: 150px;
  }

  .floating-card {
    display: flex;
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }

  .card-1 {
    top: 2%;
    right: 10%;
  }

  .card-2 {
    top: 12%;
    right: 2%;
  }

  .card-3 {
    top: 6%;
    left: 5%;
  }

  .card-4 {
    top: 20%;
    left: 2%;
  }

  .shape-1,
  .shape-2,
  .shape-3 {
    display: none;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  #socials--list {
    flex-direction: column;
    align-items: center;
  }

  .card--work-history {
    padding: 1.5rem;
  }
}

/* Dark mode scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--card-bg-hover-dark);
  border-radius: 5px;
}

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

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

/* Background Enhancement */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.1),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(139, 92, 246, 0.1),
      transparent 50%
    );
  z-index: -1;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo a {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  color: var(--text-primary-dark);
  z-index: 10;
  position: relative;
}

.nav-logo a:hover {
  border-color: var(--accent-purple);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary-dark);
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary-dark);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Footer Section */
.footer-section {
  background: var(--card-bg-dark);
  margin-top: 4rem;
  padding: 4rem 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-text {
  max-width: 600px;
  margin: 1.5rem auto;
  color: var(--text-secondary-dark);
}

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

.contact-card {
  background: var(--card-bg-dark);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-card:hover {
  transform: translateY(-5px);
  background: var(--card-bg-hover-dark);
}

.contact-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  color: var(--text-primary-dark);
  margin-bottom: 0.5rem;
}

.contact-card p {
  color: var(--text-secondary-dark);
}

/* Light Theme */
:root.light-theme {
  --background-dark: var(--background-light);
  --text-primary-dark: var(--text-primary-light);
  --text-secondary-dark: var(--text-secondary-light);
  --card-bg-dark: rgba(0, 0, 0, 0.05);
  --card-bg-hover-dark: rgba(0, 0, 0, 0.1);
}

/* Adjust main container for fixed navbar */
#container--main {
  padding-top: 80px;
  margin-top: 0;
  position: relative;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--background-dark);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

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

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

  .card--project {
    padding: 1.5rem;
  }

  .project-links {
    flex-direction: column;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }

  /* Skills Section Mobile */
  .skills-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-category {
    padding: 1.25rem;
  }

  .category-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .category-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .category-header h3 {
    font-size: 1.1rem;
  }

  .skill-item {
    padding: 1rem;
  }

  .skill-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .skill-level {
    align-self: flex-end;
  }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--accent-blue),
    var(--accent-purple)
  );
  transform-origin: 0;
  transform: scaleX(0);
  transition: transform 0.1s ease;
}

/* Particle Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle var(--duration) linear infinite;
  animation-delay: var(--delay);
  left: var(--x);
  top: var(--y);
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Enhanced Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary-dark);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* Enhanced Card Hover Effects */
.card--project:hover,
.card--work-history:hover,
.card--techstack:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Focus states for accessibility */
.nav-link:focus,
.contact-link:focus,
.social-link:focus,
.project-link:focus,
.cta-button:focus,
.theme-toggle:focus,
.scroll-to-top:focus {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
}

.skip-link:focus {
  top: 6px;
}

/* Improved loading states */
.loading-skeleton {
  background: linear-gradient(
    90deg,
    var(--card-bg-dark) 25%,
    var(--card-bg-hover-dark) 50%,
    var(--card-bg-dark) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

/* Skill Progress Bars */
.skill-progress {
  width: 100%;
  height: 6px;
  background: var(--card-bg-dark);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transform-origin: left;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(var(--progress));
  }
}

/* Enhanced Typography */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
}

/* Loading Effects */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--card-bg-dark) 0%,
    var(--card-bg-hover-dark) 50%,
    var(--card-bg-dark) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Enhanced Section Transitions */
.section--page {
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.section--page:hover {
  transform: scale(1.01);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scroll-to-top:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
