/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e293b;
  --background-color: #f8fafc;
  --text-color: #334155;
  --accent-color: #10b981;
  --light-color: #e2e8f0;
  --white: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 16px;
}

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

.primary-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

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

.section-title span {
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  float: left;
}

.logo image {
  float: left;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

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

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

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

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 150px 0 100px;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.name {
  font-size: 3.5rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.highlight {
  color: var(--primary-color);
}

.title {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 20px;
  min-height: 60px;
}

.description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 1.2rem;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-5px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-wrapper {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.about-text p {
  margin-bottom: 20px;
  text-align: justify;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  max-width: 500px;
}

.stat-item {
  text-align: center;
}

.stat-item h4 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-color);
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Skills Section */
.skills {
  padding: 100px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skill-item {
  margin-bottom: 30px;
}

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

.skill-info h3 {
  font-size: 1.1rem;
}

.skill-info span {
  font-weight: 600;
  color: var(--primary-color);
}

.skill-bar {
  height: 10px;
  background-color: var(--light-color);
  border-radius: 5px;
  overflow: hidden;
}

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

/* Experience Section */
.experience {
  padding: 100px 0;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

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

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

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

.timeline-date {
  position: absolute;
  top: 10px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.timeline-item:nth-child(odd) .timeline-date {
  right: -225px;
  text-align: right;
  width: 200px;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -245px;
  width: 210px;
}

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

.timeline-content h4 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 500;
}
.timeline-content p {
  font-size: 11px;
  margin-bottom: 10px;
  text-align: justify;
}
.timeline-content a {
  display: block;
  font-size: 12px;
  padding-bottom: 10px;
  color: var(--primary-color);
}
.timeline-content a:hover {
  color: var(--secondary-color);
}


/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--white);
}

.contact-content {
  display: grid;
    width: 100%;
}

.contact-info {
  display: flex;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  gap: 20px;
  width: 33%;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

/* Footer */
.footer {
  padding: 30px 0;
  background-color: var(--secondary-color);
  color: var(--white);
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.back-to-top:hover {
  background-color: #1d4ed8;
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero .container {
      flex-direction: column;
      text-align: center;
  }
  
  .hero-buttons {
      justify-content: center;
      flex-flow: column;
  }
  
  .social-icons {
      justify-content: center;
  }
  
  .about-content {
      flex-direction: column;
  }
  
  .skills-grid {
      grid-template-columns: 1fr;
  }
    
  .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) .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
      left: 75px;
      right: auto;
      text-align: left;
      top: -30px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
      left: -10px;
      right: auto;
  }
  
  .contact-content {
      flex-direction: column;
  }
  .stat-item p {
    text-align: center;
  }
  .primary-btn {
    width: 100%;
    text-align: center;
  }
  .about-text h3 {
    font-size: 1.2rem;
  }
  
  .contact-info {
    flex-flow: wrap;
  }
  .contact-info  .info-item{
    width: 50%;
  }
}

@media (max-width: 768px) {
  .nav-links {
      display: none;
      width: 100%;
  }
  
  .name {
      font-size: 2.1rem;
  }
  
  .title {
      font-size: 1.5rem;
      text-align: center;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .footer .container {
      flex-direction: column;
      gap: 20px;
  }
  .contact-info {
    display: block;
  }
 
  .contact-info  .info-item{
    width: 100%;
  }
  .navbar .container{
    display: block;
  }
  
  .menu-btn {
      display: block;
      position: absolute;
      right: 30px;
      top: 30px;
      font-size: 35px;
  }
  
}

@media (max-width: 576px) {
  .hero {
      padding: 120px 0 80px;
  }
  
  .stats {
      flex-direction: column;
      gap: 20px;
  }
  
}