/* Font Imports */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap");

/* Universal Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* Variables */
:root {
  --primary-color: #F29F05;
  --secondary-color: #F2C230;
  --accent-primary-color: #2679ed;
  --accent-secondary-color: #F29F05;
  --text-on-dark: #f1f1f1;
  --text-on-light: #262626;

  --font-size-body: 1rem;
  --font-size-heading-large: 2.5rem;
  --font-size-heading-medium: 2rem;
  --font-size-heading-small: 1.5rem;

  --line-height-normal: 1.6;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --side-header-width: 200px;
}

/* Typography */
body {
  font-family: 'Poppins', sans-serif;
  font-size: var(--font-size-body);
  color: var(--text-on-light);
  background-color: var(--secondary-color);
  line-height: var(--line-height-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

p, ul, ol, a, button, input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--accent-primary-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

::selection {
  background-color: var(--accent-secondary-color);
  color: var(--text-on-light);
  text-shadow: none;
}

/* Header Container */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: var(--primary-color);
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  background: var(--accent-secondary-color);
  color: white;
  padding: 10px;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

/* Navigation Styling */
.main-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%;
  padding-top: 2rem;
}

.main-nav ul {
  list-style: none;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;
}

.main-nav li {
  width: 100%;
}

.main-nav a {
  display: block;
  width: 100%; /* Ensures the link takes up the full width of the sidebar */
  padding: 15px;
  font-size: 1rem;
  color: var(--text-on-dark);
  background: var(--primary-color);  /* Consistent with sidebar background */
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  transform: scale(1.02);  /* Slight zoom without altering layout dimensions */
  background: var(--accent-secondary-color);
  color: var(--text-on-light);
  text-decoration: underline;
}

.content-main {
  margin-left: 200px;
  padding: var(--spacing-lg);
  min-height: 100vh;
}

.logo {
  margin-bottom: var(--spacing-sm);
}

.logo img {
  max-width: 100%;
  height: auto;
  width: 120px;
}

.site-cta-button {
  font-family: 'Raleway', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-on-dark);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin: auto auto;
  text-align: center;
  }
  
  .site-cta-button:hover {
  color: var(--text-on-dark);
  background-color: var(--accent-secondary-color);
  text-decoration: underline;
  }

.footer {
  background: var(--primary-color);
  color: var(--text-on-dark);
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  flex-shrink: 0;
  margin-left: 200px;
  width: calc(100% - 200px);
}

.footer p {
  margin-bottom: var(--spacing-xs);
  text-align: center;
  color: var(--text-color); 
}

footer a {
  color: var(--accent-primary-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


.footer .social-icons {
  margin-top: var(--spacing-xs);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
}

.footer .social-icons a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.footer .social-icons a:hover img {
  transform: scale(1.2);
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox-content {
  max-width: 90%;
  padding: var(--spacing-sm);
  border-radius: 10px;
  background-color: var(--accent-primary-color);
  color: var(--text-on-dark);
  position: relative;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: var(--spacing-xs);
  right: var(--spacing-xs);
  font-size: 2rem;
  color: var(--text-on-light);
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--accent-secondary-color);
}

/* Mobile Styles */
@media (max-width: 811px) {
  header {
    transform: translateX(-100%);
    width: 250px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 2rem;
    transition: transform 0.3s ease-in-out;
  }

  /* Show menu when active */
  header.active {
    transform: translateX(0);
  }

  /* Hamburger Button */
  .nav-toggle {
    display: block;
  }

  /* Navigation Link Styling for Mobile */
  .main-nav a {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    color: var(--text-on-dark);
    background: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  }

  .main-nav a:hover {
    transform: scale(1.02);
    background: var(--accent-secondary-color);
    color: var(--text-on-light);
    text-decoration: underline;
  }

  /* Content Adjustment */
  .content-main {
    margin-left: 0;
  }

  .logo img {
    width: 100px;
  }

  .site-cta-button {
    margin-top: var(--spacing-md);
  }

  .footer {
    margin-left: 0;
    width: 100%;
  }

  footer .social-links {
    flex-direction: column;
    gap: var(--spacing-xs);
  }

  footer .footer-note {
    font-size: 0.8rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover {
    transform: scale(1.02);
    background: var(--accent-secondary-color);
    color: var(--text-on-light);
    text-decoration: underline;
  }
}