/* Base Styles */
:root {
  --primary-color: #4a89dc;
  --secondary-color: #5c6bc0;
  --dark-color: #333;
  --light-color: #f4f4f4;
  --danger-color: #dc3545;
  --success-color: #28a745;
  --bg-color: #fff;
  --text-color: #333;
  --border-color: #ddd;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

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

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

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255);
  z-index: 1000;
  box-shadow: var(--shadow-light);
}

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

.logo {
  margin-left: 15px;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--hack-dark);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 36px;
  margin-right: 10px;
}

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

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

.nav-links ul li a {
  text-decoration: none;
  color: var(--hack-dark);
  font-weight: 600;
  transition: var(--transition);
}

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

.fa-bars,
.fa-times {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}
#closeMenu {
  display: none;
}
#menuIcon {
  display: none;
  margin-right: 15px;
}
/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background-color: var(--light-color);
}

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

.hero-content {
  flex: 1;
}
.hero-text {
  padding-left: 40px;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--hack-gray);
}

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

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 40px;
}

.hero-image img {
  width: 400px;
  height: 300px;
  object-fit: cover;
  max-width: 90%;
}

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

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  overflow: hidden;
  background: linear-gradient(to right, var(--bg-color), #eef2ff);
}

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

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text h1 span {
  display: block;
  color: var(--primary-color);
}

.hero-text h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

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

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

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--box-shadow);
  border: 5px solid white;
  width: 80%;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-image {
  flex: 1;
  text-align: center;
}

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

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.skills h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}
.skills-list img {
  width: 40px;
  height: 40px;
}
.skills-list span {
  margin-right: 15px;

  border-radius: 50px;
}

/* Education Section */
.education {
  padding: 5rem 0;
  background: var(--light-color);
}

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

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  width: calc(50% - 30px);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  top: 10px;
  left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  top: 10px;
  right: -10px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-date {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.timeline::before {
  left: 20px;
}

.timeline-content {
  width: calc(100% - 50px);
  margin-left: 50px !important;
}

.timeline-item:nth-child(odd) .timeline-content::before,
.timeline-item:nth-child(even) .timeline-content::before {
  left: -10px;
  right: auto;
}

.timeline-dot {
  left: 20px;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--light-color);
  color: var(--dark-color);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

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

.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.project-img {
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: #666;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tech span {
  background: var(--light-color);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  font-size: 0.9rem;
  transition: var(--transition);
}

.project-links a:hover {
  transform: translateY(-3px);
  background: var(--secondary-color);
}

/* Achievements/Certificates Section */
.achievements {
  padding: 5rem 0;
  background: var(--light-color);
}

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

.slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

.slide {
  min-width: 100%;
  transition: var(--transition);
}

.certificate-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin: 0 10px;
}

.certificate-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.certificate-info {
  padding: 1.5rem;
  text-align: left;
}

.certificate-info h3 {
  margin-bottom: 0.8rem;
}

.certificate-date {
  color: #888;
  margin-top: 0.5rem;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--primary-color);
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 1rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active,
.dot:hover {
  background: var(--primary-color);
} /* Owl Carousel Styles */
.achievement-carousel .owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 20px;
}

.achievement-carousel .owl-nav button {
  width: 45px;
  height: 45px;
  border-radius: 50% !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.achievement-carousel .owl-nav button:hover {
  background-color: var(--secondary-color) !important;
}

.achievement-carousel .owl-nav button span {
  font-size: 28px;
  line-height: 0;
  position: relative;
  top: -4px;
}

.achievement-carousel .owl-dots {
  margin-top: 20px;
  text-align: center;
}

.achievement-carousel .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #ccc;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

.achievement-carousel .owl-dots .owl-dot.active span {
  background: var(--primary-color);
}

.certificate-card {
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background: white;
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
}
/* Contact Section */
.contact {
  padding: 5rem 0;
}

.contact-content {
  display: flex;
  gap: 3rem;
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--light-color);
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: var(--transition);
}

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

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

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.7rem;
  border-radius: 5px;
  text-align: center;
}

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

.error {
  background: var(--danger-color);
  color: white;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

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

  .hero-btns {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-content {
    flex-direction: column;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px !important;
  }

  .timeline-item:nth-child(odd) .timeline-content::before,
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .certificate-card:hover {
    transform: translateY(0px);
  }
  #menuIcon {
    display: block;
  }
  .navbar h1 {
    font-size: 1.4rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
  }

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

  .nav-links ul {
    flex-direction: column;
    text-align: center;
  }

  .nav-links ul li {
    margin: 15px 0;
  }

  .fa-bars,
  .fa-times {
    display: block;
  }

  .fa-times {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  .certificate-card img {
    min-height: 300px;
    height: auto;
  }
  .nav-menu li {
    margin: 1rem 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .personal-info {
    grid-template-columns: 1fr;
  }
  .hero-text {
    padding-left: 0;
    text-align: left;
  }
  .hero-image {
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .project-container {
    grid-template-columns: 1fr;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }
  .certificate-card img {
    min-height: 300px;
    height: auto;
  }
  .btn {
    width: 100%;
  }
}
