/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

header {
    background-color: #001f3f;
    color: white;
    padding: 10px 0;
    text-align: center;
}

/* Navigation Bar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #001f3f; /* Dark blue */
    padding: 10px 20px;
    border-bottom: 3px solid #ff4136;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 90px; /* Adjusted size for the logo */
    height: auto;
    margin-right: 10px;
}

.company-name {
    font-size: 1.5em;
    color: white;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #ff4136; /* Red color on hover */
}

footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer img {
    width: 50px;
    height: auto;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    nav {
        flex-direction: column; /* Stack nav items on smaller screens */
        align-items: flex-start; /* Align to the left */
    }

    nav ul {
        flex-direction: column; /* Change the list to a column */
    }

    nav ul li {
        margin: 10px 0; /* Space out menu items */
    }

    .gallery-content {
        padding: 30px; /* Reduce padding for smaller screens */
    }

    .project-box {
        width: 90%; /* Full width on smaller devices */
        margin: 10px 0; /* Add margin between boxes */
    }
}

@media (max-width: 768px) {
    .home-intro h1 {
        font-size: 2.5em; /* Adjust font size for smaller screens */
    }

    .home-intro p {
        font-size: 1.2em; /* Adjust font size for smaller screens */
    }

    .project-images img {
        width: 100%; /* Full width for images on small devices */
    }
}

/* Other Page Styles (About, Gallery, etc.) remain unchanged for brevity */

/*above is the adaptive   */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

header {
    background-color: #001f3f;
    color: white;
    padding: 10px 0;
    text-align: center;
}

/* Navigation Bar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #001f3f; /* Dark blue */
    padding: 10px 20px;
    border-bottom: 3px solid #ff4136;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 90px; /* Adjusted size for the logo */
    height: auto;
    margin-right: 10px;
}

.company-name {
    font-size: 1.5em;
    color: white;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #ff4136; /* Red color on hover */
}


nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

footer {
    background-color: #001f3f;
    color: white;
    text-align: center;
    padding: 20px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer img {
    width: 50px;
    height: auto;
}
/* Gallery Page Styles */
.gallery-content {
    display: flex;
    justify-content: space-around;
    padding: 50px;
    background-color: #f4f4f4;
}

.project-box {
    background-color: #001f3f; /* Dark blue */
    color: white;
    padding: 20px;
    width: 45%;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-box:hover {
    transform: translateY(-10px);
}

.project-box h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ff4136; /* Red color for the heading */
}

.project-box ul {
    list-style-type: none;
    padding-left: 0;
}

.project-box ul li {
    background-color: #ffffff;
    color: #001f3f;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.project-box ul li:hover {
    background-color: #ff4136; /* Hover effect on list items */
    color: white;
}
/* Gallery Page Styles */
.gallery-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px;
    background-image: url('images/gallery.png'); /* Background image for the gallery */
    background-size: cover;
    background-position: center;
    color: white;
}

.project-box {
    background-color: rgba(0, 31, 63, 0.8); /* Dark blue with transparency */
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-box strong {
    color: #ff4136; /* Highlighted red color */
}

.image-gallery {
    width: 100%;
    text-align: center;
}

.image-gallery h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-images img:hover {
    transform: scale(1.05);
}
/* Gallery Page Styles 2 */
.gallery-content {
    padding: 50px;
    background-image: url('images/gallery.png');
    background-size: cover;
    background-position: center;
    color: white;
}

.project-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.project-box {
    background-color: rgba(0, 31, 63, 0.8); 
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 48%; /* Adjust to place boxes side by side */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    text-align: center;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-images img:hover {
    transform: scale(1.05);
}

/* Modal Slideshow Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    max-width: 80%;
}

.modal-image {
    width: 90%;
    max-height: 50vh;
    border-radius: 10px;
}

.modal-slide {
    display: none; /* Hide slides by default */
}

.modal-slide img {
    width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background-color 0.3s ease;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5); /* Make buttons stand out */
}

