* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background-color: #fff;
    border-radius: 15px;
    margin: 10px auto;
    max-width: 720px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header-section {
    background: linear-gradient(135deg, #6a00ff, #ff0080);
    padding: 40px 20px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 60px;
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-content .logo {
    width: 140px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
    padding: 5px;
}

.header-text h1 {
    font-family: 'Philosopher', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.25);
}

.header-text p {
    font-size: 17px;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.section-heading {
    margin: 0 auto 40px;
    max-width: fit-content;
    position: relative;
}

.section-heading h2 {
    background: linear-gradient(90deg, #ae34e8, #ff4e8d);
    color: #fff;
    display: inline-block;
    font-family: 'Philosopher', sans-serif;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    margin-bottom: 0 !important;
    padding: 8px 50px;
    position: relative;
    border-radius: 6px;
    z-index: 2;
}

.section-heading::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -10px;
    width: 100%;
    height: 100%;
    background-color: #3e8dff;
    z-index: 1;
    border-radius: 6px;
    transform: skewX(-5deg);
}

.section-heading h2,
.section-heading:before {
    -webkit-clip-path: polygon(10% 0, 100% 0, 92% 100%, 0 100%);
    clip-path: polygon(10% 0, 100% 0, 92% 100%, 0 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    justify-items: center;
}

.contact-item {
    background: linear-gradient(to right, #ffffff, #f9f1fd);
    border-radius: 10px;
    padding: 30px 15px 20px;
    width: 100%;
    max-width: 320px;
    position: relative;
    border: 2px solid #ae34e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.contact-item .icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(90deg, #003e7e, #ae34e8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    z-index: 2;
}

.contact-item img {
    width: 22px;
    height: 22px;
}

.contact-item .details {
    text-align: center;
    margin-top: 10px;
}

.contact-item .details .label {
    font-weight: 700;
    color: #ae34e8;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.contact-item .details p,
.contact-item .details a {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.4;
    text-decoration: none;
}

.contact-item .details a:hover {
    text-decoration: underline;
}

#address {
    width: 100%;
    max-width: 97%;
    margin-left: 10px;
    margin-top: 30px;
}

#address .details p {
    font-size: 19px;
}

#services-section {
    margin-top: 40px;
}


/* Machinery Section */
.machinery-section {
    background: white;
    max-width: 900px;
    padding: 0px 20px;
    padding-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.machinery-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    justify-items: center;
}

.machinery-list li {
    background: linear-gradient(90deg, rgba(73, 81, 254, 0.112) 24%, rgba(73, 81, 254, 0.112) 38%, rgba(148, 69, 211, 0.112) 62%, rgba(223, 57, 167, 0.112) 100%);
    padding: 14px 20px;
    margin: 5px 0;
    border-left: 5px solid #7000fe;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    width: 100%;
    max-width: 320px;
}

/* === Diwali Popup (Theme-Matched) === */
#diwali-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#diwali-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    position: relative;
    background: linear-gradient(135deg, #6a00ff, #ff0080);
    color: white;
    text-align: center;
    padding: 50px 20px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.diwali-message {
    color: #fffdf0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 8px 0;
    position: relative;
    z-index: 2;
}

.diwali-message.main-line {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffe6ff;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.diwali-message.sub-line {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 19px 0;
}


#close-popup {
    background: linear-gradient(90deg, #ff0080, #6a00ff);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

#close-popup:hover {
    transform: scale(1.1);
    background: linear-gradient(90deg, #6a00ff, #ff0080);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

#fireworks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* send behind text */
    pointer-events: none;
    opacity: 0.9;
}

.popup-box h1.diwali-title,
.popup-box p.diwali-message,
#close-popup {
    position: relative;
    z-index: 2;
}


.popup-box h1.diwali-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 1px;

    /* Simple glowing border */
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 15px #ae34e8,
        0 0 25px #ff0080;
    animation: softGlow 2.5s ease-in-out infinite alternate;
}

@keyframes softGlow {
    from {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.7),
            0 0 15px #ae34e8,
            0 0 25px #ff0080;
    }

    to {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 1),
            0 0 20px #ff0080,
            0 0 35px #ae34e8;
    }
}


@media only screen and (max-width: 700px) {
    .contact-content {
        grid-template-columns: 1fr;
    }

    .machinery-section {
        margin: 0;
        padding: 20px 15px;
        padding-top: 0 !important;
    }

    .machinery-section h2 {
        font-size: 1.4rem;
    }

    #address {
        max-width: 95%;
        margin-left: 10px;
    }

    .machinery-list li {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .machinery-list {
        grid-template-columns: 1fr;
    }

    .machinery-list li {
        max-width: 100%;
    }

    .header-text h1 {
        font-size: 28px;
    }

    .header-text p {
        font-size: 16px;
    }

    .header-section {
        border-radius: 0;
        padding: 16px;
        margin-bottom: 40px;
    }

    .header-content {
        gap: 15px;
    }

    .main-container {
        border-radius: 0;
        margin: 0;
    }

    .header-content .logo {
        width: 110px;
    }
}


@media only screen and (max-width: 600px) {

    .header-content .logo {
        width: 90px;
    }

    .header-text h1 {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .header-text p {
        font-size: 12px;
    }

    .contact-item .details p,
    .contact-item .details a {
        font-size: 12px;
    }

    .contact-item .details .label {
        font-size: 14px;
        margin-bottom: 3px;
    }

    .popup-box h1.diwali-title {
        font-size: 1.8rem;
    }

    .diwali-message.main-line {
        font-size: 0.9rem;
    }

    .diwali-message.sub-line {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 400px) {

    .popup-box h1.diwali-title {
        font-size: 1.5rem;
    }

}