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

body {
  /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; */
  font-family: "Alan Sans", sans-serif;
  background: #0f0f0f;
  color: #f8f9fa;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-weight: 400;
  line-height: 1.6;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 25%,
    #f093fb 50%,
    #f5576c 75%,
    #4facfe 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

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

/* Enhanced glassmorphism overlay */
.glass-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(15px) saturate(180%);
  background: rgba(15, 15, 15, 0.85);
  z-index: -1;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(248, 249, 250, 0.08);
  backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(248, 249, 250, 0.12);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

header.scrolled {
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  /*  font-family: "Alan Sans", sans-serif; */
  font-family: "Alan Sans", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

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

.nav-links a {
  text-decoration: none;
  color: rgba(248, 249, 250, 0.9);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(248, 249, 250, 0.08);
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a.active::after {
  width: 60%;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Sections */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4rem 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* Home Section */
#home {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero-title {
  /*  font-family: "Alan Sans", sans-serif; */
  font-family: "Alan Sans", sans-serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #667eea 50%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* animation: titleFloat 4s ease-in-out infinite alternate; */
  letter-spacing: -0.03em;
  line-height: 0.9;
}

@keyframes titleFloat {
  from {
    transform: translateY(0px) rotate(0deg);
  }
  to {
    transform: translateY(-15px) rotate(0.5deg);
  }
}

.hero-subtitle {
  /* font-family: "Alan Sans", sans-serif; */
  font-family: "Alan Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0.85;
  animation: fadeInUp 1.2s ease 0.6s both;
  letter-spacing: 0.02em;
  color: rgba(248, 249, 250, 0.9);
}

.hero-description {
  font-family: "Alan Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 3.5rem;
  opacity: 0.8;
  line-height: 1.8;
  animation: fadeInUp 1.2s ease 1.2s both;
  max-width: 600px;
  color: rgba(248, 249, 250, 0.8);
}

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

.btn {
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 60px;
  font-family: "Alan Sans", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: rgba(248, 249, 250, 0.08);
  color: rgba(248, 249, 250, 0.9);
  border: 2px solid rgba(248, 249, 250, 0.2);
  backdrop-filter: blur(10px);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary:hover {
  background: rgba(248, 249, 250, 0.12);
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow: 0 15px 40px rgba(248, 249, 250, 0.1);
}

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

/* About Section */
#about {
  background: rgba(0, 0, 0, 0.2);
}

.about-container {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: white;
  animation: avatarFloat 4s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%,
  100% {
    transform: rotate(0deg) translateY(0px);
  }
  50% {
    transform: rotate(5deg) translateY(-20px);
  }
}

.about-text h2 {
  font-family: "Alan Sans", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-text p {
  font-family: "Alan Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.85;
  color: rgba(248, 249, 250, 0.85);
}

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

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-family: "Alan Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #667eea;
  letter-spacing: -0.02em;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.04);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(248, 249, 250, 0.08);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  background: rgba(248, 249, 250, 0.06);
}

.stat-item div:last-child {
  font-family: "Alan Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(248, 249, 250, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* Projects Section */
#projects {
  background: rgba(0, 0, 0, 0.1);
}

.section-title {
  font-family: "Alan Sans", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::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;
}

.project-card:hover::before {
  left: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: #667eea;
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-description {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.project-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #ffffff;
}

/* Skills Section */
#skills {
  background: rgba(0, 0, 0, 0.2);
}

.skills-container {
  max-width: 1000px;
  width: 100%;
}

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

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #667eea;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 500;
}

.skill-bar {
  width: 60%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 10px;
  animation: fillBar 2s ease-in-out;
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--progress);
  }
}

/* Contact Section */
#contact {
  background: rgba(0, 0, 0, 0.3);
}

.contact-container {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

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

.contact-item {
  background: rgba(248, 249, 250, 0.04);
  backdrop-filter: blur(25px) saturate(180%);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(248, 249, 250, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(102, 126, 234, 0.3);
  background: rgba(248, 249, 250, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-item h3 {
  font-family: "Alan Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: rgba(248, 249, 250, 0.95);
  letter-spacing: -0.01em;
}

.contact-item p {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(248, 249, 250, 0.8);
  letter-spacing: 0.01em;
}

.contact-icon {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #667eea;
  transform: translateY(-5px) scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 300px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .avatar {
    width: 200px;
    height: 200px;
    font-size: 4rem;
    margin: 0 auto;
  }

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

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 200px;
    text-align: center;
  }

  nav {
    padding: 1rem;
  }

  section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

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

  .about-text h2 {
    font-size: 2.5rem;
  }
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1001;
}

.scroll-progress {
  height: 100%;
  background: linear-gradient(45deg, #667eea, #764ba2);
  transition: width 0.1s ease;
}

/* Floating elements */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}
