/* =============================================
   UMAIR ALI — PORTFOLIO STYLESHEET
   Naming: camelCase classes
   Style: Modern, Clean, Dark Theme
============================================= */

/* ── RESET & BASE ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f0f13;
  color: #e8e8f0;
  line-height: 1.6;
  overflow-x: hidden;
}

html{
  scroll-behavior: smooth;
}

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

/* ── REUSABLE ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sectionTitle {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  color: #ffffff;
}

.sectionTitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #6c63ff, #e040fb);
  margin: 12px auto 0;
  border-radius: 2px;
}

.btnPrimary {
  display: inline-block;
  background: linear-gradient(135deg, #6c63ff, #e040fb);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  font-family: 'Poppins', sans-serif;
}

.btnPrimary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btnOutline {
  display: inline-block;
  background: transparent;
  color: #6c63ff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid #6c63ff;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.btnOutline:hover {
  background: #6c63ff;
  color: #fff;
  transform: translateY(-2px);
}


/* =============================================
   NAVBAR
============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 19, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.navContainer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navLogo {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6c63ff, #e040fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navLinks {
  display: flex;
  list-style: none;
  gap: 30px;
}

.navLinks a {
  color: #aaa;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navLinks a:hover {
  color: #ffffff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e8e8f0;
  border-radius: 2px;
  transition: all 0.3s;
}


/* =============================================
   HERO
============================================= */
.heroSection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 6vw 60px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.heroContent {
  flex: 1;
  max-width: 600px;
}

.heroGreeting {
  color: #6c63ff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.heroName {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 10px;
}

.heroTitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 400;
  color: #aaa;
  margin-bottom: 20px;
  min-height: 36px;
}

.cursor {
  color: #6c63ff;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.heroDesc {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.8;
}

.heroButtons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.heroSocials {
  display: flex;
  gap: 16px;
}

.socialLink {
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px dashed #444;
  padding-bottom: 2px;
}

.socialLink:hover {
  color: #6c63ff;
  border-color: #6c63ff;
}

.heroImageSide {
  flex-shrink: 0;
}

.heroAvatar {
  width: 420px;
  height: 420px;
  display: flex;
  align-items: end;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.3);
  animation: float 4s ease-in-out infinite;
  overflow: hidden;
}

.heroAvatar img{
  width: 100%;
  
}

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


/* =============================================
   ABOUT
============================================= */
.aboutSection {
  padding: 90px 0;
  background: #13131a;
}

.aboutGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.aboutText p {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.8;
}

.aboutText strong {
  color: #e8e8f0;
}

.aboutCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aboutCard {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.3s, transform 0.2s;
}

.aboutCard:hover {
  border-color: #6c63ff;
  transform: translateY(-4px);
}

.aboutCardIcon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.aboutCard h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c63ff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aboutCard p {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.6;
}


/* =============================================
   SKILLS
============================================= */
.skillsSection {
  padding: 90px 0;
  background: #0f0f13;
}

.skillsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.skillCategory {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px;
}

.skillCategoryTitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 22px;
  color: #e8e8f0;
  display: flex;
  gap: 4px;
}

.skillBars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skillInfo {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #aaa;
}

.skillTrack {
  background: #2a2a38;
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.skillFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6c63ff, #e040fb);
  border-radius: 100px;
  transition: width 1.2s ease;
}

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

.skillTag {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a29bfe;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
}


/* =============================================
   PROJECTS
============================================= */
.projectsSection {
  padding: 90px 0;
  background: #13131a;
}

.filterButtons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filterBtn {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.87rem;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.25s;
}

.filterBtn:hover,
.filterBtn.active {
  background: #6c63ff;
  border-color: #6c63ff;
  color: #fff;
}

.projectsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projectCard {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.projectCard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.15);
}

.projectCard.hidden {
  display: none;
}

.projectTop {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6c63ff, #a29bfe);
}

.projectEmoji {
  display: flex;
  align-items: center;
  justify-content: center;
}

.projectEmoji img{
  width: 50px;
  aspect-ratio: 1;
}

.projectBody {
  padding: 20px;
}

.projectTag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uiuxTag {
  background: rgba(224,64,251,0.12);
  color: #e040fb;
}

.webTag {
  background: rgba(108,99,255,0.12);
  color: #6c63ff;
}

.projectBody h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 10px 0 8px;
}

.projectBody p {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 14px;
}

.projectTechList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.projectTechList span {
  background: #252535;
  color: #aaa;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
}


/* =============================================
   CERTIFICATIONS
============================================= */
.certSection {
  padding: 90px 0;
  background: #0f0f13;
}

.certGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.certCard {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.2s;
}

.certCard:hover {
  border-color: #6c63ff;
  transform: translateY(-4px);
}

.certIcon {
  flex-shrink: 0;
}

.certInfo h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.certOrg {
  color: #6c63ff;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.certDate {
  color: #666;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.certSkills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.certSkills span {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  color: #a29bfe;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 4px;
}


/* =============================================
   CONTACT
============================================= */
.contactSection {
  padding: 90px 0;
  background: #13131a;
}

.contactSubtitle {
  text-align: center;
  color: #888;
  font-size: 0.95rem;
  margin-top: -30px;
  margin-bottom: 50px;
}

.contactGrid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

.contactInfo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contactItem {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contactIcon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contactItem h4 {
  font-size: 0.82rem;
  color: #6c63ff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.contactItem a,
.contactItem p {
  color: #aaa;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.contactItem a:hover {
  color: #fff;
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.formGroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formGroup label {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 500;
}

.formGroup input,
.formGroup textarea {
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  color: #e8e8f0;
  font-size: 0.9rem;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.formGroup input:focus,
.formGroup textarea:focus {
  border-color: #6c63ff;
}

.formGroup input::placeholder,
.formGroup textarea::placeholder {
  color: #555;
}

.submitBtn {
  width: 100%;
  padding: 13px;
  font-size: 1rem;
}

.formSuccess {
  display: none;
  color: #43e97b;
  font-size: 0.88rem;
  text-align: center;
  padding: 10px;
  background: rgba(67, 233, 123, 0.08);
  border-radius: 8px;
}


/* =============================================
   FOOTER
============================================= */
.footer {
  background: #0a0a0e;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.footer strong {
  color: #888;
}

.footerLinks {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footerLinks a {
  color: #555;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footerLinks a:hover {
  color: #6c63ff;
}


/* =============================================
   RESPONSIVE — TABLET
============================================= */
@media (max-width: 900px) {
  .heroSection {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }

  .heroButtons, .heroSocials {
    justify-content: center;
  }

  .heroImageSide {
    order: -1;
  }

  .aboutGrid {
    grid-template-columns: 1fr;
  }

  .skillsGrid {
    grid-template-columns: 1fr;
  }

  .projectsGrid {
    grid-template-columns: 1fr 1fr;
  }

  .certGrid {
    grid-template-columns: 1fr;
  }

  .contactGrid {
    grid-template-columns: 1fr;
  }
}


/* =============================================
   RESPONSIVE — MOBILE
============================================= */
@media (max-width: 600px) {
  .navLinks {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: #0f0f13;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .navLinks.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .projectsGrid {
    grid-template-columns: 1fr;
  }

  .aboutCards {
    grid-template-columns: 1fr 1fr;
  }

  .heroAvatar {
    width: 160px;
    height: 160px;
    font-size: 2.2rem;
  }

  .sectionTitle {
    font-size: 1.6rem;
  }
}
