
/* ====== GENERAL RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
  font-family: 'Poppins', sans-serif;
}

body, html {
  
  overflow-x: hidden;
  color: #fff;
  scroll-behavior: smooth;
  background: black;
  
}
/* Navbar Container */
.button-bg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0,0,0,0.85);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Logo */
#name {
  font-size: 1.8rem;
  font-weight: bold;
  color: gold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#name:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px gold;
}

/* Navbar Menu */
.navbar ul {
  list-style: none;
  display: flex;  /* horizontal by default */
  gap: 35px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover underline animation */
.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background: gold;
  transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
  width: 100%;
}

.navbar ul li a:hover {
  color: gold;
  background: rgba(255,215,0,0.1);
}

section {
  scroll-margin-top: 80px; /* Navbar height */
}
/* Fireflies */
#fireflies-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* ensures clicks pass through */
  overflow: hidden;
  z-index: 0; /* behind content */
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  background: gold;
  border-radius: 50%;
  box-shadow: 0 0 10px gold, 0 0 20px rgba(255,215,0,0.5);
  animation: float 6s linear infinite;
  opacity: 0.7;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { transform: translateY(-50px) translateX(50px); opacity: 1; }
  100% { transform: translateY(0) translateX(0); opacity: 0.5; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .firefly { width: 4px; height: 4px; }
}
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background: gold;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  z-index: 9999;
  box-shadow: 0 0 10px gold, 0 0 20px rgba(255,215,0,0.5);
}


/* ====== HOME / NAME SECTION ====== */
.name {
  margin-top: 200px;
  margin-left: 10%;
}

.name h1 {font-family: 'Montserrat', sans-serif; /* heading font */
  font-weight: 700;
  font-size: 60px;
  line-height: 1.2;
  color: white;
}

.name h1 span {
  color: gold; /* "Tehseenullah" in gold */
}

.name p {
   font-size: 20px;
  font-weight: 500;
  color: white;
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: color 0.3s ease;
}
.name p::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: gold;
  border-radius: 2px;
  transition: width 0.3s ease;
}
.name p:hover{
  color: gold;
}


.name p:hover::after {
  width: 100%;
  box-shadow: 0 0 10px gold, 0 0 20px rgba(255, 215, 0, 0.5);
}

/* ====== PROFILE PICTURE ====== */
.profile-pic {
  position: absolute;
  top: 190px;
  right: 10%;
  width: 300px;
  border-radius: 50%;
  padding: 10px;
  background: gold;
  box-shadow: 0 0 30px gold, 0 0 60px rgba(255, 215, 0, 0.5);
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px gold, 0 0 80px rgba(255, 215, 0, 0.7);
}

 
 .glow-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  color: black;
  text-decoration: none;
  border-radius: 12px;
  background: white;
  
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-left: 10%;
  margin-top: 20Px;
}
 
/* hire me button */
.glow-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
  opacity: 0;
  transition: all 0.5s ease;
  transform: rotate(45deg);
}

.glow-button:hover {
  color: gold;
  transform: scale(1.05);
  box-shadow: 0 0 25px gold, 0 0 50px rgba(255, 215, 0, 0.7);
}

.glow-button:hover::before {
  opacity: 1;
}



/* ====== GLASSY HR ====== */
.glassy-hr {
  border: none;
  height: 3px; /* slightly thicker for impact */
  width: 50%;  /* adjust as needed */
  margin: 120px auto; /* center and add spacing */
  border-radius: 10px;

  /* Glassy gradient background */
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 215, 0, 0.4));

  /* Frosted glass effect */
  backdrop-filter: blur(6px);

  /* Glow effect */
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);

  /* Smooth transition on hover */
  transition: transform 0.3s, box-shadow 0.3s;
}

.glassy-hr:hover {
  transform: scaleX(1.1); /* slight horizontal stretch */
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6), 0 0 50px rgba(255, 255, 255, 0.3); /* stronger glow */
}

/* ====== ABOUT SECTION DECORATED ====== */
.about-wrapper {
  padding: 80px 20px;
  text-align: center;
  max-width: 900px;
  margin: 150px auto 50px auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 2px solid rgba(255, 215, 0, 0.6); /* golden outline */
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.1); /* soft glow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-wrapper:hover {
  transform: translateY(-5px); /* subtle lift on hover */
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3), 0 0 25px rgba(255, 215, 0, 0.15);
}

.about-wrapper .main-title {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: 600;
  color: gold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.glass-about {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15); /* golden glow */
  line-height: 1.7;
  font-size: 18px;
  text-align: left;
  border-left: 4px solid gold; /* decorative accent */
  transition: box-shadow 0.3s ease;
}

.glass-about:hover {
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.25);
}

.glass-about strong {
  color: gold;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* ====== SKILLS SECTION UPGRADED ====== */
.skills-wrapper {
  padding: 80px 20px;
  text-align: center;
  margin: 50px auto;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 2px solid rgba(255, 215, 0, 0.5); /* subtle gold outline */
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.15), 0 0 15px rgba(255, 215, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.skills-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.25), 0 0 25px rgba(255, 215, 0, 0.1);
}

.skills-wrapper .main-title {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: 600;
  color: gold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.glass-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.skill-set {
  flex: 1 1 300px;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-set:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.3);
}

.skill-set h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  color: gold;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

.skill-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(255, 215, 0, 0.2);
}

.skill-per {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, gold, #ffd700, #ffec8b);
  box-shadow: 0 0 8px gold, 0 0 15px rgba(255, 215, 0, 0.5);
  width: 0; /* JS sets width dynamically */
  position: relative;
  transition: width 1.2s ease;
}

