/*
 * Style sheet for Kevin Nguyen's personal website.
 * Inspired by modern tech and lifestyle blogs, this theme uses
 * clean layouts, generous white space and an accent colour to
 * draw attention to important elements. Adjust the CSS variables
 * below to tweak colours or spacing site‑wide.
 */

/* CSS variables */
:root {
  --accent-color: #f7d40e; /* yellow accent similar to Justin Tse site */
  --dark-color: #051923;   /* deep blue/black used for hero overlay */
  --light-color: #ffffff;  /* white for backgrounds */
  --text-color: #333333;   /* default dark text */
  --muted-color: #666666;  /* secondary text */
  --section-padding: 4rem; /* vertical padding for sections */
  --max-width: 1100px;
  --transition: all 0.3s ease;
}

/* Global resets */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--dark-color);
}

h2.section-title {
  margin-bottom: 1.2rem;
  font-size: 2rem;
  text-align: center;
  position: relative;
}

h2.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 0.5rem auto 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/fintech.png');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 25, 35, 0.55); /* dark overlay for readability */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-color);
  color: var(--dark-color);
}

.btn-primary:hover {
  background: #eec524;
}

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

.btn-secondary:hover {
  background: var(--accent-color);
  color: var(--dark-color);
}

/* Section styling */
/* Section container: includes top padding and scroll offset so anchors don't hide under the fixed nav */
.section {
  padding: var(--section-padding) 0;
  scroll-margin-top: 80px;
}

.bg-light {
  background: #f9fafc;
}

.bg-dark {
  background: var(--dark-color);
  color: #ffffff;
}

.section-text {
  max-width: 800px;
  margin: 0.8rem auto;
  font-weight: 300;
  color: var(--muted-color);
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background: var(--light-color);
  border-left: 4px solid var(--accent-color);
  padding: 1rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.experience-role {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--dark-color);
}

.experience-duration {
  font-size: 0.85rem;
  color: var(--muted-color);
}

.experience-description {
  font-size: 0.95rem;
  margin-top: 0.6rem;
  color: var(--text-color);
}

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

.interest-card {
  background: var(--light-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.interest-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.interest-title {
  font-size: 1.1rem;
  margin: 0.8rem;
  color: var(--dark-color);
}

.interest-text {
  font-size: 0.9rem;
  margin: 0 0.8rem 1rem;
  color: var(--muted-color);
}

/* Contact Section */
.bg-dark .btn-secondary {
  border-color: #ffffff;
  color: #ffffff;
}

.bg-dark .btn-secondary:hover {
  background: #ffffff;
  color: var(--dark-color);
}

.text-light {
  color: #f5f5f5;
}

/* Footer */
.footer {
  background: #f5f7fa;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .nav-links {
    gap: 1rem;
  }
  .experience-list {
    gap: 1.5rem;
  }
}