:root {
  --primary: #0f172a;
  --secondary: #2563eb;
  --light: #f8fafc;
  --gray: #64748b;
}

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

body {
  background: var(--light);
  color: var(--primary);
  line-height: 1.6;
  padding-bottom: 70px; /* space for fixed footer */
}

/* ================= NAVBAR ================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

nav {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

nav h1 a {
  color: var(--secondary);
  text-decoration: none;
  font-size: 1.4rem;
  margin-left:-10px;
}

/* NAV LINKS */
nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav a {
  position: relative;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 10px;
  transition: color 0.3s ease, transform 0.15s ease;
}

/* CLICK SCALE */
nav a:active {
  transform: scale(0.92);
}

/* UNDERLINE ANIMATION */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--secondary);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= SECTIONS ================= */
section {
  padding: 6rem 1rem;
  max-width: 1100px;
  margin: auto;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.center-text {
  max-width: 700px;
  margin: auto;
  text-align: center;
  color: var(--gray);
}

/* ================= HERO ================= */
#hero {
  min-height: 100vh;
  padding-top: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 700px;
}

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

.hero-content h2 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--gray);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--secondary);
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  margin: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

/* ================= SKILLS ================= */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

/* ================= TIMELINE ================= */
.timeline {
  border-left: 3px solid var(--secondary);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

.timeline-item h4 {
  margin-bottom: 0.5rem;
}

/* ================= FORM ================= */
form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #cbd5f5;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-msg {
  text-align: center;
  font-size: 0.9rem;
  color: green;
}

/* ================= SCROLL ANIMATION ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= FOOTER ================= */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  color: var(--primary);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  z-index: 999;
}

footer p {
  font-size: 0.9rem;
  color: #475569;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 65px;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }

  nav ul.show {
    display: flex;
  }
}