.skill-per .tooltip {
  position: absolute;
  right: 0;
  top: -28px;
  font-size: 11px;
  font-weight: 600;
  color: #000;
  padding: 3px 7px;
  border-radius: 4px;
  background: gold;
  box-shadow: 0 0 8px gold, 0 0 15px rgba(255, 215, 0, 0.5);
  white-space: nowrap;
  transition: transform 0.3s ease;
}

.skill-set:hover .skill-per .tooltip {
  transform: translateY(-2px);
}


          /* Services */

.services {
  padding: 100px 20px;
  text-align: center;
  color: gold;
  font-size: 36px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 upar, 3 neechay */
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
  
  
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 215, 0, 0.15);
  transition: all 0.4s ease;
  cursor: default;
}

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

.service-card p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.25);
  border-color: gold;
}


/* Portfolio Section */

.portfolio {
  padding: 100px 20px;
  text-align: center;
  
}

.portfolio .section-title {
  margin-top: -5%;
  color: gold;
  margin-bottom: 50px;
  font-size: 36px;
  text-align: center;
}

/* Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}


/* Portfolio Card */
.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 260px; /* Fix height to show overlay button */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.4s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

/* Overlay */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center */
  align-items: center;     /* horizontally center */
  padding: 20px;
  text-align: center;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;    /* prevent accidental hover click */
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-overlay h3 {
  color: gold;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.portfolio-overlay p {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Button in overlay */
.portfolio-overlay .glow-button {
  margin-top: 12px;
  padding: 12px 28px;
  font-size: 0.95rem;
  z-index: 2;
  text-decoration: none;
  border-radius: 40px;
  font-weight: 00;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
}

.portfolio-overlay .glow-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
  color: white;
}

/* Hover effect on image */
.portfolio-item:hover img {
  transform: scale(1.1);
}

/* Contact Section */
.contact-section {
  padding: 100px 20px;
  text-align: center;
  background: #0a0a0a;
  color: #fff;
}

.contact-section .section-title {
  font-size: 2rem;
  color: gold;
  margin-bottom: 10px;
}

.contact-section .section-subtitle {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 50px;
}

/* Contact Container */
.contact-container {
  display: flex;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.info-box h4 {
  color: gold;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.info-box p a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
}

.info-box p a:hover {
  color: gold;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: gold;
  box-shadow: 0 0 10px gold;
}

.contact-form button {
  padding: 14px 28px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

/* Footer */
.footer {
  text-align: center;
  padding: 25px 20px;
  background: #0a0a0a;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 215, 0, 0.2);
}



.social{
  margin-left: 10%;
  margin-top: 10px;

}

.social a {
  color: white;
  font-size: 30px;
  
  margin: 0 2px; /* spacing between icons */
  display: inline-block;
  transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
  text-decoration: none; /* remove underline */
  
}

.social a:hover i {
  color: gold;
  transform: scale(1.2);
  text-shadow: 0 0 10px gold;
  cursor: pointer;
}


#backToTop {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  font-size: 24px;
  font-weight: bold;
  color: black;
  background: linear-gradient(135deg, #ffd700, #d4af37);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#backToTop:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Responsive for mobile */
@media (max-width: 576px) {
  #backToTop {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 25px;
    right: 20px;
  }
}





/* ====== FULL RESPONSIVE DESIGN ====== */

/* Extra Small Devices / Mobile (≤ 576px) */
@media (max-width: 576px) {
  /* Navbar */
  .button-bg {
    flex-direction: column;
    padding: 12px 15px;
  }
  .navbar ul {
    display: none; /* hide menu for hamburger */
    flex-direction: column;
    gap: 12px;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.95);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border-radius: 0 0 12px 12px;
  }
  .navbar ul.active { display: flex; }
  .hamburger { display: block; cursor: pointer; font-size: 28px; color: gold; }

  /* Home Section */
  .name {
    margin-top: 120px;
    margin-left: 2%;
    text-align: center;
  }
  .name h1 { font-size: 32px; line-height: 1.1; }
  .name p { font-size: 14px; }

  /* Profile pic */
  .profile-pic { width: 160px; top: 110px; right: 2%; }

  /* Buttons */
  .glow-button { margin-left: 0; margin-top: 12px; padding: 6px 12px; font-size: 12px; }

  /* Sections */
  .skills-wrapper, .about-wrapper, .services-grid, .portfolio-grid, .contact-container {
    margin: 25px 10px;
  }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .contact-container { flex-direction: column; gap: 25px; }

  /* Social icons */
  .social { margin-left: 0; text-align: center; }
}

/* Small Devices / Tablets (577px – 768px) */
@media (min-width: 577px) and (max-width: 768px) {
  .button-bg { padding: 15px 25px; flex-direction: row; }
  .navbar ul { flex-direction: row; gap: 15px; }
  .name { margin-top: 130px; margin-left: 5%; }
  .name h1 { font-size: 42px; }
  .name p { font-size: 16px; }
  .profile-pic { width: 200px; top: 150px; right: 5%; }
  .glow-button { margin-left: 5%; padding: 8px 18px; font-size: 14px; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Medium Devices / Small Laptops (769px – 992px) */
@media (min-width: 769px) and (max-width: 992px) {
  .button-bg { padding: 18px 35px; }
  .navbar ul { gap: 20px; }
  .name { margin-left: 7%; margin-top: 160px; }
  .name h1 { font-size: 50px; }
  .name p { font-size: 18px; }
  .profile-pic { width: 250px; top: 180px; right: 7%; }
  .glow-button { margin-left: 7%; padding: 9px 20px; font-size: 15px; }
  .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large Devices / Desktops (993px – 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
  .name h1 { font-size: 56px; }
  .profile-pic { width: 280px; top: 190px; right: 10%; }
}

/* Extra Large Devices / Full HD & large monitors (> 1200px) */
/* Default CSS already handles large desktops */
