:root {
  --bg-color: #030014;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.1);
  --primary: #7c3aed;
  --primary-glow: rgba(124, 58, 237, 0.3);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.3);
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --container-max: 1200px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(80px);
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: move 20s infinite alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  bottom: -50px;
  right: -50px;
  animation-delay: -5s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #db2777;
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes move {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(100px, 100px) scale(1.1);
  }
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}

#navbar.scrolled {
  height: 60px;
  background: rgba(3, 0, 20, 0.8);
}

.nav-content {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Sections */
.section-padding {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  font-family: "Outfit", sans-serif;
  position: relative;
  display: inline-block;
}

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

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-content h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: "Outfit", sans-serif;
  letter-spacing: -2px;
}

.tagline {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text-dim);
}

.highlight {
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 2px solid var(--secondary);
}

.hero .description {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* Buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--primary-glow);
}

.btn-secondary {
  background: var(--card-bg);
  color: white;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* About Cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-card i {
  color: var(--primary);
  margin-bottom: 1.5rem;
  width: 32px;
  height: 32px;
}

.about-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.about-card p,
.about-card ul {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.about-card ul {
  list-style: none;
}

.about-card li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
}

/* Skills */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--text-dim);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-tags span {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tags span:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 4rem;
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
}

.timeline-content .date {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.timeline-content h3 {
  margin-bottom: 0.3rem;
}

.timeline-content .role {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
}

.project-info {
  padding: 2rem;
  flex-grow: 1;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.project-date {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

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

.project-tags span {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  color: var(--text-dim);
}

/* Footer */
footer {
  padding-top: 6rem;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--card-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 4rem;
}

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

.footer-info p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-links a {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}
.delay-4 {
  transition-delay: 0.8s;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 4rem;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .nav-links {
    display: none;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Timeline Mobile Adjustments */
  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 35px;
    margin-bottom: 2.5rem;
  }

  .timeline-dot {
    left: 2.5px;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
}
