/* =========================
   GLOBAL RESET & BASE STYLES
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
  scroll-behavior: smooth;
  transition:  0.3s ease, color 0.3s ease;
}

/* MAIN NAVBAR */

/* =========================
   NAVIGATION
   ========================= */
nav {
  background: rgba(30, 29, 29, 0.906);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 15px 30px;
  border-radius: 20px;
  position: absolute;
  top: 15px;
  left: 20px;
  right: 20px;
  z-index: 10;
  border: 1px solid rgba(30, 29, 29, 0.906);
  transition: 0.3s ease, transform 0.3s ease;
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4682B4;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  width: 50px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: rotate(15deg);
}

/* NAV LINKS FOR DESKTOP */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

/* THIS PAD + HOVER MUST MATCH MOBILE EXACTLY */
.nav-links li a {
  text-decoration: none;
  color: white;
  padding: 12px 20px;  
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  background-color: #4682B4;
  color: #fff;
}

/* Contact button border */
.nav-links li.contact a {
  border: 2px solid #4682B4;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #4682B4;
  cursor: pointer;
}

/* -------------- MOBILE ONLY -------------- */
@media (max-width: 768px) {

  /* Hide logo */
  .nav-logo {
    display: none;
  }

  /* Show hamburger */
  .menu-toggle {
    display: block;
  }

  /* MOBILE DROPDOWN MENU aligned with navbar edges */
  .nav-links {
    flex-direction: column;
    background: #2E2E2E;
    border-radius: 15px;
    position: absolute;
    top: calc(100% + 10px);
    /* Start at the left of the navbar and same width */
    left: 0;
    right: 0;
    padding: 0 30px; /* same as nav padding */
    box-sizing: border-box;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 4px 12px #4682B4;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    padding: 10px 0;
  }

  /* MOBILE LINKS fill width of dropdown container */
  .nav-links li a {
    width: 100%;
    text-align: center;
    padding: 12px 0; 
  }

}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links li.contact a {
  padding: 8px 15px;
  border: 1px solid #4682B4;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-links li.contact a:hover {
  background: #4682B4;
  color: white;

}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 11;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 15px;
  margin-top: 10px;
  animation: fadeIn 0.5s ease forwards;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("images/chatgpt photho.png") center center / cover no-repeat
    fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1300px;
  animation: fadeInUp 1s ease forwards;
}

.hero-text h1 {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  line-height: 1.1;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.6);
  animation: slideInLeft 1s ease forwards;
}

.hero-text .slogan {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  animation: sloganFade 5s ease-in-out infinite;
}

.hero-logo img {
  border: white solid;
  height: 450px;
  width: auto;
  max-width: 500px;
  animation: fadeIn 1.5s ease forwards;
}

/* HERO LOGO */
.hero-logo img {
  border: white solid;
  height: 450px;
  width: auto;
  max-width: 500px;
}

.service {
  display: flex;
  justify-content: center; /* pushes text left, image right */
  align-items: center; /* vertically center */
  padding: 20px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 3.5rem;
  letter-spacing: 1.5rem;
}

.service-logo img {
  height: 60px; /* adjust size as needed */
  width: auto;
}

.service-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 40px 60px; /* ensures containers don’t touch screen edges */
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

.service-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.service-card hr {
  width: 60%;
  margin: 10px auto;
  border: none;
  border-top: 2px solid #ddd;
}

.service-card a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 10px;
  transition: color 0.3s ease;
}

.service-card a:hover {
  color: #007bff;
}

.free-quote {
  padding: 40px 20px;
  text-align: center;
}

.free-quote .section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  white-space: nowrap;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
}

.card {
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  word-wrap: break-word;
}

.card:hover {
  transform: translateY(-10px);
}

.card h2 {
  font-size: 16px;
  margin-bottom: 15px;
  line-height: 1.3;
  white-space: normal;
}

.card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.1);
}

.card h3 {
  font-size: 16px;
  color: #007bff;
  margin-top: 0;
  white-space: nowrap;
  cursor: pointer;
}

.site-footer {
  background-color: #4682b4; /* your blue */
  color: #fff;
  padding: 40px 20px 20px 20px;
  font-family: Arial, sans-serif;
}

/* Top part of footer */
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

/* Logo */
.footer-logo img {
  width: 150px;
  height: auto;
  border: 2px solid #fff; /* white border */
  border-radius: 0px; /* slightly rounded corners, optional */
  padding: 5px; /* optional spacing between logo and border */
  background-color: #4682b4; /* ensures border stands out */
}

/* Columns */
.footer-column {
  flex: 1;
  min-width: 180px;
}

/* Column headings */
.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

/* Wayfinding links */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ccc; /* gray on hover */
}

/* Info list (address and contact info) */
.info-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.info-list .icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Address styling */
.footer-column p {
  line-height: 1.6;
  margin: 0;
}

