@charset "utf-8";

/* =========================================================
   GLOBAL / RESET
   ========================================================= */

html, body, .wrapper, .content, .site-header, .site-nav, .site-footer {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Legacy classes (kept for consistency if used anywhere) */
.body { font-family: Arial; font-size: 17px; color: #000; }
.header { font-family: Arial; font-size: 36px; text-decoration: underline; color: #000; }
.header2 { font-family: Arial Black; font-size: 24px; text-decoration: underline; color: #000; }
.logo { font-family: "Eurostile Bold"; font-size: 36px; font-weight: bolder; color: #933; letter-spacing: 2px; }
.detail { font-family: Arial; font-size: 14.5px; font-variant: normal; color: #039; }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   WRAPPER / PAGE WIDTH
   ========================================================= */

.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: #ffffff;
  padding: 0 20px 40px;
}

/* =========================================================
   HEADER / TOP RIBBON
   Goal:
   - Keep logo readable on mobile
   - Use hamburger menu on small screens
   - Keep LinkedIn centered with correct hover box
   ========================================================= */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 24px;

  background-color: #ffffff;
  border-bottom: 2px solid #af1818cc;

  /* Helps prevent weird wrapping behavior */
  position: relative;
}

/* Logo area */
.logo-bar {
  padding: 0;
  display: flex;
  align-items: center;
  background-color: transparent;
}

/* ✅ FIX: don’t use width:75% (shrinks too much on mobile)
   Instead: control by height, keep width auto */
.logo-bar img {
  height: 68px;   /* desktop default */
  width: auto;
  max-width: 420px;  /* prevents absurdly huge logo */
}

/* Navigation container */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;

  background-color: transparent;
  border-top: none;
  border-bottom: none;
}

/* Nav links list */
.site-nav ul.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Menu links */
.site-nav a {
  text-decoration: none;
  font-family: Arial;
  font-size: 20px;
  font-weight: bold;
  color: #003366;
  padding: 10px 12px;
  border-radius: 4px;
}

/* Hover (desktop) */
.site-nav a:hover {
  background-color: #039;
  color: #bed0f5;
}

/* LinkedIn icon (centered hover box) */
.linkedin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  line-height: 0;
}

.linkedin-icon img {
  display: block;
  width: 22px;
  height: 22px;
}

.linkedin-icon:hover {
  background: rgba(0,0,0,0.08);
}

.site-nav .linkedin-icon:hover img {
  filter: brightness(0.7);
  transition: 0.2s ease-in-out;
}

/* =========================================================
   DROPDOWN MENUS (Desktop hover)
   ========================================================= */

.site-nav .dropdown {
  position: relative;
}

/* submenu hidden by default */
.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background-color: #d3ddf3;
  border: 1px solid #bed0f5;
  padding: 8px 0;
  list-style: none;
  margin: 0;

  min-width: 180px;
  z-index: 999;
}

/* submenu links */
.site-nav .dropdown-menu li a {
  display: block;
  padding: 6px 16px;
  color: #003366;
  font-family: Arial;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

/* submenu hover */
.site-nav .dropdown-menu li a:hover {
  background-color: #039;
  color: #ffffff;
}

/* show submenu on hover (desktop) */
.site-nav .dropdown:hover > .dropdown-menu {
  display: block;
}

/* =========================================================
   HAMBURGER MENU (Mobile)
   Requires:
   - button.nav-toggle in your HTML
   - ul#primary-nav.nav-links
   - JS toggles .open on ul
   ========================================================= */

/* Hidden by default (desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid #000666;
  color: #000666;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   HERO SLIDER
   ========================================================= */

.hero {
  margin-top: 25px;
}

.slider {
  width: 100%;
  max-width: 875px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slider-track img {
  flex: 0 0 100%;
  width: 100%;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.content {
  margin: 40px auto 0;
  max-width: 875px;

  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 32px 40px;
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  color: #000000;
}

.content p {
  font-size: 16px;
  line-height: 1.5;
  color: #000000;
}

.about-section h1 { margin-top: 0; }
.about-section h2 { margin-top: 25px; color: #003366; }

/* =========================================================
   PROJECT CARDS (Projects landing page)
   ========================================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.project-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform .12s ease, box-shadow .12s ease;
  color: #111;
}

.project-card h3 {
  margin: 0 0 10px 0;
  color: #000666;
  font-size: 1.25rem;
}

.project-card p {
  margin: 0 0 12px 0;
  line-height: 1.55;
  color: #333;
}

.project-cta {
  font-weight: bold;
  color: #000666;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  margin-top: 50px;
  padding-top: 15px;
  border-top: 1px solid #ccc;
  text-align: center;
  font-size: 0.95em;
}

/* =========================================================
   RESPONSIVE RULES
   ========================================================= */

/* Tablet: slightly smaller nav text */
@media screen and (max-width: 900px) {
  .site-nav a { font-size: 16px; }
}

/* Tablet: allow content and slider to be full width */
@media screen and (max-width: 800px) {
  .content, .slider { max-width: 100%; }
}

/* Mobile: hamburger + dropdown-friendly behavior */
@media screen and (max-width: 600px) {

  /* Keep logo readable */
  .logo-bar img {
    height: 54px;     /* minimum readable size */
    max-width: 280px;
  }

  /* Show hamburger */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide the horizontal link row */
  .site-nav ul.nav-links {
    display: none;
    position: absolute;
    right: 16px;
    top: 88px; /* adjust if your header height differs */

    width: min(300px, 92vw);
    background: rgba(255,255,255,0.98);
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);

    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    z-index: 9999;
  }

  /* When JS toggles .open */
  .site-nav ul.nav-links.open {
    display: flex;
  }

  /* Make links comfortable to tap */
  .site-nav a {
    font-size: 16px;
    padding: 12px 10px;
  }

  /* On mobile, don’t use hover dropdown behavior */
  .site-nav .dropdown:hover > .dropdown-menu {
    display: none;
  }

  /* ✅ FIX: Mobile dropdown menus are hidden until opened */
  .site-nav .dropdown-menu {
    position: static;
    display: none;                 /* hidden by default */
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
  }

  /* ✅ When JS adds .submenu-open to the LI, show the submenu */
  .site-nav .dropdown.submenu-open > .dropdown-menu {
    display: block;
  }

  /* Submenu links: easy tap targets */
  .site-nav .dropdown-menu li a {
    font-size: 15px;
    padding: 8px 10px 8px 18px;
    font-weight: bold;
    border-radius: 6px;
  }
}

/* Project cards stack on smaller screens */
@media (max-width: 980px) {
  .project-grid { grid-template-columns: 1fr; }
}
