* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;

  /* Background Image */
  background-image: url("assets/OIP.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* THIS MAKES IT STABLE (NOT MOVING) */
  background-attachment: fixed;
}


/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    position: fixed;
    top: 0;
    width: 100%;
    background: #5c92d8f2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

header .logo {
    font-size: 26px;
    font-weight: 700;
    color: #121212;
}

header nav a {
    margin-left: 25px;
    text-decoration: none;
    font-size: 16px;
    color: #141314;
    transition: .3s;
}

header nav a:hover {
    color: #dfe60c;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 8% 50px;
}

.hero-content {
    width: 50%;
}

.hero-content h1 {
    font-size: 45px;
}

.hero-content span {
    color: #ee1585;
}

.hero-content p {
    margin: 15px 0 30px;
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #04e753;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #3939a6;
}

.hero-img img {
    width: 370px;
    height:370px;
    border-radius: 2%;
    box-shadow: 0 20px 10px rgba(151, 8, 8, 0.2);
}

/* Projects */
.projects {
    padding: 50px 8%;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #131211;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 25px;
}

.project-card {
    background: rgb(37, 230, 172);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(20, 20, 20, 0.05);
    transition: transform .3s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    border-radius: 10px;
}

.project-btn {
    display:inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: #4a4aef;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

/* Skills */
.skills {
    padding: 50px 8%;
    text-align: center;
}

.skill-box {
    display: inline-block;
    margin: 12px;
    padding: 12px 25px;
    background: #b6cd1b;
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    transition: .3s;
}

.skill-box:hover {
    background: #2a2184;
}

/* Contact */
.contact {
    padding: 50px 8%;
    text-align: center;
}

/* Scroll Animation */
.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all .7s ease-out;
}

.animate.active {
    opacity: 1;
    transform: translateY(0);
}
.social-float {
  position: fixed;
  top: 40%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.social-float a {
  background: white;
  color: #333;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transition: 0.4s;
  animation: float 3s ease-in-out infinite;
}

.social-float a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px #6c6ce9;
  color: #4a4aef;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.github-stats {
  padding: 50px 8%;
  text-align: center;
}

.stats-box {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats-box img {
  max-width: 400px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* adjust darkness */
  z-index: -1;
}
section {
  background: rgba(46, 125, 159, 0.9);
  border-radius: 12px;
  padding: 40px;
  margin: 40px auto;
  max-width: 1200px;
}
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
