/* ========================================
   MODERN HOMEPAGE REDESIGN - 2024
   ======================================== */

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Hero Section - Modern */
.hero-modern {
    text-align: center;
    padding: 3rem 1rem 4rem;
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
}

/* Tools Section */
.tools-section {
    margin-bottom: 4rem;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Tool Card */
.tool-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

/* Tool Badge */
.tool-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-badge-free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.tool-badge-premium {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.badge-icon {
    font-size: 1rem;
}

/* Tool Icon */
.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Tool Icon Image (Modern Icons) */
.tool-icon-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover .tool-icon-img {
    transform: scale(1.05) translateY(-4px);
}

/* Tool Name */
.tool-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

/* Tool Description */
.tool-desc {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tool Features List */
.tool-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.tool-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #e2e8f0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-features li:last-child {
    border-bottom: none;
}

.check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}

/* Tool Button */
.tool-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tool-button-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.tool-button-blue:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.tool-button-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.tool-button-purple:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.button-arrow {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.tool-button:hover .button-arrow {
    transform: translateX(4px);
}

/* Social Section */
.social-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.social-title {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.social-title strong {
    color: #f8fafc;
    font-weight: 700;
}

.social-icons-modern {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: #6366f1;
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

/* Footer Modern */
.footer-modern {
    text-align: center;
    padding: 2rem 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-modern p {
    margin-bottom: 0.75rem;
}

.admin-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.admin-link:hover {
    color: #6366f1;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

@media (max-width: 768px) {
    .main-container {
        padding: 1rem 0.75rem;
    }

    .hero-modern {
        padding: 2rem 1rem 3rem;
        margin-bottom: 2rem;
    }

    .hero-heading {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .tools-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }

    .tool-icon {
        font-size: 3rem;
    }

    .tool-icon-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1.25rem;
    }

    .tool-name {
        font-size: 1.3rem;
    }

    .tool-desc {
        font-size: 0.95rem;
    }

    .tool-features li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .check-icon {
        width: 1.1rem;
        height: 1.1rem;
    }

    .tool-button {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .social-section {
        padding: 2rem 1rem;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-icons-modern {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .tool-name {
        font-size: 1.2rem;
    }

    .tool-button {
        font-size: 0.9rem;
        padding: 0.85rem 1rem;
    }
}

/* Animation on Scroll */
@media (prefers-reduced-motion: no-preference) {
    .tool-card {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .tool-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .tool-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}