@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --glow-color: rgba(99, 102, 241, 0.5);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Mobile-first: Base styles are for mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .navbar {
    background: rgba(10, 10, 15, 0.95);
  }
}

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

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.8rem 1rem;
  }
}

.nav-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: inline-block;
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.2rem;
  }
}

.nav-logo:hover {
  transform: scale(1.1);
}

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

@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    gap: 0;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    padding: 1rem 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
  }
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-link.active {
  color: var(--text-primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 60px;
    padding-bottom: 1.5rem;
  }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -200px;
  left: -200px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 50%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 1.5rem;
  }

  .hero-image {
    order: -1;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1rem;
    gap: 1.5rem;
  }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }
}

.btn {
  display: inline-flex;
    align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: row;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-image {
  position: relative;
  display: flex;
    justify-content: center;
  align-items: center;
}

.image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .image-wrapper {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .image-wrapper {
    width: 250px;
    height: 250px;
  }
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-glow {
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.5; }
}

.floating-icons {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .floating-icons {
    width: 400px;
    height: 400px;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    transform-origin: 200px 200px;
    margin-left: -25px;
    margin-top: -25px;
  }

  .floating-icon:nth-child(1) {
    transform: rotate(0deg) translateX(175px) rotate(0deg);
  }

  .floating-icon:nth-child(2) {
    transform: rotate(51.4deg) translateX(175px) rotate(-51.4deg);
  }

  .floating-icon:nth-child(3) {
    transform: rotate(102.8deg) translateX(175px) rotate(-102.8deg);
  }

  .floating-icon:nth-child(4) {
    transform: rotate(154.2deg) translateX(175px) rotate(-154.2deg);
  }

  .floating-icon:nth-child(5) {
    transform: rotate(205.6deg) translateX(175px) rotate(-205.6deg);
  }

  .floating-icon:nth-child(6) {
    transform: rotate(257deg) translateX(175px) rotate(-257deg);
  }

  .floating-icon:nth-child(7) {
    transform: rotate(308.4deg) translateX(175px) rotate(-308.4deg);
  }
}

@media (max-width: 480px) {
  .floating-icons {
    width: 300px;
    height: 300px;
    display: none; /* Hide on very small screens for better performance */
  }
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  color: #ffffff;
  transition: all 0.3s ease;
  pointer-events: auto;
  z-index: 10;
  transform-origin: 250px 250px;
  /* Orbit radius: 250px (half of 500px container) - 30px (half icon size) = 220px from center */
  left: 250px;
  top: 250px;
  margin-left: -30px;
  margin-top: -30px;
}

.floating-icon:hover {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  z-index: 15;
}

.floating-icon:hover i {
  transform: scale(1.2);
}

.floating-icon i {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Position each icon at different angles around the circle */
/* 7 icons = 360/7 ≈ 51.4 degrees apart */
.floating-icon:nth-child(1) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: 0s;
  transform: rotate(0deg) translateX(220px) rotate(0deg);
}

.floating-icon:nth-child(2) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: -2.86s;
  transform: rotate(51.4deg) translateX(220px) rotate(-51.4deg);
}

.floating-icon:nth-child(3) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: -5.72s;
  transform: rotate(102.8deg) translateX(220px) rotate(-102.8deg);
}

.floating-icon:nth-child(4) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: -8.58s;
  transform: rotate(154.2deg) translateX(220px) rotate(-154.2deg);
}

.floating-icon:nth-child(5) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: -11.44s;
  transform: rotate(205.6deg) translateX(220px) rotate(-205.6deg);
}

.floating-icon:nth-child(6) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: -14.3s;
  transform: rotate(257deg) translateX(220px) rotate(-257deg);
}

.floating-icon:nth-child(7) {
  animation: orbitIcon 20s linear infinite;
  animation-delay: -17.16s;
  transform: rotate(308.4deg) translateX(220px) rotate(-308.4deg);
}

@keyframes orbitIcon {
  0% {
    transform: rotate(0deg) translateX(220px) rotate(0deg);
}
  100% {
    transform: rotate(360deg) translateX(220px) rotate(-360deg);
  }
}

