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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #e2e8f0;
  background-color: #0a0a0a;
  min-height: 100vh;
}

/* Header styles */
header {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #243447 100%);
  padding: 3rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 40vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.header-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #a0aec0;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(99, 179, 237, 0.08) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

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

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

.hero-text {
  animation: slideInLeft 1s ease-out;
}

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

.floating-elements {
  position: relative;
  width: 200px;
  height: 200px;
}

.floating-elements > div {
  position: absolute;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code-snippet {
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  font-size: 24px;
  animation: float 3s ease-in-out infinite;
}

.tech-icon {
  top: 80px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 20px;
  animation: float 3s ease-in-out infinite 1s;
}

.data-icon {
  bottom: 30px;
  left: 40px;
  width: 55px;
  height: 55px;
  background: rgba(99, 179, 237, 0.2);
  color: #63b3ed;
  font-size: 22px;
  animation: float 3s ease-in-out infinite 2s;
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.role {
  font-size: 1.4rem;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tagline {
  font-size: 1.1rem;
  color: #a0aec0;
  font-style: italic;
  opacity: 0.9;
}

/* Section styles */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#about {
  padding: 4rem 2rem;
  margin: -2rem auto 2rem;
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.about-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
  border-radius: 2rem;
  padding: 3rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.about-icon {
  font-size: 4rem;
  opacity: 0.8;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
  text-align: left;
}

.about-main {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.about-journey {
  font-size: 1.1rem;
  color: #a0aec0;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tag {
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Projects section */
#projects {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  position: relative;
}

#projects h2::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  border-radius: 2px;
}

.project {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(45, 45, 45, 0.95) 100%);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.3);
}

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

.project h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.project p {
  margin-bottom: 1.5rem;
  color: #a0aec0;
}

.stack {
  margin-bottom: 2rem;
}

.stack p {
  color: #a0aec0;
  margin-bottom: 0.5rem;
}

.stack b {
  color: #fff;
  font-weight: 600;
}

.stack i {
  font-size: 1.5rem;
}

/* Button and link styles */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 2rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.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 ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

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

.link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  text-decoration: none;
  border-radius: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(96, 165, 250, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 500;
}

.link:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

/* Footer styles */
footer {
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #243447 100%);
  color: #666;
  padding: 1.5rem 2rem;
  text-align: center;
  margin-top: 3rem;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding: 2rem 1.5rem;
    min-height: 35vh;
  }

  .header-social {
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }

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

  .hero-visual {
    order: -1;
  }

  .floating-elements {
    width: 120px;
    height: 120px;
  }

  .floating-elements > div {
    font-size: 16px;
  }

  .code-snippet {
    width: 45px;
    height: 45px;
    top: 10px;
    left: 10px;
  }

  .tech-icon {
    width: 40px;
    height: 40px;
    top: 60px;
    right: 5px;
  }

  .data-icon {
    width: 42px;
    height: 42px;
    bottom: 15px;
    left: 25px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .role {
    font-size: 1.2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  section {
    padding: 2rem 1.5rem;
  }

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

  .about-text h2 {
    text-align: center;
  }

  .project {
    padding: 1.5rem;
  }

  .skills-grid {
    justify-content: center;
  }

  .project-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }

  .btn, .link {
    display: inline-block;
    margin: 0;
    text-align: center;
    width: auto;
  }
}