/* =========================
   GLOBAL RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* =========================
   BODY + ANIMATED BACKGROUND
========================= */
body {
  min-height: 100vh;
  background: linear-gradient(-45deg, #ff7a00, #ffffff, #ffd1a1, #ffffff);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  color: #333;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================
   DARK MODE
========================= */
body.dark {
  background: linear-gradient(-45deg, #0b0f19, #121212, #1a1a1a);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
  color: #eee;
}

/* =========================
   CONTAINER
========================= */
.container {
  width: 100%;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #ff7a00;
}

.navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.navbar ul li a {
  text-decoration: none;
  font-weight: 500;
  color: inherit;
  position: relative;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #ff7a00;
  transition: 0.3s;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: 100%;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 10%;
  padding: 70px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(15px);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  animation: fadeUp 1.2s ease;
}

body.dark .hero {
  background: rgba(30, 30, 30, 0.75);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   HERO TEXT
========================= */
.hero-text {
  max-width: 55%;
}

.hero-text h1 {
  font-size: 44px;
  margin-bottom: 10px;
}

.hero-text h1 span {
  color: #ff7a00;
  text-shadow: 0 0 15px rgba(255,122,0,0.5);
}

.hero-text h3 {
  font-size: 22px;
  margin-bottom: 15px;
  opacity: 0.8;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* =========================
   BUTTONS
========================= */
.buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  transition: 0.4s;
}

.btn:hover::after {
  left: 100%;
}

.primary {
  background: #ff7a00;
  color: #fff;
}

.outline {
  border: 2px solid #ff7a00;
  color: #ff7a00;
}

/* =========================
   HERO IMAGE
========================= */
.hero-img img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #ff7a00;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* =========================
   SKILLS SECTION
========================= */
.skills {
  margin: 60px 10%;
}

.skill {
  margin-bottom: 20px;
}

.skill h4 {
  margin-bottom: 6px;
}

.bar {
  width: 100%;
  height: 12px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff7a00, #ffb366);
  border-radius: 10px;
  animation: skillFill 2s ease forwards;
}

@keyframes skillFill {
  from { width: 0; }
}

/* =========================
   PROJECT CARDS
========================= */
.projects {
  margin: 60px 10%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.project-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s;
}

body.dark .project-card {
  background: rgba(30,30,30,0.75);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,122,0,0.25), transparent);
  opacity: 0;
  transition: 0.4s;
}

.project-card:hover::before {
  opacity: 1;
}

/* =========================
   SOCIAL ICONS
========================= */
.socials {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff7a00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
}

.socials a:hover {
  transform: scale(1.1);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px;
  }

  .hero-text {
    max-width: 100%;
  }

  .buttons {
    justify-content: center;
  }

  .navbar ul {
    display: none;
  }
}