.next {
    right: 10px;
}

.prev {
    left: 10px;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 255, 255, 0.8); /* Hover effect */
    color: black;
}



/* About Page Styles */

.about-content {
    background-image: url('images/about.png'); /* Background image */
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    color: white;
    text-align: left;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.6); /* Adds fade effect over the image */
}

.about-content h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
    transition: color 0.3s ease-in-out;
}

.about-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.about-subheading:hover {
    color: #ff4136; /* Red color on hover */
}
/* Gallery Page Styles */
.gallery-content {
    display: flex;
    justify-content: space-around;
    padding: 50px;
    background-color: #f4f4f4;
}

.project-box {
    background-color: #001f3f; /* Dark blue */
    color: white;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-box h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.project-box p {
    font-size: 1.2em;
    line-height: 1.6;
}

.project-box strong {
    color: #ff4136; /* Highlighted red color for emphasis */
}


/* Footer Styles */
footer {
    background-color: #001f3f; /* Dark blue color */
    padding: 10px 0; /* Reduced padding for a smaller footer */
    text-align: center;
    border-top: 2px solid #ff4136; /* Red border */
}

.footer-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-logo {
    width: 50px; /* Slightly increased logo size */
    height: auto;
    margin-right: 10px;
}

footer p {
    margin: 0;
    font-size: 1.2em; /* Adjust font size as needed */
}


.main-intro, .about-intro {
    background-size: cover;
    background-position: center;
    padding: 100px;
    color: white;
    text-align: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Home Page Styles */
.home-intro {
    /* background-image: url('images/home pic.png'); Your background image */
    background-size: cover;
    background-position: center;
    height: 85vh; /* Full viewport height */
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5); /* This adds the fade effect */
}

.home-intro h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.home-intro p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.home-intro .btn {
    background-color: #ff4136; /* Red color for the button */
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
}

.home-intro .btn:hover {
    background-color: #ff851b; /* Lighter shade on hover */
}



/* Contact Form */
.contact-form {
    padding: 50px;
    max-width: 600px;
    margin: auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 5px;
}

.contact-form input, .contact-form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.contact-form button {
    padding: 10px;
    background-color: #ff4136;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #020101;
}

/* Products Page Styles */
.products {
    padding: 50px;
    background-color: #f9f9f9;
    background: url('images/your-background-image.jpg') no-repeat center center fixed;
}

/* Product grid styling */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 products per row */
    gap: 20px; /* Space between products */
    margin: 20px;
}

.product-item {
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0; /* Reduced border size */
    border-radius: 10px; /* Add slight rounding to the corners */
}

.product-img {
    position: relative;
    width: 100%;
    height: 300px; /* Increased the size of the images */
    padding: 5px; /* Reduced padding around the images */
}

.product-front,
.product-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.product-back {
    opacity: 0; /* Initially hide the back image */
}

.product-item:hover .product-front {
    opacity: 0; /* Hide the front image on hover */
}

.product-item:hover .product-back {
    opacity: 1; /* Show the back image on hover */
}

/* Product name styling */
.product-item h3 {
    margin-top: 10px; /* Space between image and product name */
    font-size: 1.2rem;
    font-weight: bold;
    color: #001f3f; /* Changed to red color */
    text-align: center; /* Center-align the product name */
}

