:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --gradient-1: #6366f1;
  --gradient-2: #8b5cf6;
  --gradient-3: #d946ef;
  --bg-dark: #0f172a;
  --bg-light: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  color: var(--light);
  line-height: 1.6;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(99, 102, 241, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(139, 92, 246, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(217, 70, 239, 0.05) 0%,
      transparent 20%
    );
  z-index: -1;
}

/* Navigation */
nav {
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Header/Hero Section */
header {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-light) 100%);
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 40%
    );
  z-index: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  color: white;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--light-gray);
  font-weight: 500;
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--light-gray);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  color: white;
  border: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-2), var(--gradient-3));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(248, 250, 252, 0.7);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: border-color 0.3s;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-outline:hover {
  border-color: var(--primary);
}

.btn-outline:hover::before {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* Main Content Sections */
section {
  padding: 5rem 2rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--light);
  z-index: 1;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--gradient-1),
    var(--gradient-2),
    var(--gradient-3)
  );
  border-radius: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* About Section */
#about {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(30, 41, 59, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 5% 10%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 95% 90%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 30%
    );
  z-index: 0;
}

.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.about-text {
  flex: 2;
}

.about-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--light);
  position: relative;
  display: inline-block;
}

.about-text h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
  border-radius: 3px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: rgba(248, 250, 252, 0.8);
}

/* Updated Skills Section Styling */
.skills-container {
  margin-top: 2rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  background-color: #f0f4f8;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a5568;
  transition: all 0.3s ease;
  border-left: 3px solid #3182ce;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #e6f7ff;
}

.skill-icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  color: #3182ce;
  width: 20px;
  text-align: center;
}

/* Experience Section */
#experience {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.9) 0%,
    rgba(15, 23, 42, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

#experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 95% 20%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 5% 80%,
      rgba(217, 70, 239, 0.1) 0%,
      transparent 30%
    );
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--primary);
  border: 4px solid var(--primary);
  top: 22px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::after {
  right: -10px;
}

.right::after {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}

.timeline-content p {
  color: rgba(248, 250, 252, 0.8);
}

.timeline-content ul {
  color: rgba(248, 250, 252, 0.8);
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
}

/* Projects Section */
#projects {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95) 0%,
    rgba(30, 41, 59, 0.95) 100%
  );
  position: relative;
  overflow: hidden;
}

#projects::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(217, 70, 239, 0.1) 0%,
      transparent 30%
    );
  z-index: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: black;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background-color: var(--light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-description {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* Contact Section */
#contact {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.9) 0%,
    rgba(15, 23, 42, 0.9) 100%
  );
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 80% 10%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 10% 60%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 30%
    );
  z-index: 0;
}

.contact-container {
  display: flex;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 2;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.contact-info p {
  color: white;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: white;
}

.contact-item i {
  color: white;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: white;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
}

.btn-submit:hover {
  background-color: var(--primary-dark);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  color: white;
  font-size: 1.25rem;
}

.footer-social a:hover {
  color: var(--primary);
}

.copyright {
  color: var(--gray);
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .skills-grid {
    justify-content: center;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .right {
    left: 0%;
  }

  .contact-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
