/* Global Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background: #0F172A;   /* Dark theme */
  color: #E2E8F0;
}

/* Navbar */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 20px 50px;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;

  /* Colored frosted glass effect */
  background: rgba(15, 23, 42, 0.7); /* Dark blue tint */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* On scroll, you can intensify the color and blur if needed */
header.scrolled {
  background: 
rgba(15, 23, 41, 0.895); /* Slightly stronger tint */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}




nav {

  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Brand (Logo + Name) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 55px;
  height: 45px;
  border-radius: 50%;
}

/* Name Animation */
.name {
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hafiz {
  color: #E2E8F0;
  margin-right: 5px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}
.huzaifa {
  color: #06B6D4;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideIn 1s forwards;
  animation-delay: 1s; /* After Hafiz */
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
   position: relative;
  margin-right: 50px;
}
.nav-links li {
  opacity: 0;
  transform: translateY(-30px);
  animation: navSlide 0.6s forwards;
}
.nav-links li:nth-child(1) { animation-delay: 1.5s; }
.nav-links li:nth-child(2) { animation-delay: 2s; }
.nav-links li:nth-child(3) { animation-delay: 2.5s; }
.nav-links li:nth-child(4) { animation-delay: 3s; }
@keyframes navSlide {
  to { opacity: 1; transform: translateY(0); }
}
.nav-links a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: #06B6D4; }


.nav-links li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* line just below text */
  width: 0%;
  height: 2px;  /* thickness of the line */
  background: #06B6D4; /* line color */
  transition: width 0.4s ease;
}

.nav-links li:hover::after,
.nav-links li a.active::after {
  width: 100%; /* line expands full width on hover or active */
}


/* Hero Section */
.hero {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 80px;
  min-height: 100vh;
  background: #0F172A;
  color: #E2E8F0;
  position: relative;
}
.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #E2E8F0;
}
.highlight { color: #06B6D4; }

/* Skill Box */
.skill-box {
  position: relative;
  overflow: hidden;
  min-height: 120px;
}
.skill-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: #06B6D4;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.6s ease;
}
.skill-box p {
  font-size: 16px;
  color: #94A3B8;
  max-width: 500px;
  line-height: 1.6;
  opacity: 0;
  transform: translateX(-100%);
  transition: all 0.6s ease;
}
/* Show / Hide Animations */
.skill-box h2.show, .skill-box p.show {
  opacity: 1;
  transform: translateX(0);
}
.skill-box h2.hide, .skill-box p.hide {
  opacity: 0;
  transform: translateX(-100%);
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  color: white;
  background: linear-gradient(90deg, #06B6D4, #3B82F6);
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(6,182,212,0.4);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6,182,212,0.6);
}
.btn.secondary {
  background: rgba(255,255,255,0.1);
  border: 1px solid #06B6D4;
  color: #06B6D4;
}
.btn.secondary:hover {
  background: #06B6D4;
  color: white;
}


/* Profile Image */
/* Profile Image */
.hero-image {
  
  position: relative;
  width: 300px;      /* WhatsApp DP size */
  height: 300px;     /* equal width & height */
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #06B6D4; /* halka border */
  box-shadow: 1px 12px 12px rgba(6,182,212,0.4); /* halka glow */
  display: flex;
  justify-content: center;
  align-items: center;
    margin-right: 100px; 
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop jaisa */
  border-radius: 50%;
}

/* Shine effect overlay */
.hero-image::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transform: rotate(25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(100%) rotate(25deg); }
}

/* Mobile */
@media (max-width: 600px) {
  .hero-image {
    width: 100px;
    height: 100px;
  }
}
#skills {
  padding: 80px 50px;
  background: #0F172A;
  color: #E2E8F0;
  text-align: center;
}

#skills h2 {
  font-size: 42px;
  font-weight: 700;
  color: #06B6D4;
  margin-bottom: 50px;
    text-shadow: 2px 2px 6px #06B6D4;

}

/* Container for side by side wheels */
.skills-container {
  display: flex;
  justify-content: center; /* dono ko center me lane ke liye */
  align-items: center;
  gap: 80px; /* left-right space */
  margin-top: 40px;
}

/* Wheels ka common style same rahega */
.skill-wheel {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
}


.center-skill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ff4e50, #f9d423);
  color: #fff;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 50%;
  font-size: 18px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 9;
  overflow: hidden; /* important for shine effect */
  position: relative;
}

/* Shine overlay */
.center-skill::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    rgba(255, 255, 255, 0.4) 0deg,
    transparent 60deg,
    transparent 300deg,
    rgba(255, 255, 255, 0.4) 360deg
  );
  border-radius: 50%;
  animation: rotateShine 12s linear infinite;
  z-index: -1; /* stays behind text */
}

/* Rotate animation for shine */
@keyframes rotateShine {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.center-skill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(assets/graphicdesner.jpg);
  color: #fff;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 50%;
  font-size: 18px;

} /* Orbit wrapper (rotates around center) */
/* Orbit wrapper */
.orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: spin 12s linear infinite;
}

/* Icons in orbit */
  .orbit img {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: translateX(-50%);
    animation: counterSpin 12s linear infinite;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

/* Set positions for 3 icons */
.orbit img:nth-child(1) {
  top: -12px;
  left: 63%;
}
.orbit img:nth-child(2) {
  top: -23px;
  left: 36%;
}
.orbit img:nth-child(3) {
  top: 29px;
  left: 10%;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes counterSpin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(-360deg); }
}


/* Skill Section already defined earlier */

/* Projects heading style */
.projects-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 80px 0 40px;
  position: relative;
  color: #06B6D4;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  
  /* Shadow added */
  text-shadow: 2px 2px 6px #06B6D4;
}

