/* Reset and Global Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif; /* Updated font */
}

body {
  background-color: #f9f9f9; /* Lighter background */
  color: #333;
}

/* Header Styles */
header {
  background-color: #ffffff; /* Darker header */
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  margin: 0;
  font-size: 36px; /* Larger font size */
  font-weight: 700; /* Bolder text */
}

/* Navigation Styles */
nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

nav ul li {
  display: inline-block;
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #ffffffe0;
  font-size: 18px; /* Increased font size */
  font-weight: 600; /* Slightly bolder text */
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d9bf77; /* Accent color on hover */
}

/* Main Content Styles */
main {
  padding: 40px; /* Increased padding */
}

section {
  margin-bottom: 40px;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

h2 {
  margin-top: 0;
  font-size: 28px; /* Slightly reduced font size */
  font-weight: 700; /* Bolder text */
  color: #293241; /* Darker text color */
}

p {
  line-height: 1.8;
  color: #444; /* Slightly darker text color */
  font-size: 16px;
}

.photos {
  margin-top: 30px;
}

.photos img {
  max-width: 100%;
  height: auto;
  margin-bottom: 25px; /* Increased spacing */
}

h3 {
  margin-top: 20px;
  font-size: 20px; /* Increased font size */
  font-weight: 600; /* Slightly bolder text */
  color: #293241; /* Darker text color */
}

ul {
  list-style: disc;
  padding-left: 20px;
  color: #444; /* Slightly darker text color */
  font-size: 16px;
}
/* Existing CSS */

.photos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 30px;
}

.card {
  width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-info {
  padding: 15px;
  background-color: #fff;
}

.card-info h3 {
  margin-top: 0;
  font-size: 18px;
  color: #293241;
}

.card-info p {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}
/* Existing CSS */

/* Existing CSS */

.metal-list {
  margin-left: -520px;
  margin-top: 60px;
}

.metal-list ul {
  list-style: none;
  padding: 0;
}

.metal-list li {
  margin-bottom: 10px;
  position: relative;
  display: block; /* Changed to display as block for vertical arrangement */
  width: 200px; /* Adjust width as needed */
  padding: 10px 20px;
  background-color: #293241;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  text-transform: uppercase;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metal-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* Existing CSS */

.collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.image-info {
  width: 300px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #ccc; /* Border line */
  border-radius: 10px;
}

.image-info img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

.info {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

.info h3 {
  margin-top: 0;
  font-size: 18px;
  color: #293241;
}

.info p {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}
/* Existing CSS */

.image-info {
  width: 300px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden; /* Hide overflowing content */
  position: relative; /* Position for absolute child */
  transition: transform 0.3s ease; /* Smooth hover transition */
}

.image-info img {
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
  transition: transform 0.3s ease; /* Smooth image transition */
}

.info {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

.info h3 {
  margin-top: 0;
  font-size: 18px;
  color: #293241;
}

.info p {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
}

/* Hover Effect */
.image-info:hover {
  transform: scale(1.05); /* Scale up on hover */
}

.image-info:hover img {
  transform: translateY(-5px); /* Move up slightly on hover */
}
/* Existing CSS */

.metal-image {
  display: none; /* Initially hide all metal images */
  position: absolute;
  top: 40px;
  right: 40px;
  margin: auto;
  z-index: 999; /* Ensure pop-up images appear above other content */
  transition: opacity 0.3s ease; /* Smooth transition */
}

/* Show pop-up image on button hover */
#steel-button:hover + #steel-image,
#stainless-steel-button:hover + #stainless-steel-image,
#aluminium-button:hover + #aluminium-image,
#bronze-button:hover + #bronze-image {
  display: block;
  opacity: 1;
}

/* Style the buttons (adjust styling as needed) */
.metal-button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px;
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect for buttons */
.metal-button:hover {
  background-color: #e0e0e0;
}
/* Existing CSS */

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #333; /* Attractive border */
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px; /* Adjust spacing */
  overflow: hidden; /* Hide overflowing pop-up images */
}

/* Style the buttons */
.metal-button {
  padding: 10px 20px;
  margin: 10px;
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none; /* Remove default button border */
  border-radius: 5px;
}

/* Hover effect for buttons */
.metal-button:hover {
  background-color: #e0e0e0;
}

/* Existing CSS */

.button-container {
  display: flex;
  flex-direction: column; /* Arrange buttons vertically */
  justify-content: center;
  align-items: center;
  padding: 10px;
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  width: 300px;
  margin: 0 auto;
  box-sizing: border-box; /* Include padding in width calculation */
}

.metal-button {
  padding: 8px 16px;
  margin: 5px;
  background-color: #f9f9f9;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  border-radius: 5px;
}

.metal-button:hover {
  background-color: #e0e0e0;
}
/* Existing CSS */


/* Existing CSS */

.button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
 
  border: 2px solid #d8d8d8; /* Light gray border */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  max-width: 300px;
  margin: 0px;
  box-sizing: border-box;
  background-color: #f6f6f6; /* Light gray background */
}

.metal-button {
  width: 100%;
  padding: 10px 20px;
  margin: 5px;
  background-color: #3498db; /* Apple-like blue color */
  color: #fff; /* White text */
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  border-radius: 5px;
}

.metal-button:hover {
  background-color: #2980b9; /* Darker shade on hover */
}
/* Existing CSS */

.content {
  display: flex;
  /* height: 100rem; */
}

.text {
  width: 50%; /* Left half width */
  padding: 20px;
  display: grid;
}

.text p {
  margin: 0;
}

.image {
  width: 50%; /* Right half width */
  text-align: center; /* Center the image horizontally */
}

.image img {
  max-width: 100%; /* Adjust image size */
  height: auto;
}
/* Style for the image border */
.apple-border {
  border: 2px solid #d2d2d2;
  border-radius: 12px;
  padding: 5px;
  width: 240px;
  /* Additional styles for image if needed */
}
/* Initially hide images */
.animate-entry {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-entry.visible {
  opacity: 1;
  transform: translateX(8px);
  
  
}
/* Your existing styles */

/* Vertical line animation */
/* Your existing styles */

/* Vertical line animation */
.line {
  width: 0;
  height: 3px;
  margin-top: -230px;
  margin-left: -19px;
  transform: rotate(-270deg);
  transform-origin: left bottom;
  background-color: blue;
  transition: width 1s ease;
}
.banner {
  background-color: #0070c9;
  color: #fff;
  text-align: center;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #004280, #005aa7, #0070c9, #005aa7, #004280);
  z-index: -1;
  animation: gradient 15s ease infinite;
}
.banner h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.banner p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: white;
}header {
  background-color: #333;
  text-align: center;
  padding: 20px 0;
}

.meterial-section {
  position: relative;
}

.cutting {
  display: flex;
  flex-direction: column;
}

.cards h2 {
  margin-left: 15px;
}

@media (max-width: 1024px) {
  section {
    padding: 20px;
  }

  .metal-image {
    top: 20px;
    right: 20px;
  }

  .apple-border {
    width: 207px;
  }
}

@media only screen and (max-width: 768px) {
  main {
    padding: 20px;
  }

  .banner {
    padding: 20px;
  }

  #cutting {
    padding: 20px;
  }

  .meterial-section {
    padding: 10px;
  }

  .metal-image {
    position: relative;
    margin: 20px;
    margin-top: 0;
  }

  .content {
    flex-direction: column-reverse;
  }

  .text {
    width: 100%;
  }

  .image {
    width: 100%;
    display: flex;
    justify-content: start;
    margin-left: 15px;
    margin-bottom: 15px;
  }

  .line {
    margin-top: -200px;
  }
}