/* Global Styles */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7e22ce;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --transition: all 0.4s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  position: relative;
  margin-bottom: 60px;
}

h2:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--light);
  color: var(--light);
  margin-left: 15px;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

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

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
}

/* Home Section */
#home {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.9),
      rgba(126, 34, 206, 0.8)
    ),
    url("https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80")
      no-repeat center center/cover;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 1s forwards 0.5s;
}

.typed-text {
  color: #ffd43b;
  font-weight: 600;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeIn 1s forwards 1s;
}

.hero-btns {
  opacity: 0;
  animation: fadeIn 1s forwards 1.5s;
}

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

/* About Section */
#about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-img {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateX(-50px);
  transition: var(--transition);
}

.about-img.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-img img {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
  opacity: 0;
  transform: translateX(50px);
  transition: var(--transition);
}

.about-content.visible {
  opacity: 1;
  transform: translateX(0);
}

.about-content h3 {
  font-size: 1.8rem;
  color: var(--primary);
}

.skills {
  margin-top: 30px;
}

.skill {
  margin-bottom: 25px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
  width: 0;
  transition: width 1.5s ease;
}

/* Projects Section */
#projects {
  background: #f1f5f9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
  height: 220px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-content {
  padding: 25px;
}
.project-heading{
  display: flex;
  gap: 20px;
}
.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.project-heading .year-badge {
  background: var(--gray);
  color: var(--light);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.project-tag {
  background: #e0f2fe;
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.project-links a:hover {
  color: var(--primary-dark);
}

/* Experience Section */
#experience .container{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: calc(50% - 30px);
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  float: left;
  clear: right;
}

.timeline-item:nth-child(even) {
  float: right;
  clear: left;
}

.timeline-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
}

.timeline-content:after {
  content: "";
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content:after {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-content:after {
  left: -10px;
}

.timeline-content h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.timeline-date {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Contact Section */
#contact {
  background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
}

.contact-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info {
  opacity: 0;
  transform: translateX(-30px);
}

.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-5px);
  background: var(--primary-dark);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(30px);
}

.contact-form.visible {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  #about .container {
    flex-direction: column;
  }

  .about-img,
  .about-content {
    width: 100%;
  }

  .timeline:before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    float: none;
    clear: both;
  }

  .timeline-item:nth-child(even) .timeline-content:after {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: white;
    width: 100%;
    padding: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

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

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

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

@media (max-width: 576px) {
  section {
    padding: 70px 0;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
  }

  .btn-outline {
    margin-left: 0;
  }

}