/* Footer bottom line */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 10px;
  max-width: 600px; /* slim line width */
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  color: #fff;
}

.about-section {
  max-width: 1000px; /* keeps the content centered and away from edges */
  margin: 0 auto; /* centers the section horizontally */
  padding: 20px; /* adds breathing space inside */
}

.about-section h2 {
  text-align: center; /* centers the heading */
  margin-bottom: 20px;
  font-size: 2rem;
  color: #333; /* you can change this */
}

.about-info {
  background: #f9f9f9; /* light background to make it stand out */
  padding: 20px;
  border-radius: 10px; /* rounded corners */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* subtle shadow */
}

.about-info p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555;
}

.map-section {
  text-align: center;
  margin: 40px 0; /* space above and below */
}

.map-section h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  color: #333;
}

.map-container {
  max-width: 1000px;
  margin: 0 auto 50px auto; /* center + space before footer */
  padding: 20px;
  border: 2px solid #4682b4; /* blue border */
  border-radius: 10px; /* optional rounded corners */
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border-radius: 8px; /* optional smooth edges */
}

.contact-section {
  margin: 40px 0;
  text-align: center;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto 30px auto;
  padding: 20px;
  border: 2px solid #4682b4;
  border-radius: 10px;
}

.contact-container h2 {
  margin-bottom: 10px;
  font-size: 1.6rem;
  color: #333;
}

.contact-container p {
  font-size: 1.2rem;
  margin: 8px 0;
  color: #555;
}

.contact-container i {
  margin-right: 8px;
  color: #4682b4;
}

.contact-form {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px; /* bigger than inputs */
  resize: vertical;
}

.contact-form button {
  background-color: #4682b4;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 10px;
}

.contact-form button:hover {
  background-color: #35648f;
}

.gallery-section {
  position: relative;
  background: #cecdcd;
  min-height: 100vh;
}

.gallery-section h2 {
  text-align: center;
  padding-top: 10px;
}

.gallery {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 40px;
}

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border: 3px solid #4682b4;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

.products {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.aluminium-products {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 60px;
  gap: 20px;
}

.aluminium-products.layout-left {
  flex-direction: row; /* pictures left, text right */
}

.aluminium-products.layout-right {
  flex-direction: row-reverse; /* pictures right, text left */
}

.images {
  display: flex;
  flex-direction: column; /* stack pictures vertically */
  gap: 15px;
  flex: 1;
}

.images img {
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.separator {
  width: 4px;
  background-color: #007bff; /* blue border */
  margin: 0 20px;
}

.text {
  flex: 1;
  padding: 20px;
}

.text h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

.text ul li {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.last-services {
  margin: 0% auto;
  text-align: center;
}

.last-services img {
  width: 150px;
  height: auto;
}

.last-services ul {
  font-size: 20px;
  line-height: 2;
  font-weight: bolder;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .footer-column {
    text-align: center;
  }
}

@keyframes sloganFade {
  0%,
  20%,
  100% {
    opacity: 0;
    transform: translateY(0px);
  }
  40%,
  60% {
    opacity: 1;
    transform: translateY(-5px);
  }
  80% {
    opacity: 0.7;
    transform: translateY(-2px);
  }
}

@media screen and (max-width: 1000px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-logo {
    margin-top: 30px;
  }
  .hero-text h1 {
    font-size: 4rem;
  }
  .hero-text .slogan {
    font-size: 2rem;
  }
  .hero-logo img {
    height: 200px;
  }
}

@media screen and (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
  .hero-text .slogan {
    font-size: 1.5rem;
  }
  .hero-logo img {
    height: 140px;
  }
}

@media screen and (max-width: 900px) {
  .service-content {
    grid-template-columns: 1fr; /* single column */
    padding: 20px;
  }
  .service {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }
}

/* Free quote cards - stack instead of row */
@media screen and (max-width: 800px) {
  .cards-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  .card {
    width: 100%;
    max-width: 300px; /* prevent stretching too wide */
  }
}

/* Products section - stack images and text */
@media screen and (max-width: 768px) {
  .aluminium-products {
    flex-direction: column !important; /* stack vertically */
    text-align: center;
  }
  .separator {
    display: none; /* hide blue line on small screens */
  }
  .images {
    flex-direction: row; /* put pictures side by side on mobile */
    flex-wrap: wrap;
    justify-content: center;
  }
  .images img {
    width: 45%; /* take half width */
    height: auto;
  }
  .text {
    padding: 10px;
  }
}

/* Gallery - smaller images on phones */
@media screen and (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    padding: 20px;
  }
  .gallery img {
    height: 120px;
  }
}

/* Contact form & map - full width on phones */
@media screen and (max-width: 700px) {
  .map-container,
  .contact-container,
  .contact-form {
    padding: 15px;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 10px 0;
  }
}

#notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50; /* green for success */
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  display: none; /* hidden by default */
}
#notification.error {
  background-color: #f44336; /* red for error */
}
