/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation Bar Styling */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between; /* Space between the menu items and contact */
    align-items: center;
    box-sizing: border-box; /* Prevents content from overflowing */
  }
  
  /* Center Menu Items */
  .navbar .menu {
    display: flex;
    justify-content: center;
    flex-grow: 1; /* Ensure the menu items take up the available space */
  }
  
  .navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .navbar ul li {
    display: inline-block;
  }
  
  .navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    transition: color 0.3s;
  }
  
  .navbar ul li a:hover {
    color: #f39c12; /* Hover color */
  }
  
  /* Styling for the 'Contact' menu item */
  .navbar .contact {
    margin-left: auto; /* Pushes 'Contact' to the far right */
    display: flex;
    align-items: center;
    padding: 0 10px; /* Add padding to avoid touching the edge */
  }
  
  .navbar .contact a {
    font-size: 16px;
    padding: 10px;
    color: white;
    text-decoration: none;
  }
  
  .navbar .contact a:hover {
    color: #f39c12;
  }
  
  /* When page is scrolled past the first section, hide the navbar */
  .navbar-hidden {
    top: -100px; /* Hide the navbar */
  }
  
  /* Add extra space below the fixed navbar to prevent content being hidden under it */
  body {
    padding-top: 60px; /* Adjust based on your navbar height */
  }
  
  .navbar img {
    height: 40px;
  }
  
  .menu {
    display: flex;
    gap: 20px;
  }
  
  .menu a {
    text-decoration: none;
    color: black;
    font-size: 16px;
    font-weight: bold;
    position: relative;
  }
  
  .menu a:hover {
    color: #e42828;
  }
  
  .contact-button {
    padding: 10px 15px;
    background-color: rgb(200, 29, 29);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .contact-button:hover {
    background-color: darkred;
  }
  
  .dropdown {
    position: relative;
  }
  
  .dropdown-link::after {
    content: '\25BC';
    margin-left: 5px;
    font-size: 12px;
  }
  
  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 4px;
    z-index: 1000;
  }
  
  .dropdown-menu a {
    display: block;
    padding: 5px 10px;
    color: black;
    text-decoration: none;
    font-size: 14px;
  }
  
  .dropdown-menu a:hover {
    background-color: #f4f4f4;
  }
  
  .dropdown:hover .dropdown-menu {
    display: block;
  }
  
  @media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
    }
  
    .menu {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
    }
  
    .menu a {
        padding: 5px 0;
        width: 100%;
    }
  
    .contact-button {
        align-self: flex-end;
        margin-top: 10px;
    }
  }
  
/* Body and Layout */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Quote Section Container */
.quote {
    font-size: 1.8rem;
    font-style: italic;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-left: 5px solid #ff6600;
    border-radius: 5px;
    max-width: 800px;
    margin: 20px auto;  /* This will center the quote container */
    text-align: center;  /* Center the text within the container */
}

/* Styling for Paragraphs */
.quote p {
    margin: 0;
    color: rgb(255, 255, 255);
}

/* Styling for the Author Name */
.quote span {
    display: block;
    text-align: right;
    font-size: 1.2rem;
    margin-top: 10px;
    color: #ff6600;
}

/* Header Section */
.header {
    background-image: url('https://img.freepik.com/free-photo/iconographer-works-new-gilded-icon_1398-3383.jpg?t=st=1733757862~exp=1733761462~hmac=4e3fd77f71a8db0d7c35bbadf1feea9fcb56ce1823573a40a77e227decc950a7&w=996');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-bottom: 5px solid #c32828;
    position: relative;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.5rem;
    margin-top: 0;
}

/* Overlay Effect */
.header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: Dark overlay */
    z-index: 1;
}

/* Content Inside Header */
.header-content {
    position: relative;
    z-index: 2;
}

/* Adjusting the margin for the quote section */
.quote-section {
    margin-top: 40px;  /* Add some space below the header */
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    padding: 50px 20px;
    background-color: white;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

/* Key Features Section */
.features {
    padding: 50px 20px;
    background-color: #e9ecef;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.features ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.features li {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.features li strong {
    color: #c32828;
}

/* Feature Cards Design */
.feature-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.8rem;
    color: #c32828;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    color: #333;
}

/* Hover Effects for Cards */
.feature-card:hover {
    transform: translateY(-10px); /* Slight lift */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Tinkering Lab Section */
.tinkering-lab-section {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9; /* Light background for better visibility */
}

.tinkering-lab-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tinkering-lab-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #333;
}

.tinkering-lab-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
}

.tinkering-lab-image {
    width: 100%;
    margin-top: 20px;
}

.tinkering-lab-image img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Ensures image doesn't overflow its container */
    border-radius: 10px; /* Optional rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Optional shadow effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    .tinkering-lab-content h2 {
        font-size: 2em;
    }

    .tinkering-lab-content p {
        font-size: 1em;
    }
}

/* Machine Showcase */
.machine-showcase {
  display: flex;
  justify-content: flex-start; /* Align cards to the start */
  flex-wrap: wrap; /* Allows the cards to wrap if the screen size is smaller */
  margin: 40px; /* Center the container */
  gap: 40px;
}

/* Machine Cards */
.machine-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Ensures the content starts from the top */
  height: auto;
  width: 220px; /* Fixed width for portrait orientation */
  margin-right: 10px; /* Reduce the space between the cards */
  margin-bottom: 20px; /* Reduce the vertical spacing between rows */
}

/* Machine Card Hover */
.machine-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.machine-card img {
  width: 100%;
  height: 250px; /* Fixed height to make the image fit in portrait */
  object-fit: cover;
  border-bottom: 3px solid #ddd;
}

.machine-name {
  background-color: #fff;
  color: #333;
  padding: 20px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 1px;
  border-top: 3px solid #ddd;
}

/* Machine Name Hover Effect */
.machine-name:hover {
  color: #cd1313; /* Red color on hover */
  transform: scale(1.05);
}

/* For smaller screens (tablets, mobile) */
@media (max-width: 768px) {
  .machine-showcase {
      flex-direction: column; /* Stack the cards vertically on smaller screens */
      align-items: center; /* Center the cards */
  }

  .machine-card {
      width: 100%; /* Full width for small screens */
      margin-right: 0; /* Remove horizontal margin for small screens */
  }
}

/* Footer Styling */
.footer {
    background-color: #9c0d0d;
    color: #ecf0f1;
    padding: 40px 20px;
    font-family: Montserrat, sans-serif;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-left, .footer-right {
    width: 45%;
  }
  
  .footer-left h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .footer-left p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .footer-right h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
  }
  
  .footer-right iframe {
    width: 100%;
    border-radius: 8px;
  }
  
  .footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #34495e;
    padding-top: 15px;
  }
  
  .footer-bottom p {
    margin: 5px 0;
  }
  
  .go-to-top {
    display: inline-block;
    margin-top: 10px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .go-to-top:hover {
    color: #3498db;
  }
  
  /* Responsive Styling */
  @media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
  
    .footer-left, .footer-right {
        width: 100%;
        text-align: center;
    }
  
    .footer-right iframe {
        width: 90%;
        height: 180px;
    }
  }
  