/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #002868;  /* Deep Blue */
    --secondary-color: #BF0A30;  /* Rich Red */
    --accent-color: #002868;  /* Deep Blue */
    --text-color: #333;
    --light-bg: #FFFFFF;  /* White */
    --hover-color: #00215A;  /* Darker Blue for hover states */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #8B0000);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --transition-normal: all 0.3s ease;
}

/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #555;
}

/* Header styles */
.header {
    background: var(--gradient-primary);
    padding: 0.5rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.header:hover {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
}

.logo:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.logo-image {
    height: 90px;
    width: auto;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.3rem;
}

/* CSS for styling the phone number in header */
.contact-info {
  display: none; /* Hidden on mobile to save space */
  margin-right: auto; /* Pushes the nav menu to the right */
  margin-left: 1rem;
}

.phone-number {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition-normal);
}

.phone-number:hover {
  color: var(--secondary-color);
}

.phone-icon {
  margin-right: 0.5rem;
  font-style: normal;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem;
}

.nav-menu.active {
    display: block;
}

.nav-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: var(--transition-normal);
    position: relative;
    font-weight: 500;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a[aria-current="page"]::after {
    width: 80%;
    background-color: var(--secondary-color);
}

/* Main content styles */
main {
    margin-top: 110px; /* Increased to accommodate larger header */
    padding: 1rem;
}

/* Improved spacing for page headers */
.page-header {
    text-align: center;
    padding: 2rem 0 3rem;
    margin-top: 1rem;
}

.hero {
    background-image: url("/images/standing-seam.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 8rem 1rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;  /* Ensuring minimum height for smaller screens */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Darker overlay for better readability */
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 700;
}

.hero p {
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    color: #fff;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 2rem;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    transform: translateY(-100%);
    transition: var(--transition-normal);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
    transform: translateY(0);
}

.features {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.feature-card {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Installation Service Section */
.installation-service {
    padding: 4rem 1rem;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.installation-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-content {
    max-width: 800px;
    text-align: center;
    margin-bottom: 0 auto;
}

.service-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.service-image-container {
    width: 100%;
    max-width: 1000px;
}

.service-image {
    width: 100%;
    height: 300px;
    background-color: #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.image-coming-soon {
    color: #6c757d;
    font-style: italic;
    font-size: 1.2rem;
}

/* CSS for project carousel */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  position: relative;
}

.carousel-slide {
  min-width: 100%;
  height: 500px; /* Adjust height as needed */
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 2;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.75);
}

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
  z-index: 2;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

/* Make sure the third and fifth images use object-position: top center */
/*.carousel-slide:nth-child(3) img,*/
/*.carousel-slide:nth-child(5) img {*/
/*  object-position: top center;*/
/*}*/

/* CSS for styling the updated footer */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-phone {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-normal);
}

.footer-phone:hover {
  color: var(--secondary-color);
}

.footer-icon {
  margin-right: 0.5rem;
}

.footer-link {
  display: inline-block;
  color: white;
  background-color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 1rem;
  transition: var(--transition-normal);
}

.footer-link:hover {
  background-color: #a00a28;
  transform: translateY(-2px);
}

/* CSS for the floating button */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.floating-cta-button {
  display: inline-block;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition-normal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.floating-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), transparent);
  transform: translateY(-100%);
  transition: var(--transition-normal);
}

.floating-cta-button:hover {
  transform: translateY(-2px);
}

.floating-cta-button:hover::before {
  transform: translateY(0);
}


/* Products page styles */
.products-grid {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    transition: var(--transition-normal);
    background-color: #f5f5f5;  /* Light background for images */
    padding: 1rem;  /* Add some padding around images */
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
}

.product-details {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.product-details li {
    padding: 0.5rem 0;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.product-info h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Contact page styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}


@media (min-width: 640px) {
     .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .contact-info {
        display: block;
    }
  
    .nav-container {
        justify-content: flex-start; /* Align items to the start */
    }
  
    .nav-menu {
        margin-left: auto; /* Push to the right */
    }
    
    .home-container {
        display: flex;
        max-width: 1200px;
        margin: 0 auto;
        gap: 2rem;
        align-items: center;
    }
    
    .installation-service {
        flex: 1;
        padding-right: 2rem;
    }
    
     .service-content {
        text-align: left;
        margin: 0;
    }
    
    .features-container {
        flex: 1;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .features {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
     .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        padding: 0;
        background: none;
    }

    .nav-menu a {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .logo-text {
        display: none;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        max-height: 700px;
    }
}



/* Footer styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    margin-top: 2rem;
    }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}