/* =========================================================
   RESET
   ========================================================= */

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


/* =========================================================
   BODY
   ========================================================= */

body {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #1e1e2f,
            #3a3a5a
        );

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   MOBILE PHONE SCREEN
   ========================================================= */

.screen {
    width: 320px;
    height: 600px;

    position: relative;

    padding: 15px;

    border-radius: 40px;

    background:
        linear-gradient(
            180deg,
            #151515,
            #0d0d0d
        );

    overflow-y: auto;
    overflow-x: hidden;

    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   APP HEADER
   ========================================================= */

.app-header {
    width: 100%;

    text-align: center;

    padding: 5px 0 12px;
}


/* =========================================================
   STATUS INDICATOR
   ========================================================= */

.status-indicator {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    min-height: 42px;

    margin-bottom: 8px;

    color: #00e5ff;

    font-size: 10px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =========================================================
   AI LOGO
   ========================================================= */

.status-icon {
    display: block;

    object-fit: cover;

    object-position: center;

    border-radius: 12px;

    background: #ffffff;

    border: 2px solid rgba(0, 229, 255, 0.7);

    box-shadow:
        0 0 8px rgba(0, 229, 255, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.5);

    flex-shrink: 0;

    opacity: 1;

    visibility: visible;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   AI LOGO HOVER
   ========================================================= */

.status-icon:hover {
    transform: scale(1.05);

    box-shadow:
        0 0 14px rgba(0, 229, 255, 0.65),
        0 6px 16px rgba(0, 0, 0, 0.6);
}


/* =========================================================
   STATUS DOT
   ========================================================= */

.status-dot {
    width: 7px;
    height: 7px;

    display: inline-block;

    flex-shrink: 0;

    border-radius: 50%;

    background: #00e676;

    box-shadow:
        0 0 8px rgba(0, 230, 118, 0.9);
}


/* =========================================================
   APP TITLE
   ========================================================= */

.app-header h1 {
    margin: 0;

    color: #ffffff;

    font-size: 22px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-shadow:
        0 2px 8px rgba(0, 229, 255, 0.4);
}


/* =========================================================
   HEADER SUBTITLE
   ========================================================= */

.header-subtitle {
    margin-top: 5px;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 10px;

    letter-spacing: 0.3px;
}


/* =========================================================
   DATE & TIME
   ========================================================= */

.datetime-display {
    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 8px 5px 12px;

    margin-bottom: 5px;
    gap: 8px;
}


/* =========================================================
   DATE
   ========================================================= */

#currentDate {
    display: block;

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.4;

    margin-bottom: 4px;

    text-shadow:
        0 1px 5px rgba(255, 255, 255, 0.35);
}


/* =========================================================
   TIME
   ========================================================= */

#currentTime {
    display: block;

    color: #00e5ff;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 1px;

    text-shadow:
        0 0 10px rgba(0, 229, 255, 0.6);
}


/* =========================================================
   SEARCH BAR
   ========================================================= */

.portfolio-search {
    width: 100%;

    height: 40px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 0 12px;

    margin-bottom: 18px;

    border:
        1px solid rgba(255, 255, 255, 0.15);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.08);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   SEARCH ICON
   ========================================================= */

.portfolio-search i {
    color: #00e5ff;

    font-size: 14px;

    flex-shrink: 0;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

.portfolio-search input {
    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 13px;
}


/* =========================================================
   SEARCH PLACEHOLDER
   ========================================================= */

.portfolio-search input::placeholder {
    color:
        rgba(255, 255, 255, 0.55);
}


/* =========================================================
   SEARCH FOCUS
   ========================================================= */

.portfolio-search:focus-within {
    background:
        rgba(255, 255, 255, 0.12);

    border-color:
        rgba(0, 229, 255, 0.65);

    box-shadow:
        0 0 12px
        rgba(0, 229, 255, 0.15);
}


/* =========================================================
   APPS GRID
   ========================================================= */

.apps {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px 10px;

    align-content: start;

    padding-bottom: 25px;
}


/* =========================================================
   APP LINK
   ========================================================= */

.app {
    display: block;

    width: 100%;

    min-width: 0;

    text-decoration: none;

    color: #ffffff;

    text-align: center;

    font-size: 11px;
}


/* =========================================================
   APP ICON
   ========================================================= */

.app i {
    width: 55px;
    height: 55px;

    display: flex;

    justify-content: center;
    align-items: center;

    margin:
        0 auto 6px;

    border-radius: 16px;

    color: #ffffff;

    font-size: 20px;

    background:
        linear-gradient(
            135deg,
            #ff512f,
            #dd2476
        );

    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.4);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   APP COLORS
   ========================================================= */

.app:nth-child(1) i {
    background:
        linear-gradient(
            135deg,
            #ff512f,
            #dd2476
        );
}

.app:nth-child(2) i {
    background:
        linear-gradient(
            135deg,
            #000000,
            #434343
        );
}

.app:nth-child(3) i {
    background:
        linear-gradient(
            135deg,
            #1877f2,
            #00c6ff
        );
}

.app:nth-child(4) i {
    background:
        linear-gradient(
            135deg,
            #e4405f,
            #ff6a88
        );
}

.app:nth-child(5) i {
    background:
        linear-gradient(
            135deg,
            #25d366,
            #00c853
        );
}

.app:nth-child(6) i {
    background:
        linear-gradient(
            135deg,
            #f7971e,
            #ffd200
        );
}

.app:nth-child(7) i {
    background:
        linear-gradient(
            135deg,
            #000000,
            #25f4ee
        );
}

.app:nth-child(8) i {
    background:
        linear-gradient(
            135deg,
            #0a66c2,
            #4facfe
        );
}

.app:nth-child(9) i {
    background:
        linear-gradient(
            135deg,
            #ff512f,
            #ff9966
        );
}

.app:nth-child(10) i {
    background:
        linear-gradient(
            135deg,
            #24292e,
            #586069
        );
}

.app:nth-child(11) i {
    background:
        linear-gradient(
            135deg,
            #8e2de2,
            #4a00e0
        );
}

.app:nth-child(12) i {
    background:
        linear-gradient(
            135deg,
            #00b09b,
            #96c93d
        );
}

.app:nth-child(13) i {
    background:
        linear-gradient(
            135deg,
            #ff9966,
            #ff5e62
        );
}

.app:nth-child(14) i {
    background:
        linear-gradient(
            135deg,
            #4776e6,
            #8e54e9
        );
}


/* =========================================================
   APP HOVER
   ========================================================= */

.app:hover i {
    transform: scale(1.08);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.6);
}


/* =========================================================
   APP TEXT
   ========================================================= */

.app span {
    display: block;

    color: #ffffff;

    font-size: 10px;

    line-height: 1.25;
}


/* =========================================================
   NO SEARCH RESULTS
   ========================================================= */

.no-results {
    display: none;

    text-align: center;

    padding: 30px 10px;

    color:
        rgba(255, 255, 255, 0.7);

    font-size: 12px;
}


.no-results i {
    display: block;

    margin-bottom: 8px;

    color: #00e5ff;

    font-size: 24px;
}


/* =========================================================
   BOTTOM SOCIAL BAR
   ========================================================= */

.icons {
    position: sticky;

    bottom: 0;

    z-index: 20;

    width: 100%;

    height: 42px;

    display: flex;

    justify-content: space-around;

    align-items: center;

    margin-top: 5px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(20, 20, 20, 0.92);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 -4px 15px
        rgba(0, 0, 0, 0.3);
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.icons a {
    display: flex;

    justify-content: center;

    align-items: center;

    color: #ffffff;

    font-size: 18px;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}


/* =========================================================
   SOCIAL HOVER
   ========================================================= */

.icons a:hover {
    color: #00e5ff;

    transform: scale(1.2);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.screen::-webkit-scrollbar {
    width: 5px;
}


.screen::-webkit-scrollbar-track {
    background: transparent;
}


.screen::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.25);

    border-radius: 50px;
}


.screen::-webkit-scrollbar-thumb:hover {
    background:
        rgba(255, 255, 255, 0.45);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 480px) {

    body {
        padding: 10px;
    }


    .screen {
        width: 320px;

        max-width: 92vw;

        height: 600px;

        max-height: 90vh;

        border-radius: 35px;
    }


    .status-icon {
        width: 50px;
        height: 50px;

        min-width: 50px;
        min-height: 50px;

        max-width: 50px;
        max-height: 50px;
    }


    .app-header h1 {
        font-size: 20px;
    }


    #currentDate {
        font-size: 13px;
    }


    #currentTime {
        font-size: 23px;
    }


    .app i {
        width: 52px;
        height: 52px;

        font-size: 19px;
    }


    .app span {
        font-size: 9px;
    }
}