/* Background fade effect for the page */
body {
    background: url('images/your-background-image.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity for the fading effect */
    z-index: -1; /* Ensure it's behind all content */
}



/* construction page */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

.projects-completed {
    background-image: url('images/Construction.png'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    /* height: 100vh; */
    padding: 80px 20px;
    color: white;
    text-align: flex;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5); /* Adds the fading effect */
}

.projects-content {
    max-width: 1200px;
    margin: auto;
}

.projects-description p {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: left;
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.project-images img {
    width: 45%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.zigzag-img:nth-child(odd) {
    transform: translateX(-10%);
}

.zigzag-img:nth-child(even) {
    transform: translateX(10%);
}

.project-images img:hover {
    transform: scale(1.05);
}



/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('images/home\ pic.png');
    background-size: cover;
    background-position: center;
    color: white;
}

header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Fencing Information Section */
.fencing-info {
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.6);
    margin: 20px;
    border-radius: 10px;
}

.fencing-info h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.fencing-info ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Fencing Gallery */
.fencing-gallery {
    padding: 50px 20px;
}

.fence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fence-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fence-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Footer */

/* Ribbon styling */
.ribbon {
    /* background-color: ; Dark background */
    color: white; /* White font */
    text-align: center;
    font-size: 16px; /* Adjust to fit your design */
    padding: 8px 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.ribbon p {
    display: inline-block;
    margin: 0;
    padding: 0 100%; /* Add space on both sides for the horizontal scrolling effect */
    animation: scroll 120s linear infinite; /* Adjust timing for speed */
}

/* Keyframes for horizontal movement */
@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Style for the social media icons */
.social-icons {
    display: inline-block;
    margin-left: 20px;
}

.social-icons a {
    color: white; /* Adjust this color based on your design */
    font-size: 12px;
    margin-right: 15px;
    text-decoration: none;
}

.social-icons a:hover {
    color: #f04c4c; /* Add hover effect */
}



.footer-ribbon {
    /* background-color: #333; Adjust background color if needed */
    color: white;
    padding: 1px;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
}

.footer-ribbon p {
    animation: ribbon-scroll 50s linear infinite; /* Horizontal scroll effect */
}

@keyframes ribbon-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* new upadtes 2025 */
/* About page styling with parallax background   */
/* General Section Styling */
.section-block {
  padding: 60px 10%;
  /* background: lightslategray; */
  text-align: justify;
   /* background: #fff; */
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  height: 500px;
  width: 100%;
}

/* Dropdown Nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  /* background: #fff; */
  box-shadow: 0px 4px 6px rgba(0,0,0,0.2);
  padding: 10px;
  z-index: 1000;
}

.dropdown-content li {
  display: block;
  margin: 5px 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Director Section Layout */
.director-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.director-text {
  flex: 1;
}

.director-slideshow {
  flex: 1;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  min-height: 400px; /* 👈 add this */
  /* background: #f4f4f4; temporary background for testing */
}

.director-slideshow img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
}

.fade {
  animation: fadeEffect 2s;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* accesibility to phones  */
@media (max-width: 768px) {
  .director-section {
    flex-direction: column;
  }

  .director-slideshow img {
    width: 100%;
    height: auto;
  }

  .parallax {
    background-attachment: scroll;
  }
}

/* transfomationd */
#transformations {
  text-align: left; /* Keep content aligned to the left */
}

#transformations h2 {
  text-align: left; /* Make sure the heading stays left too */
}

#transformations p {
  text-align: left;
  max-width: 900px; /* optional: keep the text from stretching too wide */
  margin: 0 auto 20px 0; /* keep it visually neat and aligned */
  line-height: 1.8; /* improve readability */
}


