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

body {
  line-height: 1.6;
  color: #333;
}

/* ========== HEADER / NAVBAR ========== */
header {
  background: #111;
  color: #fff;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo span {
  color: #f44336;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #f44336;
}

.menu-toggle {
  display: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    display: none; /* toggle later with JS */
    background: #111;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 8px;
  }

  .menu-toggle {
    display: block;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  background: url('../img/jj.jpeg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content h2 span {
  color: #f44336;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 400;
}

.btn {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: #f44336;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.btn:hover {
  background: #d32f2f;
}

/* ========== SECTION GENERIC ========== */

.about {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.about-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  text-align: left;
}

.about-img {
  width: 210px;
  height: 265px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #3c6876;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.about-text p {
  margin-bottom: 15px;
}

.about .btn {
  margin-top: 15px;
  display: inline-block;
  background: linear-gradient(45deg, #f44336, #d32f2f);
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.about .btn:hover {
  background: linear-gradient(45deg, #d32f2f, #b71c1c);
}

/* ========== SKILLS SECTION ========== */
.skills {
  padding: 60px 20px;
  text-align: center;
}

.skills h2 {
  font-size: 2rem;
  margin-bottom: 30px;
} 

.skills-container {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.skill-box {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 250px;
  text-align: center;
  transition: transform 0.3s ease, background 0.3s;
}

.skill-box:hover {
  transform: translateY(-5px);
  background: #e8f0fe;
}

.skill-box i {
  margin-right: 8px;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.skill-box:hover i {
  transform: scale(1.2);
}

/* Skill Icon Colors */
.html-icon { color: #E44D26; }
.css-icon { color: #1572B6; }
.js-icon { 
  color: #F7DF1E; 
  text-shadow: 1px 1px 2px #333; 
}
.react-icon { color: #61DBFB; }
.java-icon { color: #f89820; }
.mysql-icon { color: #4479A1; }
.git-icon { color: #F1502F; }
.github-icon { color: #000000; }

/* ========== PROJECTS SECTION ========== */
.project img {
  width: 100%;              /* Full width of the card */
  height: 200px;            /* Fixed height */
  object-fit: cover;        /* Crops without stretching */
  border-radius: 10px;      /* Rounded corners */
  margin-bottom: 15px;      /* Space between image & text */
  transition: transform 0.3s ease;

}
.project img:hover {
  transform: scale(1.05); /* zoom-in on hover */
}


.projects {
  padding: 60px 20px;
  text-align: center;   /* ✅ Center section title */
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* ✅ Center project cards */
  gap: 20px;
  margin-top: 30px;
}

.project {
    opacity: 0;
    transform: translateY(40px);
  background: #fFF;
  padding: 20px;
  flex: 1 1 300px;
  max-width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;   /* ✅ Center project content */
  overflow: hidden;
}

.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f44336;
}

.project p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #555;
}

.project .btn {
  display: inline-block;
  margin: 5px;
  padding: 8px 15px;
  background: #f44336;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.project .btn:hover {
  background: #d32f2f;
}

.project.show {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ Responsive Fix */
@media (max-width: 768px) {
  .projects-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ========== CONTACT SECTION ========== */
.contact {
  text-align: center;
  padding: 80px 20px;
  background: #f9f9f9;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.contact p {
  margin-bottom: 30px;
  font-size: 1rem;
  color: #555;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  background: #0073e6;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #005bb5;
}

.socials {
  margin-top: 20px;
}

.socials a {
  margin: 0 10px;
  font-size: 1.8rem;
  color: #333;
  transition: 0.3s;
  position: relative;
  display: inline-block;
}

.socials a:hover::after {
  /* color: #0073e6; */
  opacity: 1;
}
.socials a::after{
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}


/* ========== FOOTER ========== */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 15px;
} 