/* Pause animation when hovering over profile picture */
.hero-image:hover .floating-icon {
  animation-play-state: paused;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Section Styles */
section {
  padding: 6rem 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }
}

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

@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-image {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-content {
    gap: 1.5rem;
  }
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-card {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .image-card {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .image-card {
    width: 220px;
    height: 220px;
  }
}

.image-card img {
  width: 100%;
  height: 100%;
    object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--primary);
}

.card-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  opacity: 0.2;
  z-index: -1;
  filter: blur(20px);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .about-text h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .about-text h3 {
    font-size: 1.5rem;
  }
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .about-features {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.feature-item {
    display: flex;
    align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.feature-item i {
  color: var(--primary);
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .about-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.info-value {
  color: var(--text-primary);
  font-weight: 600;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 968px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
    display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.category-title i {
  color: var(--primary);
  font-size: 1.8rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.skill-name {
  color: var(--text-primary);
  font-weight: 500;
}

.skill-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  animation: progressAnimation 1s ease-out;
}

@keyframes progressAnimation {
  from { width: 0; }
}

.skills-showcase {
  margin-top: 3rem;
  text-align: center;
}

.skills-showcase h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .tech-tags {
    gap: 0.7rem;
  }

  .tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }
}

.tech-tag {
  padding: 0.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
  max-width: 900px;
  margin: 0 auto;
}

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

@media (max-width: 968px) {
  .timeline::before {
    left: 20px;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 968px) {
  .timeline-item {
    flex-direction: row !important;
    padding-left: 3rem;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }
}

.timeline-marker {
    position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

@media (max-width: 968px) {
  .timeline-content {
    width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .timeline-content {
    padding: 1.2rem;
  }

  .timeline-header h3 {
    font-size: 1.2rem;
  }
}

.timeline-content:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.timeline-header {
  margin-bottom: 1rem;
}

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

.timeline-company {
  color: var(--primary);
  font-weight: 600;
  margin-right: 1rem;
}

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

.timeline-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
    display: flex;
    align-items: center;
  gap: 0.5rem;
}

.timeline-location i {
  color: var(--primary);
  font-size: 0.8rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.timeline-achievements {
    display: flex;
    flex-wrap: wrap;
  gap: 0.5rem;
}

.achievement-tag {
  padding: 0.3rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Education Section */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 968px) {
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.5rem;
}

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

.education-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
    align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

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

.education-institution {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.education-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.education-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Portfolio Section */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .portfolio-filters {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: var(--text-primary);
}

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

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .portfolio-grid {
    gap: 1.2rem;
  }
}

.portfolio-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.portfolio-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.portfolio-image {
  position: relative;
    width: 100%;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
    display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.portfolio-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.portfolio-tech {
  display: flex;
    flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  padding: 0.3rem 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.portfolio-links {
  display: flex;
  gap: 1rem;
}

.portfolio-link {
  flex: 1;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.portfolio-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

@media (max-width: 968px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
    text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

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

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

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

.contact-card a:hover {
  color: var(--secondary);
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
    }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
    }
    
/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
    }

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

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 0 1rem;
  }
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
    }

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: var(--text-primary);
  transform: translateY(-3px);
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

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

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

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  .section-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

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

  .skill-name {
    font-size: 0.95rem;
  }

  .portfolio-title {
    font-size: 1.1rem;
  }

  .portfolio-description {
    font-size: 0.9rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

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

  .form-group input,
  .form-group textarea {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .education-card {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }

  .education-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin: 0 auto;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    display: none; /* Hide gradient orbs on very small screens for performance */
  }

  .scroll-indicator {
    display: none; /* Hide scroll indicator on mobile */
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .filter-btn,
  .portfolio-link,
  .social-link {
    min-height: 44px; /* Minimum touch target size */
    min-width: 44px;
  }

  .hamburger {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 2rem;
  }

  .hero-content {
    gap: 1.5rem;
  }
}