/* Slideshow Base */
.director-slideshow {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.director-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* Slides hidden by default */
.slide {
  display: none;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* Active slide visible */
.slide.active {
  display: block;
  opacity: 1;
}

/* Slideshow container */
.director-slideshow {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.director-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Slides stacked on top of each other */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

/* Active slide visible */
.slide.active {
  opacity: 1;
  z-index: 1;
}




/* sheq adjustments */

/* new css */
/* NAVBAR */
header {
  position: fixed;
  top: 0;
  width: 100%;
  /* background-color: #fff; */
  z-index: 999;
  box-shadow: 0 2px 5px #001f3f;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  width: 50px;
  margin-right: 10px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  padding: 5px 0;
  display: block;
}

.nav-links li a:hover {
  color: #d2232a; /* accent color */
}

.dropdown-content {
  display: none;
  position: absolute;
  /* background-color: #fff; */
  min-width: 160px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown-content li a {
  padding: 10px 15px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* FOOTER */
footer {
  background-color: #001f3f;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

footer .footer-logo {
  width: 60px;
  margin-bottom: 10px;
}

footer .social-links {
  margin-top: 10px;
}

footer .social-links a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
  transition: 0.3s;
}

footer .social-links a:hover {
  color: #d2232a;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 200px;
    height: calc(100% - 60px);
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
  }
}

/* new background homw */
/* Background Slideshow */
/* === BACKGROUND SLIDESHOW === */
.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* keep it behind everything */
  overflow: hidden;
}

.background-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideshow 15s infinite;
  transition: opacity 1.5s ease-in-out;
}

/* Control the timing for each image */
.background-slideshow .slide:nth-child(1) {
  animation-delay: 0s;
}

.background-slideshow .slide:nth-child(2) {
  animation-delay: 5s;
}

.background-slideshow .slide:nth-child(3) {
  animation-delay: 10s;
}

/* Keyframes for smooth continuous fading */
@keyframes slideshow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}


/* nn slide */
/* === BACKGROUND SLIDESHOW === */
.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-slideshow .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeAnimation 15s infinite;
}

/* Each image delay */
.background-slideshow .slide:nth-child(1) {
  animation-delay: 0s;
}

.background-slideshow .slide:nth-child(2) {
  animation-delay: 5s;
}

.background-slideshow .slide:nth-child(3) {
  animation-delay: 10s;
}

/* The fade animation */
@keyframes fadeAnimation {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Make sure content sits on top */
header, main, footer {
  position: relative;
  z-index: 1;
}

.home-intro {
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}


/* === PAGE-SPECIFIC BACKGROUNDS === */

/* Base body styling */
body {
  margin: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* FENCING PAGE BACKGROUND */
.fencing-page {
  background-image: url('Nodolo/images/fencingbackgroundpic.jpeg'); /* replace with your fencing background image */
}

/* PRODUCTS PAGE BACKGROUND */
.products-page {
  background-image: url('Nodolo/images/productsbckpic.jpeg'); /* replace with your products background image */
}

/* CONTACT PAGE BACKGROUND */
.contact-page {
  background-image: url('Nodolo/images/contactbkgpic.jpeg'); /* replace with your contact background image */
}

/* Optional dark overlay for text readability (if needed) */
.fencing-page::before,
.products-page::before,
.contact-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); /* Adjust opacity */
  z-index: -1;
}



/* ---------- NAVBAR / DROPDOWN FIXES ---------- */

/* ensure nav-links ID selector works with your HTML */
#nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* nav items */
#nav-links li {
  position: relative;
}

/* links */
#nav-links li a {
  color: white;
  text-decoration: none;
  padding: 8px 6px;
  display: inline-block;
}

/* active/current page style */
#nav-links li a.active {
  color: #ff4136;
  border-bottom: 2px solid #ff4136;
  padding-bottom: 6px;
}

/* desktop hover for visual feedback */
#nav-links li a:hover {
  color: #ff4136;
}

/* Dropdown container (desktop absolute) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: #001f3f; /* matches navbar */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  padding: 6px 0;
  border-radius: 6px;
  z-index: 999;
}

/* dropdown items */
.dropdown-content li {
  display: block;
  margin: 0;
}

.dropdown-content li a {
  padding: 10px 16px;
  display: block;
  color: white;
  font-weight: 500;
}

/* hover in dropdown */
.dropdown-content li a:hover {
  background-color: #ff4136;
  color: white;
  border-radius: 4px;
}

