@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f9f9ff;
  color: #222;
  line-height: 1.6;
  transition: all 0.4s ease;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* NAV */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
}

.logo {
  color: #222;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo span {
  color: #222;
}

/* NAV LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
  font-weight: 700;
}

/* SOCIAL ICONS */
.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icons img {
  width: 22px;
  height: 22px;
  filter: invert(0);
  transition: transform 0.25s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
  filter: invert(0.2);
}

/* CLOCK */
#clock {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #222;
  background: #f2f2f2;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

#clock:hover {
  background: #222;
  color: #fff;
  transform: scale(1.05);
}

/* INTRO */
.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1rem;
  min-height: 80vh;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 700px;
}

/* ===== AVATAR ===== */
.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  animation: float 4s ease-in-out infinite, glow 6s ease-in-out infinite alternate;
}

.avatar:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  filter: brightness(1.1);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 5px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 8px 30px rgba(0,0,0,0.3), 0 0 15px rgba(255,255,255,0.4); }
  100% { box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 0 5px rgba(255,255,255,0.2); }
}

.intro-text h2 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.intro-text span {
  color: #222;
}

.intro-text p {
  font-size: 1.1rem;
  color: #555;
  max-width: 500px;
  margin: auto;
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  background: #222;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #444;
}

/* SECTIONS */
section {
  max-width: 900px;
  margin: auto;
  padding: 3rem 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
}

/* SKILLS */
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.skill {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  padding: 1rem;
  width: 110px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.skill i {
  font-size: 36px;
  margin-bottom: 0.5rem;
}

.skill p {
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 6px;
  color: #222;
}

/* PROJECTS */
#projects {
  background: #fafafa;
  padding: 4rem 1rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.project-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.12) rotate(1deg);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.8) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  padding: 1rem;
  transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.project-overlay p {
  font-size: 0.9rem;
  color: #ddd;
  margin-top: 0.4rem;
}

/* CONTACT FORM */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  resize: none;
}

#form-status {
  margin-top: 0.5rem;
  font-weight: 600;
  color: green;
}

/* TYPING EFFECT */
#typing {
  color: #222;
  font-weight: 600;
  border-right: 2px solid #222;
  padding-right: 2px;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

/* HAMBURGER MENU */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 30px;
  background: #222;
  border-radius: 3px;
  display: block;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 60%;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.3s;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  nav .social-icons,
  #clock {
    display: none;
  }
}
