/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f4f4f4;
}

p {
	margin: 20px 0; /* Set the margin for all p tags */
}


/* Top navigation */
.top-nav {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1em;
   /*max-width: 1200px;*/
   margin: 0 auto;
   background-color: #1a2b3c;
}

.top-nav .logo {
  width: 250px;
  height: auto;
  margin-right: 20px;
}

.top-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.top-nav .nav-menu li {
  margin-right: 20px;
}

.top-nav .nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

.top-nav .nav-menu li a:hover {
    color: #00aaff;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: row; /* column to row */
		align-items: flex-start; /* added */
    }
	
	.top-nav .logo {
        margin-right: 20px;
    }
	
    .top-nav .nav-menu {
		display: grid;
        grid-template-columns: 1fr;
        align-items: start;
    }
    .top-nav .nav-menu li {
        margin-bottom: 10px;
    }
}

/* Scroll Indicator Styles */
.scroll-indicator {
  position: fixed;
  top: 0;
  right: 10px;
  width: 8px;
  height: 100vh;
  background: linear-gradient(to bottom, 
    #ff4d4d 0%,    /* Red */
    #ff9a3d 25%,   /* Orange */
    #ffcc00 50%,   /* Yellow */
    #33cc33 75%,   /* Green */
    #3399ff 100%   /* Blue */
  );
  border-radius: 4px;
  z-index: 1000;
  overflow: visible;
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  height: 0%;
  transition: height 0.1s ease-out;
}

.scroll-percentage {
  position: absolute;
  right: 15px;
  top: 0;
  transform: translateY(-50%);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #333;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 5px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


/* Hero section styles */

/* Hero_home section styles */
.hero_home {
    background: url(images/electrical-troubleshooting-techniques.webp) no-repeat center/cover;
    color: white;
    text-align: center;
    padding: 50px 20px;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero_home h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero_home p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Hero_about section styles */
.hero_about {
    background: url(images/AboutUs_01.jpg) no-repeat center/cover;
    color: white;
    text-align: left;
    padding: 10px 100px 10px 100px;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero_about h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about-text-box {
  position: relative;
  padding: 1px 20px 1px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

.hero_about p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Case study hero section styles */
.case-study-hero {
    color: black;
    text-align: center;
    padding: 20px 20px;
    background-blend-mode: overlay;
}

.case-study-hero h1 {
    font-size: 2.5em;
	padding: 10px 100px 10px 100px;
    margin-bottom: 20px;
}

.case-study-hero p {
    font-size: 1.2em;
    margin-bottom: 50px 0;
}

.case-study-hero .container .opening-line {
    margin-left: 50px;
	margin-right: 50px;
}



/* Container for case study content */
.container-case-study {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px;
}

.case-study-content {
    padding: 10px 50px 20px 50px;
}

.case-study-content ul {
  margin-left: 100px;
}

.container-case-study p {
	margin-left: 50px;
}



/* Call-to-action button styles */
.cta-button {
    background-color: #00aaff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
}

.cta-button:hover {
    background-color: #0088cc;
}

/* disclaimer */
.disclaimer {
  font-size: 0.75em;
  color: #333;
  padding: 20px;
  background-color: #f2f2f2;
  border-top: 1px solid #ccc;
}



/* Footer styles */
footer {
    background-color: #1a2b3c;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 0px;
}



/* Image styles */
img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.case-image {
	max-width: 500px;
	min-width: 150px;
}


/* Content padding and margin styles */
.content-padding {
    padding: 20px;
}

.content-margin {
    margin-bottom: 20px;
}

.content-indent {
    text-indent: 20px;
}





/* Media query for smaller screens */
@media (max-width: 768px) {
    /*Images*/
	img {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }
	
	/*About Page*/
	.hero_about {
        padding: 10px 20px;/* !important; /* Reduced padding on sides */
    }
    
    .hero_about h1 {
        padding: 0;/* !important; /* Remove any horizontal padding */
        font-size: 2em;/* !important; /* Optional: reduce font size */
    }
    
    .about-text-box {
        padding: 1px 15px;/* !important; /* Reduced inner padding */
        border-radius: 15px;/* !important; /* Optional: smaller border radius */
    }
    
    .hero_about p {
        font-size: 1em;/* !important; /* Optional: reduce font size */
        margin-bottom: 20px;/* !important; /* Reduce bottom margin */
    }
	
	/* Content section adjustments */
    .case-study-content {
        padding: 10px 20px !important; /* Reduced from 10px 50px */
    }
    
    .container-case-study {
        padding: 10px 5px !important; /* Reduced from 10px 10px */
    }
    
    .container-case-study p {
        margin-left: 20px !important; /* Reduced from 50px */
        margin-right: 10px !important; /* Added to prevent text from touching edges */
    }
    
    .case-study-content ul {
        margin-left: 40px !important; /* Reduced from 100px */
        padding-left: 10px !important; /* Added for better spacing */
    }
    
    /* Maintain indent for first paragraph after headings */
    .container-case-study h2 + p {
        text-indent: 20px !important;
    }
    
    /* Keep bullet points indented relative to paragraphs */
    .container-case-study p + ul {
        margin-left: 40px !important;
    }
}