/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    line-height: 1.6;
    padding-top: 70px;
}

/* ===== HEADER - Sticky Lock ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Logo Link - Home Page ===== */
.logo-link {
    text-decoration: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #0f172a;
    transition: opacity 0.2s;
    text-decoration: none !important;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 34px;
    width: auto;
}

.logo span {
    letter-spacing: -0.3px;
    text-decoration: none !important;
}

/* ===== Nav Button ===== */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.nav-btn i {
    font-size: 14px;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 40px 24px 48px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8edf5;
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.tag i {
    font-size: 12px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 17px;
    color: #475569;
    max-width: 560px;
    margin: 0 auto 28px;
    font-weight: 400;
    line-height: 1.7;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 34px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
}

.hero-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.hero-btn i {
    font-size: 14px;
    transition: transform 0.2s;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

/* ===== SEARCH ===== */
.search-area {
    padding: 0 24px 40px;
    max-width: 580px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

#search {
    width: 100%;
    padding: 14px 22px 14px 48px;
    border: 2px solid #e2e8f0;
    border-radius: 40px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    outline: none;
    transition: all 0.25s;
}

#search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.10);
}

#search::placeholder {
    color: #94a3b8;
    font-weight: 300;
}

/* ===== PROJECTS ===== */
#projects {
    padding: 0 24px 64px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.subtitle {
    color: #64748b;
    font-size: 15px;
    margin-top: 4px;
}

#cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ===== CARD STYLES ===== */
.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    border: 1px solid #eef2f6;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
    border-color: #dce3ec;
}

/* Website Logo in Card */
.card-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px;
    border: 1px solid #eef2f6;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.5;
}

.card .status-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 16px;
    width: fit-content;
}

.status-live {
    background: #dcfce7;
    color: #166534;
}

.status-beta {
    background: #fef3c7;
    color: #92400e;
}

.status-coming {
    background: #e2e8f0;
    color: #475569;
}

.open-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.open-btn:hover {
    color: #1d4ed8;
    gap: 10px;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 48px 24px 32px;
    text-align: center;
}

.footer-container {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer h2 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.footer-text {
    font-size: 15px;
    color: #94a3b8;
    margin: 6px 0 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 18px;
    transition: all 0.2s;
    text-decoration: none;
}

.social-links a:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: scale(1.05);
}

.copyright {
    font-size: 13px;
    color: #64748b;
    margin-top: 16px;
}

.developer {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    body {
        padding-top: 62px;
    }

    .hero {
        padding: 30px 16px 32px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .navbar {
        padding: 10px 16px;
    }

    .logo {
        font-size: 16px;
        gap: 8px;
    }

    .logo img {
        height: 28px;
    }

    .nav-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    .nav-btn i {
        display: none;
    }

    #cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        padding: 20px 18px;
    }

    .card-logo {
        width: 48px;
        height: 48px;
        padding: 6px;
    }

    .footer {
        padding: 32px 16px 24px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 6px;
    }

    .social-links a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .search-area {
        padding: 0 16px 32px;
    }

    #projects {
        padding: 0 16px 40px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #cards {
        grid-template-columns: repeat(2, 1fr);
    }
}