body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
	background: #002f5a;
	box-sizing: border-box;
}

/* GALAXY SECTION */
.galaxy-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* background: linear-gradient(180deg, #0b0c2a, #04010f); */
    background: linear-gradient(180deg, #12122f, #1a112b);
    background: linear-gradient(180deg, #12122f 0%, #002f5a 100%);
    padding: 2rem 0 4rem 0;
}

#galaxyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.galaxy-heading {
    position: relative;
    text-align: center;
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffffcc;
    margin-bottom: 3rem;
    z-index: 2;
}

/* iske andr 2 add left right me or bich me mainbox aayega */

.tools-container {
    display: flex;
    justify-content: space-between;
    /* Ads ko corners pe bhej dega */
    align-items: flex-start;
    width: 100%;
    /* Full page width */
    max-width: 100%;
    /* Ensure it takes full space */
    gap: 20px;
}

.toolAd {
    width: 200px;
    /* Ad ka width */
    max-height: 280px;
    height: 250px;
    margin: 10px 2px;
    flex-shrink: 0;
    z-index: 2;
}


@media (max-width: 950px) {


    .left-tool-ad {
        display: none;
    }

    .toolAd {
        flex-shrink: 0;
    }

    .right-tool-ad {
    	height: 300px;
        max-height: 400px;
    }

}


 .pageBottomAd{
 	display: none;
 }
@media (max-width: 700px) {
    
    .toolAd {
        display: none;
    }

    .pageBottomAd {
        display:flex;
        max-width: 100%;   
        width: 400px;
        height: 180px;     
        max-height: 200px;
        margin: 20px auto;
    }

}
/* TOOLS GRID */
.tools-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    z-index: 2;
    box-sizing: border-box;
    max-width: 950px;
    min-width: 250px;

    /* 🟢 Add this */
    align-items: stretch;
}

.tool-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    color: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s;

    /* 🟢 Add this */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.tool-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 200, 150, 0.4);
}

.tool-card .emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #0984e3);
    color: #fff;
    transition: transform 0.3s;
}

.tool-card:hover .emoji {
    transform: rotate(10deg) scale(1.1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.5);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 20px 10px rgba(0, 200, 150, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 200, 150, 0);
    }
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tool-card p {
    font-size: 0.95rem;
    color: #ddd;
}

/* Responsive */
@media(max-width:1024px) {
    .tools-grid {
        padding: 0 30px;
        max-width: 900px;
    }
}

@media(max-width:768px) {
    .tools-grid {
        padding: 0 20px;
        max-width: 600px;
    }
}

@media(max-width:500px) {
    .tools-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

.tools-grid a {
    display: block;
    text-decoration: none;
    /* remove underline */
    color: inherit;
    /* inherit card color */
}


/* Emoji already centered inside tool-card */
.tool-card .emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    /* auto horizontal margin ensures center */
}