/* Desktop: open on hover */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* MOBILE: hamburger + dropdown stacking */
@media (max-width: 768px) {
  /* make header transparent on mobile */
  header {
    background: transparent;
    box-shadow: none;
  }

  /* hamburger visible (you already have .hamburger) */
  .hamburger {
    display: block;
    color: white;
    cursor: pointer;
    font-size: 22px;
  }

  /* mobile panel (off-canvas) */
  #nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 240px;
    height: calc(100% - 60px);
    background-color: white;       /* readable background for menu */
    color: #001f3f;
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    transition: right 0.28s ease;
    box-shadow: -6px 0 18px rgba(0,0,0,0.2);
    z-index: 999;
  }

  /* when active, slide in */
  #nav-links.active {
    right: 0;
  }

  /* mobile link colors */
  #nav-links li a {
    color: #001f3f;
    padding: 10px 8px;
    font-size: 1rem;
  }

  /* mobile dropdown becomes static stacking content */
  .dropdown-content {
    position: static;
    display: none; /* toggled by JS */
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-content li a {
    padding-left: 18px;
    color: #001f3f;
    background: none;
  }

  /* show open dropdown (JS will add .open to parent) */
  .dropdown.open .dropdown-content {
    display: block;
  }

  /* make hamburger icon area bigger/tappable */
  .hamburger {
    padding: 8px;
  }
}


/* Ensure background slideshow sits behind everything */
.background-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* push behind */
}

/* each slide fills screen properly */
.background-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* optional if you’re animating slides */
.background-slideshow .slide.active {
  opacity: 1;
}

/* Make sure the navbar sits above everything else */
header, .navbar, .dropdown-content {
  position: relative;
  z-index: 1000; /* bring forward */
}
@media (max-width: 768px) {
  .hamburger {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1100; /* ensure it’s tappable */
  }

  #nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgba(255, 255, 255, 0.95);
    width: 220px;
    height: 100%;
    padding-top: 80px;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.3s ease-in-out;
    z-index: 1090;
  }

  #nav-links.active {
    right: 0;
  }
}


/* -------------------------
   NAVBAR BASE
------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;
  z-index: 1000; /* Ensure nav is above background slides */
  background: rgba(0, 31, 63, 0.85); /* semi-transparent for nice overlay effect */
  /* color: #fff; */
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 50px;
  width: 80px;
}
.company-name {
  font-weight: bold;
  font-size: 1.3rem;
}

/* -------------------------
   NAV LINKS
------------------------- */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  transition: max-height 0.3s ease;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  transition: color 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #ffd700;
}

/* -------------------------
   DROPDOWN MENU
------------------------- */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  /* background: rgba(0, 31, 63, 0.95); */
  display: none;
  flex-direction: column;
  z-index: 2000; /* above navbar */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dropdown-content li a {
  padding: 10px 15px;
  /* color: #fff; */
}

.dropdown-content li a:hover {
  background: #001f3f;
  color: #ffd700;
}

/* Desktop hover */
.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
}

/* -------------------------
   HAMBURGER MENU
------------------------- */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 1500;
}

.hamburger.open i {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

/* -------------------------
   MOBILE RESPONSIVENESS
------------------------- */
@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    /* color: #fff; */
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    /* background: rgba(0, 31, 63, 0.95); */
    flex-direction: column;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav-links.active {
    max-height: 500px; /* enough to show all links */
  }

  .dropdown-content {
    position: relative;
    top: 0;
    left: 0;
    box-shadow: none;
    /* background: rgba(0, 31, 63, 0.9); */
    display: none;
    opacity: 1;
  }

  .dropdown.open .dropdown-content {
    display: flex;
    flex-direction: column;
  }

  .nav-links li {
    border-bottom: 1px solid #004080;
  }
}


/* -------------------------
   PRODUCTS GRID
------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 10px;
}

.product-item {
  background: #fff;
  border: 1px solid #ddd;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.product-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}

.product-img .product-back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-img:hover .product-back {
  opacity: 1;
}

.product-img:hover .product-front {
  opacity: 0;
}

.product-item h3 {
  font-size: 1.1rem;
  margin: 10px 0;
}

/* -------------------------
   MOBILE OPTIMIZATION
------------------------- */
@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr; /* single column for mobile */
    gap: 15px;
    padding: 10px;
  }

  .product-item h3 {
    font-size: 1rem;
  }

  .product-img {
    max-height: 250px;
  }

  .product-img img {
    object-fit: cover;
  }
}


