* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #f8fbff, #e8f1ff);
    color: #222;
    overflow-x: hidden;
}

.main-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #006aff, #00b8ff, #00e0ff);
    color: #fff;
    position: relative;
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, #007bff 0%, transparent 100%);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    opacity: 0.3;
}

header .logo img {
    width: 160px;
    background: #fff;
}

header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-info {
    text-align: center;
    padding: 42px 20px;
}

.contact-info h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-card {
    position: relative;
    width: 300px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.contact-card .polygon {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    opacity: 0.2;
}

.icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00a8ff, #006aff);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    margin: 0 auto 20px;
}

.icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.contact-card h3 {
    font-size: 1.3rem;
    color: #006aff;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

.contact-card a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
}

/* Services Section */
.services {
    background: linear-gradient(120deg, #ffffff, #f0f8ff);
    text-align: center;
    padding: 40px 20px;
}

.services h2 {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 50px;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.service-card {
    position: relative;
    width: 300px;
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-card .polygon {
    position: absolute;
    top: -30px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.15;
}

.service-card img {
    width: 60px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.2rem;
    color: #006aff;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

/* Section Title Styling */
.contact-info h2,
.services h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #006aff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    margin-bottom: 60px;
    padding-bottom: 10px;
}

/* Underline Gradient Bar */
.contact-info h2::after,
.services h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #006aff, #00c6ff);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 150, 255, 0.4);
}

/* Optional glow animation */
@keyframes titleGlow {
    0% {
        text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
    }

    50% {
        text-shadow: 0 0 15px rgba(0, 150, 255, 0.5);
    }

    100% {
        text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
    }
}

.contact-info h2:hover,
.services h2:hover {
    animation: titleGlow 1.5s ease-in-out infinite;
}


#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, rgba(0, 106, 255, 1.9), rgba(0, 212, 255, 1.9));
    color: white;
    padding: 50px 30px;
    border-radius: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 106, 255, 0.25);
    overflow: hidden;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.popup-box h1.diwali-title {
    font-family: 'Philosopher', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 15px #00c6ff;
    animation: softBlueGlow 2s ease-in-out infinite alternate;
    z-index: 2;
    position: relative;
}

@keyframes softBlueGlow {
    from {
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.6),
            0 0 18px #00c6ff;
    }

    to {
        text-shadow:
            0 0 12px rgba(255, 255, 255, 1),
            0 0 28px #00aaff;
    }
}

.diwali-message {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 10px 0;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.diwali-message.main-line {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff9e6;
    margin-bottom: 8px;
}

.diwali-message.sub-line {
    font-size: 1rem;
    font-weight: 500;
    color: #e3f6ff;
}

#close-popup {
    background: linear-gradient(135deg, #00c6ff, #006aff);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 0 10px rgba(0, 123, 255, 0.3),
        0 4px 14px rgba(0, 123, 255, 0.25);
    transition: all 0.3s ease;
    margin-top: 25px;
    z-index: 2;
    position: relative;
}

#close-popup:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #006aff, #00c6ff);
    box-shadow:
        0 0 12px rgba(0, 174, 255, 0.4),
        0 6px 18px rgba(0, 106, 255, 0.5);
}

#fireworks {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}


/* Responsive */
@media only screen and (max-width: 768px) {

    .contact-grid,
    .service-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .contact-card,
    .service-card {
        width: 97%;
        padding: 20px;
    }

    header {
        padding: 16px;
    }

    .contact-info {
        padding: 32px 20px;
    }

    .contact-info h2,
    .services h2 {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    header .logo img {
        width: 100px;
    }

    .services {
        padding: 30px 20px;
    }

    .icon img {
        width: 30px;
        height: 30px;
    }

    .icon {
        width: 60px;
        height: 60px;
    }

    .contact-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .contact-card p {
        font-size: 13px;
    }

    .service-card img {
        margin-bottom: 10px;
    }

    .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;
    }

    .popup-box {
        padding: 40px 12px;
    }

}

@media only screen and (max-width: 400px) {

    .popup-box h1.diwali-title {
        font-size: 1.5rem;
    }

}