/* =========================================================
   GLOBAL
========================================================= */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #06b6d4;
  --dark: #080b14;
  --dark-2: #101522;
  --dark-3: #171d2d;
  --light: #f8fafc;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --gradient: linear-gradient( 135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100% );
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

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

/* =========================================================
   NAVBAR
========================================================= */

.navbar {
  padding: 18px 0;
  transition: all .3s ease;
  background: rgba(8, 11, 20, .75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  z-index: 1000;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(8, 11, 20, .96);
}

.navbar-brand {
  color: white !important;
  font-size: 20px;
}

.brand-symbol {
  color: var(--secondary);
  margin-right: 7px;
  font-weight: 800;
}

.nav-link {
  color: rgba(255,255,255,.75) !important;
  font-size: 14px;
  font-weight: 500;
  margin: 0 5px;
  transition: .3s;
}

.nav-link:hover, .nav-link.active {
  color: white !important;
}

.btn-primary {
  background: var(--gradient);
  border: 0;
  box-shadow: 0 10px 30px rgba(99,102,241,.25);
  transition: .3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(99,102,241,.35);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
  min-height: 100vh;
  color: white;
  background: radial-gradient( circle at 80% 20%, rgba(99,102,241,.25), transparent 30% ), radial-gradient( circle at 20% 80%, rgba(6,182,212,.12), transparent 30% ), var(--dark);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 50%;
  right: -150px;
  top: 100px;
}

.hero-small-text {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 14px;
}

.hero-content h1 {
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.05;
  font-weight: 800;
  margin: 15px 0;
}

.hero-content h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.3;
  color: #e2e8f0;
  font-weight: 600;
}

.hero-description {
  color: #94a3b8;
  font-size: 17px;
  max-width: 650px;
  margin: 25px 0;
}

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

.hero-buttons .btn {
  padding: 13px 25px;
  border-radius: 8px;
}

.hero-social {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255,255,255,.15);
  transition: .3s;
}

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

/* Profile */

.hero-profile {
  position: relative;
  display: inline-block;
  margin-top: 50px;
}

.profile-ring {
  width: 360px;
  height: 360px;
  max-width: 80vw;
  max-height: 80vw;
  padding: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 80px rgba(99,102,241,.2);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #111827;
  border: 8px solid var(--dark);
}

.profile-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating cards */

.floating-card {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 18px;
  background: rgba(23,29,45,.9);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,.3);
  text-align: left;
}

.floating-card i {
  color: var(--secondary);
  font-size: 22px;
}

.floating-card strong, .floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 13px;
}

.floating-card small {
  color: #94a3b8;
  font-size: 11px;
}

.card-one {
  top: 15%;
  left: -70px;
}

.card-two {
  bottom: 10%;
  right: -60px;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
  max-width: 750px;
  margin: 0 auto 65px;
}

