/* 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;
   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; 
        align-items: flex-start; 
    }
    
    .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%,    
    #ff9a3d 25%,   
    #ffcc00 50%,   
    #33cc33 75%,   
    #3399ff 100%   
  );
  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_home section styles - IMPROVED OVERLAY */
.hero_home {
    position: relative;
    background: url(images/Logo/Digital_Media_Graphic.png) no-repeat center/cover;
    color: white;
    text-align: center;
    padding: 20px 20px;
    min-height: 50vh;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(26, 43, 60, 0.85) 0%,
        rgba(0, 170, 255, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero_home .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero_home h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.9);
    font-weight: 700;
}

.hero_home h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    color: #00aaff;
}

.hero_home p {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
    line-height: 1.6;
}

/* 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 - ENHANCED */
.cta-button {
    background: linear-gradient(45deg, #00aaff, #0088cc);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,170,255,0.4);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: linear-gradient(45deg, #0088cc, #006699);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,170,255,0.6);
}

/* 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;
    }
    
    /* Hero home mobile adjustments */
    .hero_home {
        padding: 50px 5px;
    }

    .hero_home .container {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .hero_home h1 {
        font-size: 2.2em;
    }

    .hero_home h2 {
        font-size: 1.4em;
    }

    .hero_home p {
        font-size: 1.1em;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 1.1em;
    }
    
    /* About Page */
    .hero_about {
        padding: 10px 20px;
    }
    
    .hero_about h1 {
        padding: 0;
        font-size: 2em;
    }
    
    .about-text-box {
        padding: 1px 15px;
        border-radius: 15px;
    }
    
    .hero_about p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    /* Content section adjustments */
    .case-study-content {
        padding: 10px 20px !important;
    }
    
    .container-case-study {
        padding: 10px 5px !important;
    }
    
    .container-case-study p {
        margin-left: 20px !important;
        margin-right: 10px !important;
    }
    
    .case-study-content ul {
        margin-left: 40px !important;
        padding-left: 10px !important;
    }
    
    /* 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;
    }
}