/* Reset & Base */

body {
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
 
  padding-top: 70px; /* Adjust if your navbar is taller */
  
}
a {
  color: #3498db;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: #2980b9;
}
.custom-header {
  background: linear-gradient(135deg, #0077b6, #00b4d8, #90e0ef);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
  background-color: #4a60f1;
}
.navbar-nav .nav-link {
  color: white !important;
  padding: 10px 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ffc107 !important;
}
.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.5);
}

/* Dropdown */
.dropdown-menu {
  background-color: #49c2f3;
  border: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  animation: fadeInDropdown 0.3s ease-in-out;
}
.dropdown-item {
  color: white;
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-item:hover {
  background-color: #49c2f3;
  color: #ffc107;
}
@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991.98px) {
  .dropdown-menu {
    position: static !important;
    float: none;
  }
  .navbar-collapse {
    background-color: #49c2f3;
    padding: 1rem;
  }
}

/* Hero Section */
header {
  background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
header h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}
header p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  font-weight: 300;
}
header .btn {
  background: white;
  color: #000dff;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 40px;
  box-shadow: 0 5px 15px rgba(0,13,255,0.4);
  cursor: pointer;
  border: none;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}
header .btn:hover {
  background: #e1eaff;
}

/* Sections */
section {
  padding: 70px 0;
}
section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #000dff;
  font-weight: 700;
  letter-spacing: 1.5px;
}
section p.lead {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-weight: 300;
  font-size: 1.1rem;
  color: #555;
}

/* About Section */
#about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}
#about img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
#about .about-text {
  flex: 1 1 350px;
  font-size: 1.1rem;
  color: #444;
}

/* Skills */
#skills .skill {
  max-width: 600px;
  margin: 0 auto 25px auto;
}
.skill-name {
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}
.skill-bar {
  background: #ddd;
  border-radius: 30px;
  overflow: hidden;
  height: 16px;
}
.skill-level {
  height: 100%;
  background: #000dff;
  border-radius: 30px 0 0 30px;
}
.html { width: 90%; }
.css { width: 85%; }
.js { width: 80%; }
.php { width: 75%; }
.mysql { width: 70%; }

/* Portfolio */
.projects-scroll-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Hide scrollbar for all browsers */
.projects-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.projects-scroll-wrapper {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}
.projects {
  display: flex;
  gap: 20px;
  animation: scrollProjects 20s linear infinite;
}

.project {
  flex: 0 0 calc(100% / 3 - 20px); /* 3 at a time */
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.project:hover {
  transform: scale(1.03);
}

/* Keyframe for left-to-right auto-scroll */
@keyframes scrollProjects {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Adjust as needed */
}

/* Pause on hover */
.projects:hover {
  animation-play-state: paused;
}



#portfolio .projects {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
}
.project {
  background: white;
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.project:hover {
  transform: translateY(-8px);
}
.project img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.project-info {
  padding: 15px 20px;
}
.project-info h3 {
  margin-bottom: 8px;
  font-weight: 600;
}
.project-info p {
  font-size: 0.9rem;
  color: #666;
}

/* Contact */
#contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
#contact form input,
#contact form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
#contact form input:focus,
#contact form textarea:focus {
  outline: none;
  border-color: #000dff;
  box-shadow: 0 0 8px #a3bffa;
}
#contact form button {
  background: #000dff;
  color: white;
  border: none;
  padding: 14px 0;
  border-radius: 40px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
}
#contact form button:hover {
  background: #343bff;
}
.site-footer {
  background: linear-gradient(135deg, #023e8a, #0077b6, #00b4d8);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 20px 10px 10px;
  font-size: 14px;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 25px;
  margin-bottom: -5px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-container a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-container a:hover {
  color: #ffd60a;
}

/* Sections */
.footer-branding, .footer-links, .footer-social {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-branding h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: #fff;
}

.footer-branding p {
  margin: 2px 0;
  font-size: 12px;
  color: #ccc;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 5px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #444;
  padding-bottom: 3px;
}

.footer-links .link-columns {
  display: flex;
  gap: 15px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 2px 0;
}

.footer-links a {
  color: #aaa;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social .social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social a {
  color: #aaa;
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
  color: #fff;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  color: blue;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 40px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
  color: #007bff;
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .footer-branding, .footer-links, .footer-social {
    min-width: auto;
    flex: 1 1 auto;
  }

  .footer-links .link-columns {
    flex-direction: column;
    gap: 8px;
  }

  .footer-branding p {
    font-size: 12px;
    line-height: 1.4;
  }
}
 


/* Responsive */
@media(max-width: 768px) {
  #about {
    flex-direction: column;
  }
  header h1 {
    font-size: 2.8rem;
  }
}



.wave-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: -1;
  overflow: hidden;
  opacity: 0.4;
}

.wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}





/* Profile Image Hover Effect */


.hover-grow {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
  z-index: 1000;
  position: relative;
}

.hover-grow:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 4px solid #007bff; /* Blue border */
  background-color: rgba(0, 123, 255, 0.1); /* Light blue translucent background */
  border-radius: 50%; /* Keeps the circle shape */
}

.hover-grow {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease, background-color 0.4s ease;
  will-change: transform;
  z-index: 1000;
  position: relative;
}





#contact a:hover {
  text-decoration: underline;
  color: #0d6efd;
}

#contact i {
  font-size: 1.2rem;
  vertical-align: middle;
}

#skills {
  max-width: 600px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.skill {
  margin-bottom: 20px;
  cursor: pointer;
}

.skill-name {
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-bar {
  width: 100%;
  height: 25px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.skill-level {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 15px 0 0 15px;
  position: relative;
  overflow: hidden;
}



.skill-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill-opacity="0.3" d="M0,192L60,165.3C120,139,240,85,360,74.7C480,64,600,96,720,117.3C840,139,960,149,1080,160C1200,171,1320,181,1380,186.7L1440,192L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z"/></svg>') repeat-x;
  animation: wave 4s linear infinite;
  opacity: 0.5;
  z-index: 1;
}
@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


.service h5 {
  font-weight: 600;
}