/* MOBILE TAP FLIP */
@media screen and (max-width: 768px) {
  .product-img {
    cursor: pointer;
  }

  /* back image hidden by default */
  .product-img .product-back {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
  }

  /* flipped state */
  .product-img.flipped .product-back {
    opacity: 1 !important;
  }

  .product-img.flipped .product-front {
    opacity: 0 !important;
  }
}
.dropdown-content.show {
  display: block;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #001f3f;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown-content {
    position: relative;
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

/* Navbar - Desktop fixed */
@media (min-width: 769px) {
  header {
    position: fixed;   /* Make the navbar stay at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #001f3f; /* Keep dark blue background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* optional shadow */
  }

  body {
    padding-top: 70px; /* Offset the fixed navbar height so content doesn't hide under it */
  }
}

/* Hamburger & mobile nav will still behave as before */
@media (max-width: 768px) {
  header {
    position: relative; /* Navbar scrolls normally on mobile */
  }
}


/* Director Photo (Single Image) */
.director-photo {
  flex: 1;
  max-width: 400px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.director-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* accredditations styels */
/* Accreditations Section */
.accreditations-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.accreditations-logos img {
  width: 140px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: brightness(95%);
}

.accreditations-logos img:hover {
  transform: scale(1.08);
  filter: brightness(110%);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .accreditations-logos img {
    width: 100px;
  }
}

/* cta */
.cta-button {
  display: inline-block;
  background-color: #c0392b; /* Nodolo red */
  color: white;
  padding: 12px 30px;
  margin-top: 20px;
  text-decoration: none;
  font-size: 1.1em;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background-color: #a93226;
  transform: scale(1.05);
}


/* Ensure dropdown matches input fields */
.contact-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
  appearance: none; /* clean modern look */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Add small arrow styling (optional) */
.contact-form select:focus {
  outline: none;
  border-color: #c0392b; /* Nodolo red */
  box-shadow: 0 0 5px rgba(192, 57, 43, 0.4);
}




/* thank u modal styling */
/* ✅ Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

/* ✅ Modal Content Box */
.modal-content {
  background-color: #fff;
  border-top: 6px solid #b30000; /* Red top border */
  color: #002147; /* Dark blue text */
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease;
}

/* ✅ Modal Logo */
.modal-logo {
  width: 70px;
  height: auto;
  margin-bottom: 15px;
}

/* ✅ Close Button */
#closeModal {
  background-color: #b30000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  margin-top: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

#closeModal:hover {
  background-color: #002147;
}

/* ✅ Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* --- Contact Layout Wrapper --- */
.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding: 40px 10%;
}

.contact-left {
  flex: 1 1 55%;
  min-width: 300px;
}

.contact-right {
  flex: 1 1 35%;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 25px;
  color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.contact-right h2 {
  color: #fff;
  font-size: 1.7rem; /* slightly larger */
  margin-bottom: 18px;
  border-bottom: 2px solid red;
  display: inline-block;
}

.contact-right p {
  margin: 12px 0;
  font-size: 1.1rem; /* increased visibility */
  line-height: 1.6;
}

.contact-right i {
  color: red;
  margin-right: 10px;
  font-size: 1.2rem; /* makes icons match text size */
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-right {
    order: -1;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
  }
}


/* video styles  */
.video-gallery {
  text-align: center;
  padding: 50px 20px;
  /* background: #f9f9f9; */
}

.video-gallery h2 {
  color: #002147;
  margin-bottom: 30px;
  font-size: 2em;
}

.video-section {
  margin-bottom: 40px;
}

.video-section h3 {
  color: #c8102e;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.video-thumbnail {
  position: relative;
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.video-thumbnail:hover {
  transform: scale(1.03);
}

.video-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: white;
  background-color: rgba(200, 16, 46, 0.8);
  padding: 20px;
  border-radius: 50%;
  transition: background 0.3s;
}

.play-button:hover {
  background-color: rgba(0, 33, 71, 0.9);
}
