/* ===========================
   iggi.dev — Neomorphism Soft UI
   =========================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #e8e4e0;
    color: #3d3833;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

code {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
}

/* --- Neomorphic System --- */
.neo-card {
    background: #e8e4e0;
    border-radius: 16px;
    box-shadow: 8px 8px 16px #c5c0ba, -8px -8px 16px #ffffff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.neo-card.pressed,
.neo-card.active {
    box-shadow: inset 4px 4px 8px #c5c0ba, inset -4px -4px 8px #ffffff;
}

.neo-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8e4e0;
    box-shadow: 4px 4px 8px #c5c0ba, -4px -4px 8px #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-divider {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: #e8e4e0;
    box-shadow: 3px 3px 6px #c5c0ba, -3px -3px 6px #ffffff;
    margin: 40px auto 0;
}

/* ===========================
   Section 1: Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.hero-card {
    text-align: center;
    padding: 60px 48px;
    max-width: 520px;
    width: 100%;
}

.brand {
    font-size: 54px;
    letter-spacing: -1px;
    color: #3d3833;
    margin-bottom: 16px;
}

.brand-dot {
    color: #7c3aed;
}

.tagline {
    font-size: 20px;
    color: #8c8680;
    letter-spacing: 0.2px;
}

/* ===========================
   Section 2: Tools
   =========================== */
.tools {
    padding: 100px 24px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    font-size: 32px;
    color: #3d3833;
    margin-bottom: 60px;
    text-align: center;
}

.tool-grid {
    display: flex;
    gap: 32px;
    max-width: 960px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.tool-card {
    flex: 1 1 260px;
    max-width: 300px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
}

.tool-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    box-shadow: 12px 12px 24px #c5c0ba, -12px -12px 24px #ffffff;
    transform: translateY(-4px);
}

.tool-card.visible:hover {
    transform: translateY(-4px);
}

.tool-icon-wrapper {
    margin-bottom: 24px;
}

.tool-name {
    font-size: 22px;
    color: #3d3833;
    margin-bottom: 12px;
}

.tool-desc {
    font-size: 15px;
    color: #8c8680;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tool-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: #e8e4e0;
    box-shadow: inset 2px 2px 4px #c5c0ba, inset -2px -2px 4px #ffffff;
}

.tool-tag code {
    font-size: 13px;
    color: #7c3aed;
}

/* ===========================
   Section 3: Interact
   =========================== */
.interact {
    padding: 80px 24px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toggle-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 640px;
    width: 100%;
    margin-bottom: 48px;
}

.toggle-row-item {
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(30px);
}

.toggle-row-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.neo-toggle {
    width: 60px;
    height: 32px;
    cursor: pointer;
    position: relative;
}

.toggle-track {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: #e8e4e0;
    box-shadow: inset 3px 3px 6px #c5c0ba, inset -3px -3px 6px #ffffff;
    position: relative;
    transition: background 0.3s ease;
}

.toggle-knob {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8e4e0;
    box-shadow: 2px 2px 4px #c5c0ba, -2px -2px 4px #ffffff;
    position: absolute;
    top: 4px;
    left: 4px;
    transition: left 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.neo-toggle.active .toggle-knob {
    left: 32px;
    background: #7c3aed;
    box-shadow: 2px 2px 6px rgba(124, 58, 237, 0.4), -1px -1px 3px #ffffff;
}

.toggle-label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #8c8680;
    user-select: none;
}

.toggle-row-item .neo-toggle.active + .toggle-label {
    color: #3d3833;
}

/* --- Buttons --- */
.button-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.button-row.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.neo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 16px;
    background: #e8e4e0;
    box-shadow: 6px 6px 12px #c5c0ba, -6px -6px 12px #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #3d3833;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.neo-btn:hover {
    box-shadow: 8px 8px 16px #c5c0ba, -8px -8px 16px #ffffff;
}

.neo-btn:active,
.neo-btn.pressed {
    box-shadow: inset 4px 4px 8px #c5c0ba, inset -4px -4px 8px #ffffff;
    transform: scale(0.97);
}

/* ===========================
   Section 4: Footer
   =========================== */
.footer {
    padding: 80px 24px 60px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer-card {
    text-align: center;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
}

.footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #3d3833;
    display: block;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 15px;
    color: #8c8680;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #7c3aed;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #3d3833;
}

.footer-sep {
    color: #c5c0ba;
    font-size: 14px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .brand {
        font-size: 40px;
    }

    .hero-card {
        padding: 44px 28px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .tool-grid {
        flex-direction: column;
        align-items: center;
    }

    .tool-card {
        max-width: 340px;
    }

    .toggle-grid {
        flex-direction: column;
        align-items: center;
    }

    .button-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .brand {
        font-size: 32px;
    }

    .tagline {
        font-size: 16px;
    }

    .hero-card {
        padding: 36px 20px;
    }

    .tool-card {
        padding: 28px 20px;
    }

    .footer-card {
        padding: 36px 24px;
    }
}
