/* Variables */
:root {
  --primary-color: #4361ee;
  --secondary-color: #3a0ca3;
  --accent-color: #4cc9f0;
  --dark-color: #1d3557;
  --light-color: #f8f9fa;
  --text-color: #333;
  --body-bg: #f8f9fa;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-color);
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

section {
  padding: 100px 0;
}

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

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

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

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

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

.small-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 0;
  z-index: 1000;
  background-color: rgba(248, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  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;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

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

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

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

.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, .nav-links a.active {
  color: var(--primary-color);
}

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

.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);
}

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

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.hero-text h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  box-shadow: var(--shadow);
  z-index: 2;
  position: relative;
}

.hero-image .shape {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -20px;
  left: 20px;
  background-color: var(--primary-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 1;
  opacity: 0.6;
}

/* About Section */
.about {
  background-color: white;
}

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

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 2;
  position: relative;
}

.about-image .shape {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: -20px;
  right: 20px;
  background-color: var(--accent-color);
  border-radius: var(--border-radius);
  z-index: 1;
  opacity: 0.6;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--dark-color);
}

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

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.detail i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.detail h4 {
  font-weight: 600;
  margin-bottom: 5px;
}

/* Certifications with Horizontal Scrolling */
.certifications {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.certification-filters {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cert-filter-btn {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid #ddd;
  padding: 8px 15px;
  margin: 0 5px 10px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cert-filter-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.cert-filter-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.certifications-carousel {
  margin-top: 20px;
}

.row-container {
  position: relative;
}

.cert-row {
  margin-bottom: 40px;
  position: relative;
  display: block;
}

.cert-row-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.cert-row-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

[data-priority-row="high"] .cert-row-title {
  color: #e74c3c;
}

[data-priority-row="high"] .cert-row-title::after {
  background-color: #e74c3c;
}

[data-priority-row="medium"] .cert-row-title {
  color: #f39c12;
}

[data-priority-row="medium"] .cert-row-title::after {
  background-color: #f39c12;
}

[data-priority-row="low"] .cert-row-title {
  color: #3498db;
}

[data-priority-row="low"] .cert-row-title::after {
  background-color: #3498db;
}

.cert-row-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 5px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  position: relative;
  gap: 20px;
}

.cert-row-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.certification-card {
  flex: 0 0 auto;
  width: 300px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.certification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certification-icon {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.certification-content h3 {
  color: var(--text-dark);
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: 600;
  line-height: 1.4;
}

.certification-content h4 {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 10px;
}

.certification-date {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 10px;
}

.cert-link {
  display: inline-block;
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 10px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.cert-link:hover {
  color: var(--primary-dark);
}

.scroll-indicator {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.scroll-arrow:hover {
  background-color: var(--primary-color);
  color: #fff;
  opacity: 1;
}

.scroll-arrow.left {
  left: -20px;
}

.scroll-arrow.right {
  right: -20px;
}

/* Hide rows based on filter */
.cert-row.hidden {
  display: none;
}

/* For very small screens, make cards smaller */
@media (max-width: 576px) {
  .certification-card {
      width: 260px;
  }
  
  .scroll-arrow {
      width: 30px;
      height: 30px;
      font-size: 12px;
  }
  
  .scroll-arrow.left {
      left: -15px;
  }
  
  .scroll-arrow.right {
      right: -15px;
  }
}

/* Skills Section */
.skills {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);
}

.skills-content {
  display: flex;
  gap: 40px;
}

.skill-category, .soft-skills {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.skill-category h3, .soft-skills h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--dark-color);
  text-align: center;
}

.skill-bar {
  margin-bottom: 25px;
}

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

.skill-info span {
  font-weight: 500;
}

.progress-line {
  position: relative;
  height: 10px;
  background-color: #e6e6e6;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

.progress-line span {
  position: absolute;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
}

@keyframes animate {
  100% {
      transform: scaleX(1);
  }
}

.progress-line .js {
  width: 85%;
}

.progress-line .python {
  width: 80%;
}

.progress-line .react {
  width: 75%;
}

.progress-line .nodejs {
  width: 70%;
}

.progress-line .cpp {
  width: 65%;
}

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

.soft-skill {
  text-align: center;
  background-color: rgba(67, 97, 238, 0.05);
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.soft-skill:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.soft-skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
}

.soft-skill h4 {
  font-weight: 600;
}

/* Experience Section with Timeline */
.experience {
  background-color: white;
}

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

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-date {
  width: 25%;
  padding: 15px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-date span {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.timeline-content {
  width: 65%;
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
}

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

.timeline-content h4 {
  font-size: 1rem;
  color: var(--dark-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.timeline-content p {
  margin-bottom: 15px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-stack span {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Projects Section */
.projects {
  background: linear-gradient(135deg, rgba(67, 97, 238, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
  gap: 15px;
}

.filter-btn {
  padding: 8px 20px;
  background-color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.project-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
}

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

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

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

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-info p {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.project-tech span {
  background-color: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 10px;
}
  

/* education */

.education {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.education-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

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

.education-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  display: flex;
}

.education-item:nth-child(odd) {
  justify-content: flex-start;
}

.education-item:nth-child(even) {
  justify-content: flex-end;
}

.education-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  top: 25px;
  transform: translateX(-50%);
  z-index: 2;
}

.education-date {
  position: absolute;
  width: 120px;
  text-align: center;
  left: 50%;
  top: 0;
}

.education-item:nth-child(odd) .education-date {
  transform: translateX(70px);
}

.education-item:nth-child(even) .education-date {
  transform: translateX(-190px);
}

.education-date span {
  background-color: var(--primary-color);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
}

.education-content {
  width: 45%;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.education-content h3 {
  color: var(--primary-color);
  font-size: 18px;
  margin-bottom: 5px;
}

.education-content h4 {
  color: var(--text-dark);
  font-size: 16px;
  margin-bottom: 10px;
}

.education-content p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-content {
  display: flex;
  gap: 40px;
}

.contact-info, .contact-form {
  flex: 1;
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-info h3, .contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.contact-info p {
  margin-bottom: 25px;
}

.contact-details {
  margin-bottom: 30px;
}

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

.contact-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
}

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

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

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

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: white;
  transition: var(--transition);
}

.input-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  pointer-events: none;
  transition: var(--transition);
  color: #777;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.input-group input:focus ~ label,
.input-group textarea:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:valid ~ label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background-color: white;
  padding: 0 5px;
  color: var(--primary-color);
}

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

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

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

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

.footer-links a {
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .hero-content,
  .about-content,
  .skills-content,
  .contact-content {
      flex-direction: column;
  }

  .hero-image,
  .about-image {
      margin-top: 40px;
      display: flex;
      justify-content: center;
  }
  
  .about-image {
      order: -1;
  }
  
  .timeline-item {
      flex-direction: column;
      align-items: center;
  }
  
  .timeline-item:nth-child(odd) {
      flex-direction: column;
      align-items: center;
  }
  
  .timeline::before {
      left: 0;
  }
  
  .timeline-dot {
      left: 0;
  }
  
  .timeline-date,
  .timeline-content {
      width: 100%;
      margin-left: 20px;
  }
  
  .timeline-date {
      text-align: left;
      justify-content: flex-start;
      margin-bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background-color: white;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
  }
  
  .nav-links.active {
      left: 0;
  }
  
  .menu-btn {
      display: block;
  }
  
  .hero-text h1 {
      font-size: 2.5rem;
  }
  
  .soft-skills-grid {
      grid-template-columns: 1fr;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .about-details {
      grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  .cta-buttons {
      flex-direction: column;
      gap: 15px;
  }
  
  .cta-buttons .btn {
      width: 100%;
  }
  
  .hero-text h1 {
      font-size: 2rem;
  }
  
  .hero-text h2 {
      font-size: 1.5rem;
  }
  
  .project-filters {
      flex-direction: column;
  }
  
  .timeline-content h3 {
      font-size: 1.1rem;
  }
}