.section-heading span {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

.section-heading h2 strong {
  color: var(--primary);
}

.section-heading p {
  color: var(--muted);
  margin-top: 15px;
}

.section-heading.light h2 {
  color: white;
}

.section-heading.light p {
  color: #94a3b8;
}

/* =========================================================
   ABOUT
========================================================= */

.about-box {
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient( 145deg, #f8fafc, #eef2ff );
  border: 1px solid var(--border);
}

.about-icon {
  width: 65px;
  height: 65px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  background: var(--gradient);
  margin-bottom: 25px;
}

.about-box h3 {
  font-weight: 700;
  margin-bottom: 15px;
}

.about-box p {
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.about-stats strong, .about-stats span {
  display: block;
}

.about-stats strong {
  color: var(--primary);
  font-size: 25px;
}

.about-stats span {
  color: var(--muted);
  font-size: 11px;
}

.about-info {
  display: grid;
  gap: 13px;
  margin-top: 30px;
}

.about-info div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.about-info i {
  color: var(--primary);
  font-size: 18px;
}

/* =========================================================
   DARK SECTION
========================================================= */

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

/* =========================================================
   SERVICES
========================================================= */

.service-card {
  height: 100%;
  padding: 32px;
  border-radius: 18px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.07);
  transition: .3s;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(99,102,241,.5);
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.service-icon {
  width: 55px;
  height: 55px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,.1);
  color: var(--secondary);
  font-size: 24px;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-card p {
  color: #94a3b8;
  font-size: 14px;
}

.service-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.service-tags span {
  background: rgba(255,255,255,.05);
  padding: 4px 9px;
  border-radius: 5px;
  color: #94a3b8;
  font-size: 10px;
}

/* =========================================================
   SKILLS
========================================================= */

.skill-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: .3s;
}

.skill-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.skill-card h3 {
  font-size: 19px;
  margin-bottom: 20px;
  color: var(--dark);
}

.skill-card h3 i {
  color: var(--primary);
  margin-right: 8px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-list span {
  padding: 7px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

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

.skill-title {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.progress {
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  background: var(--gradient);
  transition: width 1.5s ease;
  border-radius: 10px;
}

/* =========================================================
   TIMELINE
========================================================= */

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

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient( to bottom, var(--primary), rgba(99,102,241,.05) );
}

.timeline-item {
  position: relative;
  padding-left: 65px;
  margin-bottom: 45px;
}

.timeline-dot {
  position: absolute;
  left: 8px;
  top: 5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--primary);
  border: 5px solid var(--dark);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  padding: 30px;
  border-radius: 15px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.07);
}

.timeline-date {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.timeline-content h3 {
  margin: 8px 0 3px;
  font-size: 21px;
}

.timeline-content h4 {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 15px;
}

.timeline-content p {
  color: #94a3b8;
  font-size: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-tags span {
  padding: 5px 10px;
  background: rgba(99,102,241,.1);
  color: #a5b4fc;
  border-radius: 5px;
  font-size: 10px;
}

/* =========================================================
   PROJECTS
========================================================= */

.project-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  background: white;
  transition: .3s;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 50px rgba(15,23,42,.1);
}

.project-image {
  height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #172033;
}

/* If screenshots are available later,
   put them here as background images. */

.project-xpower {
  background: url("../../assets/img/projects/x-power_helloworld_pk.jpg") center / cover;
}

.project-yansaw {
  background: url("../../assets/img/projects/yansaw_com.jpg") center / cover;
}

.project-web {
  background: url("../../assets/img/projects/web_helloworld_pk.jpg") center / cover;
}

.project-saleem {
  background: url("../../assets/img/projects/saleemnawaz_com.jpg") center / cover;
}

.project-waseem {
  background: url("../../assets/img/projects/waseem-helloworld-pk.jpg") center / cover;
}

.project-japan {
  background: url("../../assets/img/projects/okinawagroup.jpg") center / cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,11,20,.7);
  opacity: 0;
  transition: .3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-body {
  padding: 25px;
}

.project-category {
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-body h3 {
  font-size: 21px;
  margin: 7px 0 10px;
}

.project-body p {
  color: var(--muted);
  font-size: 13px;
}

.project-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.project-tags span {
  padding: 5px 9px;
  background: #f1f5f9;
  border-radius: 5px;
  color: #475569;
  font-size: 10px;
}

/* =========================================================
   SOFTWARE
========================================================= */

.software-section {
  background: #f8fafc;
}

.section-label {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

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

.software-grid div {
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
}

.software-grid i {
  color: var(--primary);
  font-size: 20px;
}

/* =========================================================
   EDUCATION
========================================================= */

.education-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.education-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: var(--primary);
  font-size: 25px;
}

.education-card h3 {
  margin: 0;
  font-size: 20px;
}

.education-card p {
  margin: 3px 0 0;
  color: var(--muted);
}

.certificate-card {
  text-align: center;
  padding: 35px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
}

.certificate-card i {
  color: var(--primary);
  font-size: 32px;
}

.certificate-card h3 {
  font-size: 18px;
  margin: 15px 0 3px;
}

.certificate-card p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

/* =========================================================
   LANGUAGES
========================================================= */

.language-list {
  display: grid;
  gap: 12px;
}

.language-item {
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
  background: var(--dark-2);
  border-radius: 10px;
}

.language-item strong {
  color: var(--secondary);
  font-size: 12px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--dark-2);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.interest-list i {
  color: var(--secondary);
}

/* =========================================================
   CONTACT
========================================================= */

.contact-section {
  background: #f8fafc;
}

.contact-info {
  padding: 35px;
  background: var(--dark);
  color: white;
  border-radius: 20px;
  height: 100%;
}

.contact-info > p {
  color: #94a3b8;
  margin: 15px 0 35px;
}

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

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,.15);
  color: var(--secondary);
}

.contact-item small, .contact-item strong {
  display: block;
}

.contact-item small {
  color: #64748b;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item strong {
  font-size: 13px;
  margin-top: 2px;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 35px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  border: 1px solid rgba(255,255,255,.1);
  transition: .3s;
}

.contact-social a:hover {
  background: var(--primary);
}

.contact-form-box {
  padding: 35px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.contact-form-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 7px;
}

.form-control {
  padding: 13px 15px;
  border-color: var(--border);
  border-radius: 8px;
  font-size: 13px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

#formMessage {
  font-size: 13px;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  padding: 40px 0;
  background: #05070d;
  color: #64748b;
}

.footer-brand {
  color: white;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 5px;
}

footer p {
  font-size: 12px;
  margin: 0;
}

/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 999;
}

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

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--dark);
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding-top: 100px;
  }
}

@media (max-width: 991px) {
  .hero-profile {
    margin-top: 80px;
    margin-bottom: 50px;
  }
}

@media (max-width: 991px) {
  .card-one {
    left: 0;
  }
}

@media (max-width: 991px) {
  .card-two {
    right: 0;
  }
}

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

@media (max-width: 767px) {
  .hero-content {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .hero-social {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .profile-ring {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 767px) {
  .floating-card {
    transform: scale(.85);
  }
}

@media (max-width: 767px) {
  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .software-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .timeline::before {
    left: 10px;
  }
}

@media (max-width: 767px) {
  .timeline-item {
    padding-left: 40px;
  }
}

@media (max-width: 767px) {
  .timeline-dot {
    left: 0;
  }
}

@media (max-width: 767px) {
  .contact-form-box, .contact-info {
    padding: 25px;
  }
}