/* Animation */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Underline effect */
.projects-heading::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
}


/* Container */
.projects-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 20px;
}

/* Project card wrapper (animation area) */
.project-card {
  opacity: 0;
  transform: translateY(50px);
}

/* Box styling */
.project-box {
  background: #0f1729;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px #06B6D4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.project-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px #272f40;
}

.project-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
  text-align: center;
}

.project-info h3 {
  color: #06B6D4;
  font-size: 20px;
  margin-bottom: 10px;
}

.project-info p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 15px;
}

.view-btn {
  background:#272f40;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.view-btn:hover {
  transform: scale(1.1);
  color: #06B6D4;
}

/* Animation setup */
.hidden { opacity: 0; }
.show.left { animation: slideInLeft 1s ease forwards; }
.show.right { animation: slideInRight 1s ease forwards; }

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-150px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(150px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Base state */
.project-card {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

/* Left/right animations */
.project-card.left.show {
  opacity: 1;
  transform: translateX(0);
}
.project-card.left {
  transform: translateX(-150px);
}

.project-card.right.show {
  opacity: 1;
  transform: translateX(0);
}
.project-card.right {
  transform: translateX(150px);
}
/* contact*/

/* Contact Section */
    .contact-section {
      text-align: center;
      padding: 80px 20px;
      background: 
#0f1729
;
    }

    /* Shine Heading */
    .contact-heading {
      font-size: 2.5rem;
      margin-bottom: 20px;
      background: #06B6D4 ;
      background-size: 200%;
      -webkit-background-clip : text;
      -webkit-text-fill-color: transparent;
      animation: shine 3s linear infinite;
      text-shadow: 2px 2px 6px #06B6D4;
    }

    @keyframes shine {
      0% { background-position: 200% center; }
      100% { background-position: 0 center; }
    }

    .contact-subtext {
      margin-bottom: 40px;
      font-size: 1.2rem;
      color: #bbb;
    }

    /* Contact Form */
    .contact-form {
      max-width: 500px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }


    .contact-form:hover {
      opacity: 0.9;
      box-shadow: 0 6px 20px rgba(6,182,212,0.6);
      transition: 0.4s;
    }

    .contact-form input,
    .contact-form textarea {
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-size: 1rem;
      outline: none;
    }

    .contact-form textarea {
      resize: none;
      height: 120px;
    }

    .contact-form button {
      background: #06B6D4;
      color: #fff;
      border: none;
      padding: 14px;
      border-radius: 8px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
    }

    .contact-form button:hover {
      opacity: 0.9;
      box-shadow: 0 6px 20px rgba(6,182,212,0.6);
    }




    /* Mobile First: Basic adjustments already covered above */

/* Hero Section Responsive */
/* Hero Section Responsive Fix */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column-reverse; /* Text top, image bottom */
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    gap: 30px; /* thoda spacing */
  }

  .hero-image {
    margin: 0; /* remove extra margin */
    width: 180px; /* mobile friendly size */
    height: 180px;
  }

  .hero h1 {
    font-size: 28px; /* chhoti screen ke liye adjust */
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* Skills Section Responsive */
@media (max-width: 900px) {
  .skills-container {
    flex-direction: column;
    gap: 50px;
  }

  .skill-wheel {
    width: 220px;
    height: 220px;
  }

  .center-skill {
    padding: 15px 30px;
    font-size: 16px;
  }

  .orbit img {
    width: 50px;
    height: 50px;
  }
}

/* Projects Section Responsive */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }

  .project-box img {
    height: 180px;
  }

  .project-info h3 {
    font-size: 18px;
  }

  .project-info p {
    font-size: 14px;
  }

  .view-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* Contact Section Responsive */
@media (max-width: 600px) {
  .contact-heading {
    font-size: 2rem;
  }

  .contact-subtext {
    font-size: 1rem;
  }

  .contact-form {
    width: 100%;
    padding: 0 10px;
  }
}

/* Navbar Mobile Menu (Optional) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin-right: 0;
  }

  .nav-links li {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Hamburger Icon */
/* Hamburger Icon - sirf mobile par dikhe */
/* Default (desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #06B6D4;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile view */
@media (max-width: 768px) {
  nav {
    position: relative;
    display: flex;
    justify-content: space-between; /* logo left, menu right */
    align-items: center;
    padding: 15px 20px;
  }

  .hamburger {
    display: flex;
    margin-left: auto; /* right side */
    z-index: 1001; /* above nav-links */
  }

  /* Hide links by default */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px) saturate(140%);
    -webkit-backdrop-filter: blur(15px) saturate(140%);
    box-shadow: -4px 0 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    transform: translateX(100%);
    z-index: 1000;
  }

  /* Active menu (slide-in) */
  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  /* Links styling */
  .nav-links li a {
    color: #E2E8F0;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
  }

  .nav-links li a:hover {
    color: #06B6D4;
  }
}

/* Hamburger toggle animation */
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* Show hamburger on mobile */
/* Mobile Hamburger Right Side Fix */
@media (max-width: 768px) {
  nav {
    position: relative; /* important for absolute menu positioning */
    justify-content: space-between; /* brand left, hamburger right */
    align-items: center;
  }

  .hamburger {
    position: relative; /* normal flow for right side */
    margin-left: auto; /* push to right */
    display: flex;
  }

  .nav-links.active {
    position: absolute;
    top: 70px;
    right: 20px; /* right side */
    width: 200px;
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    background: rgba(15,23,42,0.95);
  }
}



html {
  scroll-behavior: smooth;
}
