:root {
  --primary: #6c63ff;
  --secondary: #00d4ff;
  --dark: #101828;
  --text: #475467;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(16, 24, 40, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

a {
  text-decoration: none;
}

.section-padding {
  padding: 95px 0;
}

.bg-soft {
  background: var(--soft);
}

.custom-navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 25px rgba(16, 24, 40, 0.06);
}

.navbar-brand {
  color: var(--dark);
  font-size: 28px;
}

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

.nav-link {
  color: var(--dark);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.hero {
  background:
    radial-gradient(circle at top left, rgba(108, 99, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  color: var(--dark);
  font-weight: 800;
}

.hero h2 {
  color: var(--primary);
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 20px;
}

.hero-text {
  max-width: 560px;
  font-size: 18px;
}

.btn-primary-custom,
.btn-outline-custom {
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  margin-right: 10px;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  border: none;
}

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

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

.social-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--primary);
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-right: 10px;
  transition: 0.3s;
}

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

.profile-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 30px;
  padding: 50px 25px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}

.profile-img i {
  font-size: 170px;
  color: var(--primary);
}

.profile-card h3 {
  color: var(--dark);
  font-weight: 800;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.section-title {
  text-align: center;
  margin-bottom: 55px;
}

.section-title p {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title h2 {
  color: var(--dark);
  font-weight: 800;
  font-size: 42px;
}

.about-box,
.service-card,
.project-card,
.edu-card,
.testimonial-card,
.blog-card,
.contact-info,
.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  height: 100%;
  transition: 0.3s;
}

.about-box:hover,
.service-card:hover,
.project-card:hover,
.edu-card:hover,
.testimonial-card:hover,
.blog-card:hover {
  transform: translateY(-8px);
}

.about-box i,
.service-card i {
  font-size: 52px;
  color: var(--primary);
}

.about-box h3,
.service-card h4,
.project-card h4,
.edu-card h4,
.blog-card h4 {
  color: var(--dark);
  font-weight: 800;
  margin-top: 18px;
}

.skill-item {
  background: var(--white);
  padding: 24px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.skill-item > span:first-child {
  color: var(--dark);
  font-weight: 700;
}

.skill-item > span:nth-child(2) {
  float: right;
  font-weight: 700;
  color: var(--primary);
}

.progress {
  height: 10px;
  margin-top: 14px;
  background: #e6e9f2;
  border-radius: 30px;
}

.progress-bar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 30px;
}

.project-thumb {
  height: 180px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 22px;
}

.project-card a,
.blog-card a {
  color: var(--primary);
  font-weight: 700;
}

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

.timeline-item {
  background: var(--white);
  padding: 30px;
  border-left: 5px solid var(--primary);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 25px;
}

.timeline-item h4 {
  color: var(--dark);
  font-weight: 800;
}

.timeline-item span {
  color: var(--primary);
  font-weight: 700;
}

.testimonial-card p {
  font-style: italic;
  font-size: 17px;
}

.testimonial-card h5 {
  color: var(--dark);
  font-weight: 800;
}

.contact-section {
  background: linear-gradient(135deg, #ffffff, #eef4ff);
}

.contact-info p {
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-info i {
  color: var(--primary);
  margin-right: 10px;
}

.contact-form .form-control {
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid #d0d5dd;
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.14);
}

footer {
  text-align: center;
  padding: 25px;
  background: var(--dark);
  color: var(--white);
}

#backToTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
}

#backToTop.show {
  display: flex;
}

@media (max-width: 991px) {
  .section-padding {
    padding: 75px 0;
  }

  .hero {
    text-align: center;
  }

  .hero-text {
    margin: auto;
  }

  .hero-buttons .btn {
    margin-bottom: 12px;
  }
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 34px;
  }

  .profile-img i {
    font-size: 120px;
  }

  .about-box,
  .service-card,
  .project-card,
  .edu-card,
  .testimonial-card,
  .blog-card,
  .contact-info,
  .contact-form {
    padding: 24px;
  }
}
