/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-red: #d32f2f;
    /* Adjust based on logo/preference */
    --dark-overlay: rgba(0, 0, 0, 0.7);
    --light-bg: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
button,
input,
label,
select {
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin-left: 15px;
}

.nav-link:hover {
    color: var(--primary-red) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #ED1C24;
    color: var(--text-light);
    padding: 120px 0 0px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: -50px;
    z-index: 10;
}

/* Hero Section - Thank You */
.hero-section-thankyou {
    position: relative;
    background-color: #ED1C24;
    color: var(--text-light);
    padding: 120px 0 0px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: -50px;
    z-index: 10;
    overflow: hidden;
}

.hero-section-thankyou::before,
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/bannerbackground.png') center / cover no-repeat;
    opacity: 0.8;
    mix-blend-mode: multiply;
    z-index: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-section-thankyou::after,
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(237 28 36 / 0%) 0%, rgb(20 0 30 / 36%) 100%);
    z-index: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-section-thankyou>.container,
.hero-section>.container {
    position: relative;
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

.hero-content p.letter-spacing-2 {
    letter-spacing: 2px;
    font-size: 36px;
    font-weight: 300;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content-thankyou h1 {
    font-size: 9.5rem;
    font-weight: 800;
    /* font-style: italic; */
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 20px;
}


.contact-form-card {
    background: #fff;
    padding: 25px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    color: var(--text-dark);
    position: relative;
    top: 35px;
    /* Increased overlap */
    z-index: 20;
    max-width: 350px;
    /* Fixed smaller width */
    margin-left: auto;
    /* Align to right */
}

.contact-form-card h3 {
    color: #283B8F;
    /* User requested color */
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.2;
}

.contact-form-card h3 span {
    color: #283B8F;
    font-weight: 800;
    font-size: 1.3rem;
    font-style: normal;
    display: block;
}

.form-label {
    font-size: 0.85rem;
    color: #283B8F;
    /* User requested color */
    font-weight: 500;
    margin-bottom: 5px;
}

.form-control,
.form-select {
    background-color: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #283B8F;
}

.submit-btn {
    background-color: #283B8F;
    /* User requested color */
    border: none;
    padding: 8px 30px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
    color: #fff;
}

.submit-btn:hover {
    background-color: #1a265e;
}

.form-check-input:checked {
    background-color: #283B8F;
    border-color: #283B8F;
}

.form-check-label {
    color: #283B8F;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 150px 0px 65px;
    /* Increased height significantly */
    background: linear-gradient(180deg, #666 0%, #444 100%);
    color: #fff;
    position: relative;
    /* overflow: hidden; Removed to allow pipe drop to hang out */
    border-bottom-left-radius: 80px;
    border-bottom-right-radius: 80px;
    z-index: 1;
    margin-bottom: 50px;
}

.about-content {
    text-align: center;
    max-width: 1050px;
    /* Wider to allow text to spread */
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 38px;
    /* User requested */
    margin-bottom: 30px;
    color: #f0f0f0;
}

.about-lead strong {
    font-size: 1.35rem;
    /* Slightly larger for emphasis */
    font-weight: 700;
    color: #fff;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 38px;
    font-weight: 100;
    /* User requested */
    color: #e0e0e0;
    margin-bottom: 20px;
    padding: 0px 110px
}

.about-wire-img {
    position: absolute;
    left: -50px;
    top: 75%;
    transform: translateY(-50%) rotate(0deg);
    width: 450px;
    /* Increased size */
    z-index: 3;
}

.about-pipe-img {
    position: absolute;
    right: -50px;
    top: 20%;
    width: 350px;
    /* Increased size */
    z-index: 10;
}

/* Divisions Section */
.divisions-section {
    padding: 50px 0;
    /* background-color: var(--light-bg); */
    text-align: center;
}

.section-title {
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 50px;
    font-size: 2.2rem;
}

.division-title {
    color: #283B8F;
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.division-text {
    font-size: 0.85rem;
    color: #555;
    max-width: 80%;
    margin: 0 auto 30px;
    line-height: 1.5;
}

.division-img {
    max-height: 300px;
    object-fit: contain;
}

/* Product Portfolio */
.portfolio-section {
    padding: 50px 0 0;
    /* background-color: #e2e2e2; */
    overflow: hidden;
    position: relative;
}

.portfolio-section .section-title {
    color: var(--primary-red);
    position: relative;
    z-index: 15;
}

.portfolio-sub-title {
    color: #283B8F;
    font-weight: 500;
    margin-top: 10px;
    position: relative;
    z-index: 15;
}

.portfolio-desc {
    color: #283B8F;
    /* font-style: italic; */
    font-size: 0.9rem;
    position: relative;
    z-index: 15;
}

/* Showcase Container */
.portfolio-showcase {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 30px;
    min-height: 380px;
    margin-top: 20px;
}

/* Side D-shape Items */
.portfolio-side-item {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.side-circle {
    width: 550px;
    height: 500px;
    background: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-circle img {
    max-width: 350px;
    max-height: 260px;
    object-fit: contain;
}

.left-item {
    left: -80px;
}

.left-item .side-circle {
    border-radius: 0 50% 50% 0;
    padding-left: 40px;
}

.right-item {
    right: -80px;
}

.right-item .side-circle {
    border-radius: 50% 0 0 50%;
    padding-right: 40px;
}

/* Center Main Item */
.portfolio-main-item {
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img {
    max-width: 450px;
    max-height: 340px;
    width: 100%;
    object-fit: contain;
}

/* Nav Arrows */
.nav-arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-red);
    color: #fff;
    font-size: 1rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-arrow:hover {
    background-color: #b71c1c;
    transform: translateY(-50%) scale(1.1);
}

.left-arrow {
    left: 440px;
}

.right-arrow {
    right: 440px;
}

/* Features Bar */
.features-bar {
    background-color: #fff;
    padding: 35px 0;
    margin-top: 65px;
    position: relative;
    z-index: 15;
}

.features-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.feature-item {
    text-align: center;
    flex: 1;
    padding: 0 25px;
}

.feature-divider {
    width: 1px;
    height: 45px;
    background-color: #ED1C24;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.95rem;
    color: #283B8F;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Responsive - Portfolio */
@media (max-width: 1200px) {
    .left-arrow {
        left: 200px;
    }

    .right-arrow {
        right: 200px;
    }
}

@media (max-width: 992px) {
    .left-arrow {
        left: 160px;
    }

    .right-arrow {
        right: 160px;
    }

    .side-circle {
        width: 280px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .portfolio-side-item {
        display: none;
    }

    .left-arrow {
        left: 20px;
    }

    .right-arrow {
        right: 20px;
    }

    .features-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .feature-divider {
        display: none;
    }

    .feature-item {
        flex: 0 0 45%;
    }

    .main-img {
        max-width: 350px;
    }
}

/* Photo Gallery */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-grid {
    display: flex;
    gap: 10px;
    /* border: 3px solid #7ec8e3; */
    border-radius: 20px;
    padding: 10px;
    height: 60vh;
    overflow: hidden;
}

.gallery-left {
    flex: 1 0 65%;
    min-height: 0;
}

.gallery-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.gallery-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
}

.gallery-right img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
    border-radius: 14px;
}

/* Gallery Image Hover */
.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
    filter: brightness(0.85);
}

/* ===== Lightbox ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 85vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.4s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(6px);
}

.lightbox-close:hover {
    background: rgba(211, 47, 47, 0.8);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s, transform 0.3s;
    backdrop-filter: blur(6px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-counter {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}

/* Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-image {
        max-width: 95vw;
        max-height: 75vh;
    }

    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

/* ===== Thank You Page - Social Section ===== */
.thankyou-social-section {
    padding: 60px 0 40px;
    background: #fff;
}

.thankyou-message {
    font-size: 1.1rem;
    color: #333;
    font-weight: 400;
    margin-bottom: 8px;
}

.thankyou-follow-label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
}

.thankyou-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.social-icon-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon-link:hover {
    transform: scale(1.15);
    color: #fff;
}

.social-facebook {
    background: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.6);
}

.social-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 4px 15px rgba(214, 36, 159, 0.4);
}

.social-instagram:hover {
    box-shadow: 0 6px 20px rgba(214, 36, 159, 0.6);
}

.social-linkedin {
    background: #0A66C2;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
}

.social-linkedin:hover {
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.6);
}

/* Footer */
.site-footer {
    background-color: #f7f9fc;
    padding: 60px 0 0;
    color: #333;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    position: relative;
    margin-top: 50px;
}

.footer-logo {
    height: 80px;
}

.footer-heading {
    color: #283B8F;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-info p,
.footer-col p {
    font-size: 1rem;
    line-height: 1.7;
    color: #283B8F;
    margin-bottom: 3px;
}

.footer-col a {
    color: #283B8F;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

.copyright-bar {
    background-color: #e8ecf1;
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 1rem;
    color: #283B8F;
    font-weight: 400;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    border-top: 1px solid #cdd5e0;
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-form-card {
        top: 50px;
        max-width: 100%;
        margin-left: 0;
    }

    .about-section {
        padding: 200px 0 100px;
    }

    .about-wire-img {
        width: 300px;
        left: -80px;
    }

    .about-pipe-img {
        width: 250px;
        right: -30px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .division-img {
        max-height: 220px;
    }

    /* Portfolio tablet handled above */

    .gallery-grid {
        height: 350px;
    }

    .site-footer {
        padding: 50px 0 0;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0 20px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        margin-bottom: -30px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }

    .contact-form-card {
        top: 30px;
        margin-bottom: 30px;
    }

    .about-section {
        padding: 150px 0 80px;
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }

    .about-wire-img {
        width: 200px;
        left: -60px;
        opacity: 0.5;
    }

    .about-pipe-img {
        width: 180px;
        right: -30px;
        opacity: 0.5;
    }

    .about-content {
        padding: 0 20px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 30px;
        padding: 0px;
    }

    .about-lead {
        font-size: 1rem;
        line-height: 30px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .division-title {
        font-size: 1.2rem;
    }

    .division-text {
        max-width: 100%;
    }

    .portfolio-section {
        padding: 40px 0 0;
    }

    .portfolio-showcase {
        min-height: 280px;
        padding: 30px 0 20px;
    }

    .main-img {
        max-width: 280px;
    }

    .feature-text {
        font-size: 0.8rem;
    }

    .gallery-section {
        padding: 50px 0;
    }

    .gallery-grid {
        flex-direction: column;
        height: auto;
    }

    .gallery-left {
        flex: none;
    }

    .gallery-left img {
        height: 250px;
    }

    .gallery-right {
        flex-direction: row;
    }

    .gallery-right img {
        height: 120px;
    }

    .site-footer {
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .copyright-bar {
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p.letter-spacing-2 {
        font-size: 0.85rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .contact-form-card {
        padding: 20px;
        border-radius: 20px;
    }

    .about-section {
        padding: 120px 0 60px;
    }

    .about-wire-img,
    .about-pipe-img {
        display: none;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .portfolio-showcase {
        min-height: 220px;
    }

    .main-img {
        max-width: 220px;
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }

    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .feature-item {
        padding: 0 10px;
    }

    .feature-text {
        font-size: 0.7rem;
    }

    .gallery-large-img img {
        height: 200px;
        border-radius: 10px;
    }

    .gallery-small-img {
        height: 80px;
        border-radius: 6px;
    }

    .footer-logo {
        height: 45px;
    }
}

/* Custom Dropdown / Radio styles */
.custom-dropdown-container {
    background: #fff;
    margin-bottom: 20px;
}
.custom-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}
.custom-dropdown-header .custom-label {
    font-size: 1.1rem;
    color: #283B8F;
    font-weight: 500;
}
.custom-dropdown-header i {
    color: #ccc;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}
.custom-dropdown-header.open i {
    transform: rotate(180deg);
}
.custom-dropdown-body {
    display: none;
    padding-top: 5px;
}
.custom-dropdown-container.open .custom-dropdown-body {
    display: block;
}

.custom-radio {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
}
.custom-radio input[type="radio"] {
    display: none;
}
.radio-mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    margin-top: 2px;
    position: relative;
    background: #fff;
}
.custom-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #283B8F;
    border-radius: 50%;
}
.radio-text {
    color: #283B8F;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
}