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

body {
  background: url('background.png') center/cover no-repeat fixed;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: white;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced dark overlay with gradient */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 123, 255, 0.1) 100%);
  z-index: -1;
}

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

/* Enhanced Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  padding: 15px 30px;
  justify-content: flex-end;
  align-items: center;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 25px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

nav ul li a:hover::before {
  left: 100%;
}

nav ul li a:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.menu-button {
  display: none;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  z-index: 999;
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 123, 255, 0.1) 100%);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar li {
  width: 100%;
  margin: 5px 0;
}

.sidebar a {
  width: 100%;
  display: block;
  padding: 15px 25px;
  transition: all 0.3s ease;
}

.sidebar a:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateX(10px);
}

/* Enhanced Home Section */
.home-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  text-align: center;
  padding-top: 80px;
  animation: fadeInUp 1s ease-out;
}

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

.home-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
  }
}

.home-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.line {
  width: 2px;
  height: 25px;
  background: linear-gradient(to bottom, transparent, #007bff, transparent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

/* Enhanced About Section */
#about {
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 1200px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.about-container:hover {
  transform: translateY(-10px);
}

.about-content {
  flex: 1;
  padding: 20px;
  text-align: left;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

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

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(45deg, #007bff, #00d4ff, #007bff);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 10s linear infinite;
}

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

.about-image img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.download-btn {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

/* Enhanced Education Section */
#education {
  padding: 100px 20px;
  text-align: center;
}

#education h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.education-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.education-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 350px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
}

.education-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 123, 255, 0.2);
}

.education-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.education-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.education-card:hover .education-icon img {
  transform: scale(1.1) rotate(5deg);
}

.education-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
  font-weight: 700;
}

.education-info .institution {
  font-size: 1.2rem;
  color: #007bff;
  margin-bottom: 8px;
  font-weight: 600;
}

.education-info .duration {
  font-size: 1rem;
  color: #666;
  margin-bottom: 15px;
  font-style: italic;
}

.education-info .description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Enhanced Projects Section */
#projects {
  padding: 100px 20px;
  text-align: center;
}

#projects h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.9);
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 123, 255, 0.2);
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: '🚀';
  font-size: 4rem;
  opacity: 0.3;
}

.project-info {
  padding: 25px;
  text-align: left;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
  font-weight: 700;
}

.project-info .description {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.technologies {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technologies span {
  background: linear-gradient(135deg, #333, #555);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.technologies span:hover {
  transform: scale(1.05);
}

.project-link {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

/* Enhanced Contact Section */
#contact {
  padding: 100px 20px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  color: #333;
  transition: transform 0.3s ease;
}

.contact-info:hover,
.contact-form:hover {
  transform: translateY(-5px);
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #007bff;
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

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

.contact-form button {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

/* Enhanced Skills Section */
.interests {
  padding: 100px 20px 50px;
  text-align: center;
}

.interests h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interests ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

.interests li {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.interests li:hover {
  background: rgba(0, 123, 255, 0.2);
  transform: translateX(10px);
}

#skills {
  padding: 50px 20px 100px;
  display: flex;
  justify-content: center;
}

.programming-languages {
  width: 100%;
  max-width: 700px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  color: #333;
}

.programming-languages h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #007bff;
  font-weight: 700;
}

.skill-item {
  margin-bottom: 25px;
  text-align: left;
}

.skill-item span {
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
}

.progress-bar {
  height: 12px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}

.progress {
  height: 12px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  border-radius: 10px;
  transition: width 2s ease-in-out;
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hideOnMobile {
    display: none;
  }
  
  .menu-button {
    display: block;
  }

  nav ul {
    padding: 15px 20px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 30px 20px;
  }

  .contact-container {
    flex-direction: column;
    gap: 30px;
  }

  .education-container,
  .projects-container {
    gap: 20px;
  }

  .education-card,
  .project-card {
    width: 100%;
    max-width: 400px;
  }

  .home-content {
    padding: 100px 20px 20px;
  }

  .divider {
    flex-direction: column;
    gap: 10px;
  }

  .line {
    width: 25px;
    height: 2px;
  }
}

@media (max-width: 500px) {
  .sidebar {
    width: 100%;
  }
  
  .menu-button {
    display: block;
  }

  .about-container,
  .contact-info,
  .contact-form,
  .programming-languages {
    padding: 25px 15px;
  }

  .home-content h2 {
    font-size: 2rem;
  }

  #education h2,
  #projects h2,
  .interests h2 {
    font-size: 2rem;
  }
}

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000 0%, #007bff 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}