﻿
/* ─── Reset & Base ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f4ff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

/* ─── Hero Section ─── */
.hero-section {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    position: relative;
}

    .hero-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        max-width: 600px;
        height: 2px;
        background: linear-gradient(90deg, transparent, #2563eb, transparent);
        opacity: 0.3;
    }

.logo-wrapper {
    display: inline-block;
    transition: transform 0.3s ease;
}

    .logo-wrapper:hover {
        transform: scale(1.02);
    }

.logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.15));
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #4b5563;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

    .hero-tagline strong {
        color: #1a56db;
        font-weight: 700;
    }

/* ─── Search Box ─── */
.search-wrapper {
    max-width: 720px;
    margin: 1.5rem auto 0;
    padding: 0 0.5rem;
}

.search-box {
    width: 100%;
    margin: 0 auto;
}

/* Google Custom Search Override */
.gsc-control-cse {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.gsc-search-box {
    margin: 0 auto !important;
}

.gsc-input-box {
    border: 2px solid #e5e7eb !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    background: #fff !important;
}

    .gsc-input-box:focus-within {
        border-color: #2563eb !important;
        box-shadow: 0 4px 30px rgba(37, 99, 235, 0.15) !important;
    }

.gsc-search-button-v2 {
    border-radius: 50px !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    padding: 12px 28px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

    .gsc-search-button-v2:hover {
        transform: scale(1.03) !important;
        box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35) !important;
    }

    .gsc-search-button-v2 svg {
        fill: #fff !important;
    }

/* ─── Section Titles ─── */
.section-title {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
    position: relative;
}

    .section-title h2 {
        font-size: clamp(1.5rem, 3vw, 2.2rem);
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.5px;
        display: inline-block;
    }

        .section-title h2 .highlight {
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

    .section-title .subtitle {
        display: block;
        font-size: clamp(0.85rem, 1.5vw, 1rem);
        font-weight: 400;
        color: #6b7280;
        margin-top: 0.25rem;
        -webkit-text-fill-color: #6b7280;
    }

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 4px;
    margin: 0.5rem auto 0;
}

/* ─── Tools Grid ─── */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
}

