/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
  --first-color: #0e2431;
  --second-color: #6a59d1;
  --third-color: #777;
  --hover-color: #614fd0;

  --body-bg-color: #fefefe;
  --card-bg-color: #fff;
  --modal-bg-color: #fff;
  --line-color: #d7d7d7;

  --box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Overrides */
body.dark-theme {
  --body-bg-color: #0e2431;
  --card-bg-color: #1c2b3a;
  --modal-bg-color: #1c2b3a;
  --first-color: #ffffff;
  --second-color: #7b8dfb;
  --hover-color: #5b6cd3;
  --third-color: #aaa;
  --line-color: #444;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--body-bg-color);
  color: var(--first-color);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

ul {
  list-style: none;
}

/* Utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.section {
  padding: 100px 0;
}

.section-title-01 {
  font-size: 5rem;
  opacity: 0.05;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-title-02 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--card-bg-color);
  box-shadow: var(--box-shadow);
  z-index: 1000;
}

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

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.nav-links a {
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--second-color);
}
/* Home Section */
.home {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 120px;
  position: relative;
}

.home-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 2rem;
}

/* Social Media Icons */
.home-social {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.home-social a {
  font-size: 1.2rem;
  color: var(--second-color);
  transition: color 0.3s;
}

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

/* Home Info */
.home-info {
  max-width: 500px;
}

.home-info h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.home-info h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--third-color);
  margin-bottom: 20px;
}

.home-info p {
  font-size: 1rem;
  color: var(--third-color);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Call-to-Action Button */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--second-color);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

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

/* Home Image */
.home-image {
  position: relative;
  width: 300px;
}

.home-image img {
  width: 100%;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.home-image .shape {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 110%;
  z-index: 0;
  opacity: 0.1;
}

/* Scroll Down */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  color: var(--third-color);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: color 0.3s;
}

.scroll-down:hover {
  color: var(--second-color);
}
/* About Section */
.about-container {
  position: relative;
}

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

.about-img img {
  width: 260px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.about-info {
  flex: 1;
  min-width: 280px;
}

.about-info h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.about-info h4 {
  font-size: 1.2rem;
  color: var(--third-color);
  margin-bottom: 16px;
}

.about-info h4 span {
  color: var(--second-color);
}

.about-info p {
  font-size: 1rem;
  color: var(--third-color);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Stats List */
.about-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.about-stats li {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.about-stats h3 {
  font-size: 2rem;
  color: var(--second-color);
}

.about-stats span {
  font-size: 0.9rem;
  color: var(--third-color);
}
/* Skills Section */
.skills-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.skill-card {
  background: var(--card-bg-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  text-align: center;
  width: 140px;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
}

.skill-card img {
  width: 50px;
  margin-bottom: 10px;
}

.skill-card p {
  font-weight: 500;
  font-size: 1rem;
  color: var(--first-color);
}

/* Education Section */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-card {
  background: var(--card-bg-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  text-align: left;
}

.education-card h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.education-card p {
  font-size: 0.95rem;
  color: var(--third-color);
  margin-bottom: 10px;
}

/* Progress Bar */
.bar {
  background: var(--line-color);
  height: 10px;
  border-radius: 50px;
  overflow: hidden;
}

.progress {
  background: var(--second-color);
  height: 100%;
  color: #fff;
  font-size: 0.8rem;
  text-align: right;
  padding-right: 10px;
  line-height: 10px;
  border-radius: 50px;
  width: 0;
  transition: width 1.5s ease-in-out;
}
/* Services Section */
.services-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.service-card {
  background: var(--card-bg-color);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  text-align: center;
  width: 260px;
  transition: transform 0.3s ease, background 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--hover-color);
  color: #fff;
}

.service-card img {
  width: 50px;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: inherit;
  line-height: 1.5;
}

/* Portfolio Section */
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.portfolio-item {
  background: var(--card-bg-color);
  box-shadow: var(--box-shadow);
  border-radius: 10px;
  overflow: hidden;
  width: 250px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.03);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-item p {
  padding: 10px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--first-color);
}

/* Project Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.project-modal.active {
  display: flex;
}

.modal-content {
  background: var(--modal-bg-color);
  color: var(--first-color);
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: var(--box-shadow);
  text-align: center;
}

.modal-content img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--second-color);
}
/* Clients Section */
.client-swiper {
  max-width: 600px;
  margin: auto;
  padding-top: 20px;
  padding-bottom: 40px;
}

.swiper-slide.client-box {
  background: var(--card-bg-color);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  min-height: 200px;
  transition: transform 0.3s ease;
}

.swiper-slide.client-box:hover {
  transform: translateY(-5px);
}

.swiper-slide.client-box img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--second-color);
}

.swiper-pagination {
  margin-top: 1rem;
}

/* Contact Section */
.contact-info p {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--first-color);
}

/* Footer */
.footer {
  background: var(--card-bg-color);
  color: var(--first-color);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Scroll to Top & Theme Toggle */
.scrollToTop-btn,
.theme-btn {
  position: fixed;
  width: 42px;
  height: 42px;
  bottom: 20px;
  right: 20px;
  background: var(--second-color);
  color: #fff;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1100;
}

.theme-btn {
  bottom: 75px;
  background: var(--card-bg-color);
  color: var(--second-color);
  box-shadow: var(--box-shadow);
  display: flex;
}

.scrollToTop-btn.show {
  display: flex;
}

/* Responsive Media Queries */
@media screen and (max-width: 1070px) {
  .home-container,
  .about-content,
  .services-grid,
  .skills-grid,
  .portfolio-grid {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section-title-01 {
    font-size: 3rem;
  }

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

  .home-image {
    margin-top: 2rem;
  }

  .about-stats {
    justify-content: center;
  }
}

@media screen and (max-width: 600px) {
  .logo {
    font-size: 1.2rem;
  }

  .home-info h1 {
    font-size: 2rem;
  }

  .home-info h2 {
    font-size: 1.2rem;
  }

  .skill-card,
  .service-card,
  .portfolio-item {
    width: 90%;
    max-width: 300px;
  }
}
