/*
 * Main stylesheet for Tony Zaki’s personal website.
 * This design aims to balance executive professionalism with a modern,
 * approachable aesthetic. Feel free to adjust colors and spacing to
 * better align with your personal brand.
 */

/* Root variables for easy theming */
:root {
  --primary-color: #113c6e;    /* dark blue accent */
  --secondary-color: #e5a428;  /* gold accent */
  --background-color: #f9f9fb; /* light background */
  --text-color: #1a1a1a;       /* dark text */
  --muted-text: #666;
  --max-width: 960px;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 80vh;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 60, 110, 0.7); /* dark overlay for legibility */
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  padding: 2rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.hero .tagline {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.4;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.btn.primary {
  background: var(--secondary-color);
  color: #fff;
  border: none;
}
/* Manual darken for hover state since CSS doesn't support the Sass darken() function */
.btn.primary:hover {
  background: #c9911f;
}

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

/* Section styles */
.section {
  padding: 4rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  text-align: center;
}
.section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Pill list for competencies */
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.pill-list li {
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* Experience section */
.experience-item {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.experience-item h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.experience-item span.date {
  font-size: 0.9rem;
  color: var(--muted-text);
  display: block;
  margin-bottom: 0.5rem;
}
.experience-item p {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Education */
.education-item {
  margin-bottom: 1rem;
}
.education-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}
.education-item p {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Contact form */
.contact-section {
  text-align: center;
}
.contact-section .contact-list {
  list-style: none;
  margin: 1rem auto 2rem;
  padding: 0;
  max-width: 500px;
}
.contact-section .contact-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.contact-form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}
.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero h2 {
    font-size: 1.25rem;
  }
  .section {
    padding: 3rem 1rem;
  }
  .experience-item {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
}