
:root {
  --background-colour: #2c2c2c;
  --alternate-background-colour: #242424;
  --text-colour: #eee;
  --accent-colour: #66bb6a;
  --secondary-accent-colour: #3b5143;
  --nav-background: #111;
  --button-background: #66bb6a;
  --button-hover: #3b5143;
  --subtitle-colour: #ccc;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Base styles */
body {
     padding-top: 80px; /* Adjust this value to match the height of your header */
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 100;
  font-style: normal;
  background-color: var(--background-colour);
  color: var(--text-colour);
  line-height: 1.6;
}

section {
  min-height: 100vh;
  align-items: center;
}

/* Navigation */
header {
background-color: var(--nav-background);
  padding: 1rem 2rem;  
}


header {
    position: fixed; /* This is the key property that fixes the element */
    top: 0;          /* Aligns the header to the top of the viewport */
    left: 0;         /* Aligns the header to the left of the viewport */
    width: 100%;     /* Makes the header span the full width of the viewport */
   background-color: var(--nav-background);
  padding: 1rem 2rem;  
    z-index: 1000;   /* Ensures the header stays on top of other content */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: var(--accent-colour);
  font-size: 1.4rem;
  transition: 1s;
}

nav a:hover {
  color: var(--text-colour)!important;
  /* font-weight: 600; */
  /* text-decoration: underline; */
}

/* Page layouts */
.page-type1 {
  background-color: var(--background-colour);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 10vh 10vw;
  max-width: 100%;
  margin: auto;
}

.page-type2 {
  background-color: var(--alternate-background-colour);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding: 10vh 10vw;
  max-width: 100%;
  margin: auto;
}

/* ANIMATION EXAMPLE FOR TEXT COLUMN */
.text-column {
  flex: 1 1 45%;
  text-align: left;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 2s ease-out, transform 2s ease-out;
}

/* The state of the elements once they become visible. */
/* We transition them back to full opacity and their original position. */
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* For users who prefer reduced motion, we disable the animations. */
@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* END OF ANIMATION EXAMPLE */

.text-column-right {
  flex: 1 1 45%;
  text-align: right;
}

h1 {
  font-size: clamp(2rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-colour);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--subtitle-colour);
  margin-bottom: 2rem;
}

.cta-button {
  border: none;
  margin-right: 2rem;
  min-width: 10rem;
  text-align: center;
  display: inline-block;
  padding: 0.8rem 1rem;
  background-color: var(--button-background);
  color: var(--text-colour);
  text-decoration: none;
  color: var(--background-colour);
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: background 800ms;
}

.cta-button:hover {
  background-color: var(--button-hover);
  color: var(--text-colour);
}

.paragraph {
  margin-bottom: 1rem;
  text-align: justify;
  text-justify: inter-word;
  font-size: 1rem;
  color: var(--subtitle-colour);
  max-width: 600px;
}


/* Image column */
.image-column {
  flex: 1 1 32%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 100%;
  max-width: 500px;
  border-radius: 70% 30% 40% 60% / 60% 35% 65% 40%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* Media Queries */
@media (max-width: 768px) {
  .page-type1 {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .line-column {
    display: none;
    /* Hide the line column on smaller screens */
    flex: 1 1 0%;
  }

  .text-column,.text-column-right {
    text-align: center;
    flex: 1 1 100%;
  }

nav a {
    font-size: 1rem;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .image-column {
    margin-top: 2rem;
    flex: 1 1 100%;

  }

  .profile-image {
    max-width: 80%;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
      0 25px 50px rgba(0, 0, 0, 0.15);
    filter: contrast(1.1) saturate(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
  }

}

.read-more-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-colour);
  text-decoration: none;
  font-weight: 600;
   transition: 800ms;
}

.read-more-link:hover{
 color:var(--text-colour)!important;
}

/* Modal container */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 2, 2, 0.5);
  
  /* Ensure flex layout for centring */
  justify-content: center;
  align-items: center;
}

/* Modal content box */
.modal-content {
  background: var(--background-colour, #fff); /* Fallback just in case */
  padding: 1rem;
  width: 100%;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 20px;
  border: solid var(--accent-colour) 1px;
  position: relative;
  
  overflow-y: auto;

  /* Remove weird margins */
  margin: 0;
  box-sizing: border-box;
}

/* Close button */
.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.case-study-image{
  border-radius: 0px;
  max-width: 200px;
}

.testimonial-text {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color:var(--accent-colour);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 0.95rem;
  text-align: right;
  margin: 0;
}

a, a:active, a:visited, a:link{
  color: var(--accent-colour)!important;
}



.contact-form {
  max-width: 600px;
  margin: 0 auto;
  /* padding: 1rem; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color:var(--accent-colour);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
  background-color:var(--subtitle-colour);
}

.contact-form button {
  margin: auto;
  min-width: 10rem;
  text-align: center;
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--button-background);
  color: var(--text-colour);
  text-decoration: none;
  color: var(--background-colour);
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: background 800ms;
}

footer {
    display: flex;
    justify-content: center; /* Horizontally centers the flex items */
    align-items: center;     /* Vertically centers the flex items */
    padding: 20px;
    background-color: var(--nav-background);
    text-align: center;      /* Centers the text inside the <p> tags */
}

.footer-content {
    /* You can add specific styles for the content wrapper if needed */
}

/* Optional: Style the links in the footer */
footer a {
    color: var(--subtitle-colour);
    text-decoration: none;
    margin: 0 10px; /* Adds some space between the links */
}

footer a:hover {
    text-decoration: underline;
}