/* === Global Settings === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {

background-color: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* === Reusable Classes === */
section {
  padding: 60px 0;
}

h1, h2, h3 {
  color: #ffffff;
}

a {
  text-decoration: none;
  color: #4fc3f7;
}

button {
  background-color: #00acc1;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #26c6da;
}

/* === Hero Section === */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4fc3f7;
}

.hero-text {
  flex: 1;
  margin-left: 40px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  max-width: 600px;
  margin-bottom: 20px;
}

/* === About Section === */
.about {
  text-align: center;
}

.about p {
  max-width: 700px;
  margin: auto;
  font-size: 18px;
  color: #cccccc;
}

/* === Skills Grid === */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  text-align: center;
}
.skills {
  padding: 60px 20px;
  text-align: center;
}

.skill-item {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
}

.skill-item img {
  width: 40px;
  margin-bottom: 10px;
}
.skills {
  padding: 60px 0;
  text-align: center;
}

.skills h2 {
  font-size: 28px;
  color: #4fc3f7;
  margin-bottom: 20px;
}

/* Fix: Horizontal flex layout */
.skills-row {
  display: flex;
  flex-wrap: wrap;          /* Allows wrapping if space runs out */
  justify-content: center;  /* Center horizontally */
  gap: 20px;
  padding: 10px 20px;
}

.skill-item {
  background-color: #1a1a1a;
  padding: 15px;
  border-radius: 12px;
  min-width: 100px;
  text-align: center;
  transition: 0.3s ease;
}

.skill-item:hover {
  transform: scale(1.1);
  background-color: #2a2a2a;
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.2);
}

.skill-item i {
  font-size: 28px;
  color: #4fc3f7;
  margin-bottom: 8px;
}

.skill-item p {
  font-size: 14px;
  color: white;
  margin: 0;
}

/* === Projects Section === */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}
.projects {
  padding: 60px 20px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.projects h2 {
  color: #4fc3f7;
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}

.project-card {
  background-color: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  padding: 15px;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: #bbbbbb;
}

/* === Contact Section === */
.contact {
  text-align: center;
}

.contact a {
  display: inline-block;
  margin: 10px;
  font-size: 18px;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  font-size: 14px;
  color: #777;
  border-top: 1px solid #333;
}
/* Image Hover Effect */
.project-card img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
}

/* Card Hover Effect */
.project-card:hover {
  background-color: #262626;
  transition: background-color 0.3s ease;
}

/* Button Hover (already added earlier, enhancing it) */
button:hover {
  transform: scale(1.05);
  background-color: #26c6da;
}
/* === Floating Tech Icons === */
.floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1; /* Ensure it's above background but below content */
}

.floating-icons i {
  position: absolute;
  font-size: 40px; /* Increased from 30px */
  opacity: 0.3;     /* Increased from 0.07 */
  animation: float 12s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(79, 195, 247, 0.5); /* Soft glow */
}

/* Individual icon positions and delays */
.floating-icons i:nth-child(1) {
  top: 10%;
  left: 20%;
  color: #ffcc00; /* JS */
  animation-delay: 0s;
}
.floating-icons i:nth-child(2) {
  top: 30%;
  left: 70%;
  color: #61DBFB; /* React */
  animation-delay: 2s;
}
.floating-icons i:nth-child(3) {
  top: 50%;
  left: 10%;
  color: #f16529; /* HTML */
  animation-delay: 4s;
}
.floating-icons i:nth-child(4) {
  top: 70%;
  left: 50%;
  color: #2965f1; /* CSS */
  animation-delay: 6s;
}
.floating-icons i:nth-child(5) {
  top: 85%;
  left: 80%;
  color: #339933; /* Node */
  animation-delay: 8s;
}
.floating-icons i:nth-child(6) {
  top: 40%;
  left: 40%;
  color: #3776ab; /* Python */
  animation-delay: 10s;
}
.floating-icons i:nth-child(7) {
  top: 60%;
  left: 25%;
  color: #00758f; /* MySQL */
  animation-delay: 1s;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 0.6;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
}