/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ===== COLORS ===== */
:root {
  --bg-main: #020617;
  --bg-card: #0f172a;
  --accent: #22c55e;
  --accent-glow: #22c55e55;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #1e293b;
}

/* ===== BODY ===== */
body {
  font-family: system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== GLOBAL ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== NAVBAR ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -5px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HERO ===== */
.home {
  min-height: 100vh;
  background: url("../image/night-coding-workspace.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 20px;
}

.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.home-content {
  position: relative;
  max-width: 700px;
  animation: fadeUp 1.2s ease;
}

.home-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.home-content h3 {
  color: var(--accent);
  margin-bottom: 20px;
}

.home-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  margin: 5px;
  display: inline-block;
}

.primary {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 15px var(--accent-glow);
}

.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--accent);
}

.secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.secondary:hover {
  background: var(--accent);
  color: black;
}

/* ===== SECTIONS ===== */
.section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 50px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.section h2 {
  text-align: center;
  margin-bottom: 25px;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.skill-card {
  background: #020617;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px var(--accent-glow);
  border-color: var(--accent);
}

/* ===== PROJECTS ===== */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.project-card {
  background: #020617;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: 0.4s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* ===== BUTTON GROUP ===== */
.project-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.project-buttons a {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.live-btn {
  background: linear-gradient(135deg, #00ff9d, #00c3ff);
  color: #000;
}

.github-btn {
  border: 2px solid #00ff9d;
  color: #00ff9d;
}

/* ===== CONTACT ===== */
#contact p {
  margin: 10px 0;
}

#contact a {
  color: var(--accent);
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--border);
  margin-top: 50px;
  color: var(--text-muted);
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
.project-buttons a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
 }
}
/* ===== ABOUT ===== */
#about {
  text-align: center;
}

.about-photo {
  margin: 20px auto;
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--accent);
}

#about photo {
  max-width: 750px;
  margin: 15px auto;
  color: var(--text-muted);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  nav {
    flex-direction: column;
    padding: 15px 20px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
  }

  .home {
    min-height: auto;
    padding: 80px 20px;
  }

  .home-content h1 {
    font-size: 32px;
  }

  .section {
    padding: 25px 15px;
    margin: 40px 10px;
  }

  .about-photo {
    width: 160px;
    height: 160px;
  }

@media (max-width: 480px) {
  .project-buttons {
    flex-direction: column;
    align-items: center;
  }
}

  .about-photo {
  border-radius: 20px;
  transition: 0.4s ease;
  border: 2px solid #00ff9d;
}

.about-photo:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.6);
}
  .about-content {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  transition: 0.4s ease;
}
  
  .fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
  
