/* =====================
   GLOBAL RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0F172A;
  color: #E5E7EB;
  line-height: 1.6;
}

/* =====================
   REUSABLE CLASSES
===================== */
section {
  padding: 80px 10%;
}

h1, h2, h3 {
  color: #F8FAFC;
}

p {
  color: #94A3B8;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: #38BDF8;
  color: #020617;
}

.btn.primary:hover {
  background-color: #0EA5E9;
}

.btn.secondary {
  border: 2px solid #38BDF8;
  color: #38BDF8;
}

.btn.secondary:hover {
  background-color: #38BDF8;
  color: #020617;
}

/* =====================
   HEADER / NAVBAR
===================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #38BDF8;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #E5E7EB;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background-color: #38BDF8;
  left: 0;
  bottom: -6px;
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =====================
   HERO SECTION
===================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to bottom right,
    #020617,
    #0F172A
  );
}

.hero-content {
  max-width: 700px;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* =====================
   WHY SECTION
===================== */
.why {
  text-align: center;
}

.why h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.card {
  background-color: #020617;
  border: 1px solid #1E293B;
  padding: 30px;
  border-radius: 12px;
  transition: transform 0.3s, border 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  border-color: #38BDF8;
}

.why-text {
  font-size: 18px;
}

/* =====================
   SKILLS
===================== */
.skills h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.skill-card {
  background-color: #020617;
  border: 1px solid #1E293B;
  padding: 25px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: #38BDF8;
  transform: translateY(-6px);
}

/* =====================
   PROJECTS
===================== */
.projects h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background-color: #020617;
  border: 1px solid #1E293B;
  padding: 30px;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #38BDF8;
  transform: translateY(-8px);
}

/* =====================
   ABOUT & CONTACT
===================== */
.about,
.contact {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.contact .btn {
  margin-top: 20px;
}

/* =====================
   FOOTER
===================== */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #020617;
  font-size: 14px;
}

/* =====================
   ANIMATION
===================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =====================
   SCROLL REVEAL
===================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
