:root {
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.4;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* On large screens, strictly fit into viewport without scrolling */
@media (min-width: 1024px) {
    body {
        height: 100vh;
        overflow: hidden;
        justify-content: center;
    }
}

/* Background decorative elements */
.bg-building {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 60vh;
    background: url('https://smadarussalam.sch.id/wp-content/uploads/2026/07/background.png') no-repeat left top;
    background-size: cover;
    opacity: 1;
    z-index: -2;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}

.bg-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
}

.bg-shape-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #e0f2fe 0%, rgba(224, 242, 254, 0) 70%);
    top: -300px;
    right: -300px;
}

.bg-shape-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #dbeafe 0%, rgba(219, 234, 254, 0) 70%);
    bottom: -200px;
    left: -200px;
}

.bg-dots {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(#cbd5e1 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.5;
    z-index: -1;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.logo {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.1rem;
    letter-spacing: 0.05em;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 0.95rem;
    color: #4b5563;
}

/* Apps Grid Container */
.apps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin-bottom: 1rem;
}

/* App Card */
.app-card {
    /* 5 items per row with 1rem gap */
    width: calc((100% - 4 * 1rem) / 5);
    min-width: 200px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-bottom: 4px solid var(--app-color);
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--app-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--app-color);
    margin-bottom: 0.5rem;
}

.app-card p {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem;
    background-color: var(--app-bg);
    color: var(--app-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease, filter 0.2s ease;
}

.btn-app:hover {
    filter: brightness(0.95);
}

/* Features Row */
.features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.feature-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.1rem;
}

.feature-text p {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Footer */
.footer {
    text-align: center;
    padding: 0.5rem 0;
    color: #9ca3af;
    font-size: 0.75rem;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .app-card {
        width: calc((100% - 3 * 1rem) / 4);
    }
}

@media (max-width: 992px) {
    .app-card {
        width: calc((100% - 2 * 1rem) / 3);
    }

    .feature-item {
        min-width: 45%;
    }
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 1.5rem;
    }

    .app-card {
        width: calc((100% - 1 * 1rem) / 2);
    }

    .feature-item {
        min-width: 100%;
    }

    .bg-building {
        width: 100%;
        opacity: 0.1;
    }

    body {
        height: auto;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .app-card {
        width: 100%;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }
}