:root {
  --primary: #4f46e5;
  --secondary: #6366f1;
  --accent: #10b981;
  --accent2: #06b6d4;
  --dark: #0f172a;
  --darker: #030712;
  --light: #f8fafc;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --bg-gradient: linear-gradient(135deg, #4f46e5, #6366f1);
  --name-gradient: linear-gradient(90deg, #10b981, #06b6d4);
  --card-bg: #1e293b;
  --section-bg: #111827;
  --border-radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--darker);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: var(--dark);
  color: white;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: var(--name-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 10px 0;
  position: relative;
}

.logo::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 5px;
  left: 0;
  background: var(--name-gradient);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.logo:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--darker);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top right,
    rgba(79, 70, 229, 0.15),
    transparent 50%
  );
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at bottom left,
    rgba(16, 185, 129, 0.15),
    transparent 50%
  );
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.hero-image img {
  max-width: 350px;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
  border: 3px solid;
  border-image: var(--name-gradient);
  border-image-slice: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--light);
  line-height: 1.2;
}

.gradient-text {
  background: var(--name-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  padding: 0 5px;
}

.gradient-text::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--name-gradient);
  border-radius: 3px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--darker);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

/* About Section */
.about {
  padding: 120px 0;
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--light);
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--accent);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--muted);
}

.skills {
  flex: 1;
  min-width: 300px;
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.progress-container {
  margin-bottom: 25px;
}

.progress-container:last-child {
  margin-bottom: 0;
}

.progress-container p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-bar {
  height: 10px;
  background: var(--darker);
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 5px;
  width: 0;
  transition: width 1.5s ease;
  position: relative;
}

.progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Experience Section */
.experience {
  padding: 120px 0;
  background-color: var(--darker);
  position: relative;
}

.experience::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--card-bg);
  border: 3px solid var(--accent);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2);
}

.timeline-item:nth-child(odd)::after {
  right: -15px;
}

.timeline-item:nth-child(even)::after {
  left: -15px;
}

.timeline-content {
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.timeline-content h4 {
  margin-bottom: 15px;
  color: var(--light);
  font-size: 1.1rem;
  font-weight: 500;
}

.timeline-content ul {
  list-style-position: inside;
  margin-top: 15px;
  color: var(--muted);
}

.timeline-content li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  list-style-type: none;
}

.timeline-content li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Education Section */
.education {
  padding: 120px 0;
  background-color: var(--dark);
  position: relative;
}

/* Projects Section */
.projects {
  padding: 120px 0;
  background-color: var(--dark);
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.projects::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(50px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  margin-bottom: 15px;
  color: var(--light);
  font-size: 1.3rem;
}

.project-info p {
  color: var(--muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag:hover {
  background-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background-color: var(--darker);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--light);
}

.contact-info p {
  margin-bottom: 20px;
  color: var(--muted);
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: var(--darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 0;
  text-align: center;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: var(--light);
  margin: 0 15px;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-5px);
}

footer p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsive */
@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0;
    height: 92vh;
    top: 8vh;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 1;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .hero-text {
    margin-top: 50px;
  }

  .nav-links li {
    opacity: 0;
    margin: 20px 0;
  }

  .hamburger {
    display: block;
  }

  .nav-active {
    transform: translateX(0%);
  }

  @keyframes navLinkFade {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 18px;
  }
}
