/* Global Styles */
:root {
  /*
   * Updated colour palette to match the new logo.  The primary
   * colour is a deep navy (#003366) and the accent is a
   * vibrant teal (#00A3E0).  Light and dark text values are set
   * accordingly.  These variables drive the appearance of the
   * entire site.
   */
  --primary-color: #003366;
  /*
   * Update the accent colour to a deeper shade of blue (#0077B6).  The
   * original accent (#00A3E0) did not provide sufficient contrast when
   * used with light text (white) or white backgrounds.  This darker
   * blue yields a contrast ratio greater than 4.5:1 against white,
   * satisfying WCAG AA requirements for normal weight text and links.
   */
  --accent-color: #0077B6;
  --light-color: #ffffff;
  --dark-text: #003366;

  /* Additional brand accent specifically for the call button on mobile.  A warm
   * gold draws attention to the call to action and stands out against the
   * navy header without clashing with the existing accent palette. */
  --call-button-bg: #FFD447;
  --call-button-text: #003366;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background: #f5f8fa;
}

/* -------------------------------------------------------------------------
 * Responsive navigation enhancements for mobile users
 *
 * On smaller screens it can be difficult to accommodate a traditional
 * horizontal navigation bar.  To improve usability on phones, we hide the
 * navigation links by default and expose a hamburger toggle along with a
 * prominent call‑to‑action button.  The call button uses a tel: link so
 * that tapping it on a mobile device immediately initiates a call.  The
 * hamburger toggle reveals the collapsed navigation list.  These rules are
 * only applied below 768px wide; on larger screens the existing desktop
 * navigation remains unchanged.
 */

/* container for the call button and hamburger icon; hidden on desktops */
.mobile-actions {
  display: none;
  align-items: center;
  gap: 10px;
  /* push the call button and menu to the right on small screens */
  margin-left: auto;
}

/* styling for the call button; uses the site accent colour to stand out */
.call-button {
  /* use a brighter accent for the call button so it pops against the dark
   * header.  The text colour is set to the primary colour for contrast. */
  color: var(--call-button-text);
  background: var(--call-button-bg);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  border: none;
}

/* slight spacing between the icon and the word “Call” */
.call-button i {
  margin-right: 6px;
}

/* hamburger button inherits header text colour for consistency */
.menu-toggle {
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  /* reveal call + hamburger on mobile */
  .mobile-actions {
    display: flex;
    align-items: center;
    /* push call and menu to the end of header */
    margin-left: auto;
    gap: 10px;
  }

  /* layout header top horizontally on small screens */
  .header-top {
    display: flex;
    align-items: center;
  }

  /* slightly reduce the language selector padding and font size so it fits better on mobile */
  .header-top select {
    padding: 4px 8px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
  }
  /* collapse the navigation list into a vertical stack; hidden by default */
  header nav ul {
    /* hide the navigation by default on small screens.  This rule has
     * higher specificity than the generic nav selector so it wins if
     * another rule defines a display for nav ul. */
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-color);
    margin-top: 10px;
    padding-left: 0;
  }
  /* show the nav when toggled */
  header nav ul.open {
    display: flex;
  }
  /* vertical spacing for each menu item */
  nav li {
    margin: 10px 0;
  }
  /* make links full width for easier tapping */
  nav a {
    padding: 10px 20px;
    display: block;
  }
}

header {
  background: var(--primary-color);
  padding: 10px 20px;
}

header .logo {
  display: flex;
  align-items: center;
  color: var(--light-color);
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}

/* Logo image shown next to the company name */
.logo-img {
  width: 48px;
  height: 48px;
  margin-right: 10px;
}