.tool-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.1rem 1.5rem;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 56px;
    text-align: center;
    border: none;
    cursor: pointer;
}

    .tool-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 60%);
        pointer-events: none;
    }

    .tool-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
        text-decoration: none;
        color: #fff;
    }

    .tool-card:active {
        transform: scale(0.97);
    }

    .tool-card .icon {
        font-size: 1.3rem;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .tool-card .label {
        position: relative;
        z-index: 1;
        white-space: nowrap;
    }

/* Tool Colors */
.tool-compare {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.tool-whois {
    background: linear-gradient(135deg, #059669, #047857);
}

.tool-ip {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.tool-ip-location {
    background: linear-gradient(135deg, #ea580c, #c2410c);
}

.tool-json {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.tool-xml {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.tool-sql {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* ─── Diwali Banner ─── */
.diwali-banner {
    text-align: center;
    margin: 2rem 0 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    border: 2px solid #fbbf24;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .diwali-banner::before {
        content: '✨🎆🎇✨';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        opacity: 0.08;
        letter-spacing: 20px;
        pointer-events: none;
        white-space: nowrap;
        overflow: hidden;
    }

    .diwali-banner:hover {
        transform: scale(1.01);
        box-shadow: 0 4px 20px rgba(251, 191, 36, 0.25);
    }

    .diwali-banner a {
        text-decoration: none;
        color: #78350f;
        font-weight: 700;
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        position: relative;
        z-index: 1;
    }

        .diwali-banner a:hover {
            color: #451a03;
            text-decoration: underline;
        }

    .diwali-banner .diwali-icon {
        font-size: 1.4rem;
        animation: sparkle 2s infinite;
    }

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* ─── Features Section ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 0.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.25rem 0.75rem;
    background: #fff;
    border-radius: 14px;
    border: 1.5px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

    .feature-item:hover {
        border-color: #2563eb;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
        transform: translateY(-2px);
    }

    .feature-item .f-icon {
        font-size: 2rem;
        margin-bottom: 0.4rem;
        display: block;
    }

    .feature-item .f-label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #1f2937;
    }

    .feature-item .f-desc {
        font-size: 0.7rem;
        color: #6b7280;
        margin-top: 0.2rem;
    }

/* ─── Footer ─── */
.home-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 0.8rem;
}

    .home-footer strong {
        color: #4b5563;
    }

/* ─── Responsive ─── */

/* Tablets */
@media (min-width: 640px) {
    .home-wrapper {
        padding: 2rem 2rem 3rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .tool-card {
        padding: 1.2rem 2rem;
        font-size: 1rem;
        min-height: 64px;
    }
}

@media (min-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-section {
        padding: 2.5rem 1rem 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .home-wrapper {
        padding: 0.75rem 0.75rem 2rem;
    }

    .hero-section {
        padding: 1rem 0.5rem;
    }

    .logo-img {
        max-width: 200px;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        padding: 0;
    }

    .tool-card {
        padding: 0.85rem 0.6rem;
        font-size: 0.75rem;
        min-height: 48px;
        border-radius: 12px;
        gap: 0.4rem;
    }

        .tool-card .icon {
            font-size: 1rem;
        }

        .tool-card .label {
            white-space: normal;
            font-size: 0.7rem;
        }

    .section-title {
        margin: 1.5rem 0 1rem;
    }

        .section-title h2 {
            font-size: 1.2rem;
        }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .feature-item {
        padding: 0.8rem 0.4rem;
    }

        .feature-item .f-icon {
            font-size: 1.4rem;
        }

        .feature-item .f-label {
            font-size: 0.7rem;
        }

        .feature-item .f-desc {
            font-size: 0.6rem;
        }

    .diwali-banner {
        padding: 0.5rem 0.75rem;
        border-radius: 12px;
    }

        .diwali-banner a {
            font-size: 0.8rem;
        }

        .diwali-banner .diwali-icon {
            font-size: 1rem;
        }

    .search-wrapper {
        padding: 0;
    }

    .gsc-input-box {
        padding: 8px 12px !important;
    }

    .gsc-search-button-v2 {
        padding: 10px 16px !important;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .tools-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .tool-card {
        padding: 0.6rem 0.4rem;
        font-size: 0.65rem;
        min-height: 40px;
        border-radius: 10px;
    }

        .tool-card .icon {
            font-size: 0.85rem;
        }

    .logo-img {
        max-width: 160px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.4rem;
    }

    .feature-item {
        padding: 0.6rem 0.3rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 0.5rem 0;
    }

    .logo-img {
        max-width: 140px;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .search-wrapper {
        margin-top: 0.5rem;
    }

    .tools-grid {
        gap: 0.4rem;
    }

    .tool-card {
        padding: 0.5rem 0.8rem;
        min-height: 36px;
        font-size: 0.7rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #0f172a;
    }

    .hero-tagline {
        color: #9ca3af;
    }

        .hero-tagline strong {
            color: #60a5fa;
        }

    .feature-item {
        background: #1e293b;
        border-color: #334155;
    }

        .feature-item .f-label {
            color: #e5e7eb;
        }

        .feature-item .f-desc {
            color: #9ca3af;
        }

    .section-title h2 {
        color: #f1f5f9;
    }

    .section-title .subtitle {
        color: #9ca3af;
    }

    .home-footer {
        border-top-color: #1e293b;
        color: #475569;
    }

        .home-footer strong {
            color: #9ca3af;
        }

    .gsc-input-box {
        background: #1e293b !important;
        border-color: #334155 !important;
    }

        .gsc-input-box:focus-within {
            border-color: #60a5fa !important;
        }
}


