:root {
  --accent: #005A9C;
  --accent-dark: #003e6b;
  --cta: #FF6A00;
  --bg: #f9f9f9;
  --bg-alt: #f1f1f1;
  --header-bg: #fff;
  --text: #333333;
  --shadow: 0 2px 16px 0 rgba(34, 53, 110, 0.06);
  --radius: 10px;
  --transition: all 0.28s cubic-bezier(.4, 0, .2, 1);
  --bouncy: cubic-bezier(.25,1.5,.5,1);
}

body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  transition: color .23s;
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--cta);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
}

.nav-links li a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.06rem;
  padding: 0.32em 1em;
  border-radius: 6px;
  transition: background 0.19s, color 0.19s;
  position: relative;
  outline: none;
  text-decoration: none;
}

.nav-links li a.active,
.nav-links li a:hover,
.nav-links li a:focus {
  background: var(--accent);
  color: #fff;
}

/* Subtle underline for active/hover */
.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--cta);
  border-radius: 2px;
  transition: width 0.21s;
  margin: 0.1em auto 0 auto;
}
.nav-links li a:hover::after,
.nav-links li a.active::after,
.nav-links li a:focus::after {
  width: 70%;
}

/* HERO SECTION */
.hero {
  margin-top: 64px;
  background: var(--accent);
  color: #fff;
  padding: 3rem 0 2rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: 1px;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: inherit;
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 0.85em 2.2em;
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 2px 14px 0 rgba(0,0,0,0.09);
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.23s;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .7px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 30px 0 rgba(255,106,0,.10);
  transform: scale(1.05);
}

.btn-link {
  color: var(--accent);
  text-decoration: underline;
  font-size: 1em;
  margin-top: 1.2em;
  font-weight: 600;
  transition: color 0.18s;
}
.btn-link:hover {
  color: var(--cta);
}

/* MAIN LAYOUT */
main {
  flex: 1;
  width: 100%;
  margin-top: 2rem;
}

.section {
  padding: 2.5rem 0 2rem 0;
  background: var(--bg);
}

.centered {
  text-align: center;
}

.section-lead {
  font-size: 1.12rem;
  margin-bottom: 2rem;
  color: #444;
}

/* CARDS */
.cards-row,
.project-cards,
.about-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card,
.project-card,
.about-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 340px;
  padding: 2rem 1.5rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .22s, transform .23s;
}
.card:hover, .card:focus-within,
.project-card:hover, .project-card:focus-within,
.about-card:hover, .about-card:focus-within {
  box-shadow: 0 10px 32px 0 rgba(0,90,156,.12);
  transform: scale(1.04) rotate(-2deg);
}
.card h3,
.project-card h3,
.about-card h3 { margin-top: 0; color: var(--text); }

.project-image-placeholder {
  width: 100%;
  height: 140px;
  background: var(--bg-alt);
  border-radius: 8px;
  margin-bottom: 1rem;
  display: block;
}

/* ABOUT DIVIDER */
.about-divider {
  border: none;
  border-top: 2px solid #e1e5ee;
  width: 50px;
  margin: 1rem auto;
}

/* CONTACT (for future use) */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}
.contact-form,
.contact-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  min-width: 260px;
  max-width: 400px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  border: 1.5px solid #c0c9dd;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s, box-shadow .18s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2.5px #b6d2fa;
}
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9em 2.2em;
  border-radius: var(--radius);
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 0.5em;
  transition: var(--transition);
  cursor: not-allowed;
  opacity: 0.7;
}
.form-note {
  font-size: 0.97em;
  color: #7481a3;
  margin-top: 0.9em;
}
.contact-info h3 {
  margin-top: 0;
  color: var(--accent);
}

/* FOOTER */
footer {
  background: #fff;
  color: #888;
  font-size: 1em;
  box-shadow: 0 -1px 10px 0 rgba(34,53,110,0.03);
  padding: 2rem 0 1.2rem 0;
  letter-spacing: 0.5px;
  margin-top: auto;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cards-row, .project-cards, .about-cards, .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .navbar, .nav-container {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 0;
  }
}

@media (max-width: 600px) {
  .container {
    width: 98%;
    padding: 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section {
    padding: 1.2rem 0 1rem 0;
  }
  .navbar {
    height: auto;
    padding: 0.2rem 0;
  }
  .nav-links {
    gap: 0.7rem;
  }
  .card, .project-card, .about-card, .contact-info, .contact-form {
    padding: 1rem 0.7rem;
    min-width: unset;
    max-width: 97vw;
  }
}

/* SCROLL ENTRANCE ANIMATION */
.scroll-animate {
  opacity: 0;
  transform: translateY(60px) scale(.96);
  transition: opacity 0.7s cubic-bezier(.25,1.5,.5,1), transform 0.7s cubic-bezier(.25,1.5,.5,1);
}
.scroll-animate.visible {
  opacity: 1;
  transform: none;
}