header .logo span {
  line-height: 1;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav li {
  margin-right: 20px;
}

nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  /* When hovering navigation links use the darker accent colour for better
   * contrast on the dark header background.  */
  color: #005e96;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: var(--light-color);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  /* Use the darker accent colour for button backgrounds.  This
   * background, combined with white text, provides a high contrast
   * ratio that improves readability, especially for the “Get in Touch”
   * call to action on the hero section.  */
  background: var(--accent-color);
  color: var(--light-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  /* Darken the accent colour on hover.  A slightly deeper shade of the
   * accent helps the hover state stand out while still maintaining
   * sufficient contrast against the white text.  */
  background: #005e96;
}

/*
 * Custom styling for the PayPal "Secure Payment" trigger.  The default PayPal
 * smart buttons cannot be relabelled to arbitrary text, so this custom
 * button provides a branded look and clear call to action.  The colour
 * palette draws from PayPal’s own brand (gold for the background and a
 * dark foreground) to achieve high contrast on both light and dark
 * backgrounds.  When clicked the button will be replaced with the
 * dynamically rendered PayPal smart buttons.
 */
/*
 * Custom styling for the PayPal "Secure Payment" trigger.
 * Use the site's accent colour instead of PayPal's yellow so that
 * the call‑to‑action blends seamlessly with the rest of the design.  We
 * still keep the same sizing and layout as the default .btn class but
 * override the colours for consistency.  On hover the button darkens
 * slightly to provide visual feedback.
 */
.paypal-custom-btn {
  background-color: var(--accent-color);
  color: var(--light-color);
  padding: 12px 25px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.paypal-custom-btn:hover {
  /* Darken the accent colour on hover.  We choose a slightly deeper
   * shade of the accent to achieve sufficient contrast without
   * deviating too far from the primary palette. */
  /* Use the same hover colour as the generic buttons so that all
   * call‑to‑action elements behave consistently.  */
  background-color: #005e96;
}

/*
 * High contrast styling for Amazon links on the affiliates pages.  These
 * buttons adopt a light background with dark text and a prominent border to
 * ensure readability on both light and dark card backgrounds.  Apply this
 * class in addition to the base .btn to reuse sizing and padding.
 */
.amazon-btn {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/*
 * Override link colour rules inside .card so that buttons retain
 * their intended foreground colours.  Without this override the
 * generic `.card a` selector sets the colour to the accent colour,
 * making text invisible on the accent‑coloured buttons.  The more
 * specific `.card .btn` selector ensures that all buttons in
 * cards use white text, while the `.card .amazon-btn` rule
 * reassigns the dark text for Amazon buttons.
 */
.card .btn {
  color: var(--light-color);
}

.card .amazon-btn {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/*
 * The review buttons on affiliate cards use the same styling as the base
 * .btn class.  Declaring a separate class makes it easier to target
 * these buttons in the markup without affecting the Amazon styling.
 */
.review-btn {
  background: var(--accent-color);
  color: var(--light-color);
}

.amazon-btn:hover {
  background-color: #f0f0f0;
}

/* Sections */
.section {
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 2rem;
}

.services .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1;
  min-width: 250px;
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.card p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.card a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
}

/* Reviews Page */
/* Cards container for reviews */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* General card styles are inherited from .card */

/* Review card specific styles */
.review-card img,
.review-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

.rating {
  color: #f1c40f;
  margin-bottom: 10px;
}

/* Advertisement container */
.ad-container {
  background: #eef1f5;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px dashed #ccc;
  text-align: center;
  border-radius: 6px;
}

.ad-container p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* About Page */
/* Container for about section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.about-img {
  width: 300px;
  max-width: 100%;
  border-radius: 8px;
}

.about-text {
  flex: 1;
}

/* Mission list styling */
.mission-list {
  margin-left: 20px;
  list-style: disc;
}

/* Download buttons container */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Resume header styling similar to GDIT template */
.resume-header {
  background: #eef3f8;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dce3e8;
}

.resume-header h1 {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin: 0;
}

.resume-header .tagline {
  font-size: 1.1rem;
  color: #555;
  margin-top: 4px;
}

.resume-header .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-header .contact-info li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.resume-header .contact-info i {
  margin-right: 6px;
  color: var(--accent-color);
}

/* Expertise list styling */
.expertise-list {
  margin-left: 20px;
  list-style: disc;
}

.expertise-list li {
  margin-bottom: 6px;
}

.section.summary p {
  margin-bottom: 15px;
}

/* Contact */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form button {
  background: var(--accent-color);
  color: var(--light-color);
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #16a085;
}

/* Contact section */
.contact {
  max-width: 800px;
  margin: 0 auto;
}

/* -------------------------------------------------------------------------
 * Mobile header layout improvements
 *
 * This override positions the logo centrally and arranges the language
 * selector, call button and menu toggle beneath it for mobile screens.
 * It appears at the end of the stylesheet so its rules override earlier
 * definitions.
 */
@media (max-width: 768px) {
  .header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .header-top > a.logo {
    flex: 0 0 100%;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .mobile-actions {
    display: contents;
  }
  .header-top select,
  .header-top .call-button,
  .header-top .menu-toggle {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .header-top select {
    padding: 6px 8px;
    font-size: 0.85rem;
    margin: 0;
    background: var(--primary-color);
    color: var(--light-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-weight: bold;
    appearance: none;
  }
  .header-top .call-button {
    padding: 8px 12px;
    font-size: 0.9rem;
    background: var(--call-button-bg);
    color: var(--call-button-text);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    border: none;
  }
  .header-top .call-button i {
    margin-right: 6px;
  }
  .header-top .menu-toggle {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
  }
  header nav ul {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background: var(--primary-color);
    margin-top: 10px;
    padding-left: 0;
  }
  header nav ul.open {
    display: flex !important;
  }
  nav li {
    margin: 10px 0;
  }
  nav a {
    padding: 10px 20px;
    display: block;
  }
}

footer {
  background: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }
  .about-section {
    flex-direction: column;
  }
  .about-section img {
    width: 100%;
  }
}


/* Style for language selector to blend into the header design */
nav select {
  background: var(--primary-color);
  color: var(--light-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 1rem;
  appearance: none; /* Remove default arrow for consistent styling */
  cursor: pointer;
}
nav select option {
  color: var(--dark-text);
  background: var(--light-color);
}
/* Adjust margin for the language selector container */
nav li select {
  margin-left: 0;
}


/* Layout tweaks for the header.  The header is split into two rows:
   a top bar with the logo and language selector, and a bottom row
   containing the navigation links.  This prevents the navigation
   from wrapping onto a second line when a translated language adds
   extra characters. */

/* Container holding the logo and language selector */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

/* The language selector will live outside of the nav so we restyle it
   to blend into the header.  We scope these rules to the header-top
   to avoid affecting other select elements on the page. */
.header-top select {
  background: var(--primary-color);
  color: var(--light-color);
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 1rem;
  appearance: none;
  cursor: pointer;
}
.header-top select option {
  color: var(--dark-text);
  background: var(--light-color);
}

/* The navigation list now occupies its own row below the header-top. */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* remove default margin/spacing reset for nav items */
}

/* Remove the old rule that pushed the language selector to the right.
   The language selector is now in header-top so this is no longer used. */
