@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
    --glass: rgba(10, 12, 18, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-highlight: rgba(255, 255, 255, 0.04);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --accent: #c8a96e;
    --accent-glow: rgba(200, 169, 110, 0.15);
    --btn-bg: rgba(255, 255, 255, 0.1);
    --btn-bg-hover: rgba(255, 255, 255, 0.95);
    --blur: 24px;
    --radius: 16px;
    --radius-sm: 10px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Page & Background ---- */

.page {
    width: 100vw;
    height: 100vh;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 20% 50%,
        rgba(200, 169, 110, 0.06) 0%,
        transparent 60%
    );
    z-index: 1;
    pointer-events: none;
}

/* ---- Logo ---- */

.logo-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 28px 48px;
    text-align: center;
    animation: fadeDown 0.5s var(--ease-out) both;
    animation-delay: 0.05s;
}

.logo-bar svg {
    height: 18px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.logo-bar svg:hover {
    opacity: 1;
}

/* ---- Main Layout ---- */

.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    padding: 110px 48px 48px;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.left-col {
    flex: 1;
    min-width: 0;
}


/* ---- Greeting ---- */

.greeting {
    margin-bottom: 28px;
    animation: fadeUp 0.5s var(--ease-out) both;
    animation-delay: 0.1s;
}

.greeting h1 {
    display: inline;
    font-family: 'Outfit', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1;
}

.greeting span {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: -0.3px;
}

/* ---- Card Grid ---- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--glass-border);
}

.card-row {
    display: contents;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    text-align: center;
    padding: 44px 24px 36px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: background 0.4s ease, transform 0.35s var(--ease-out);
    animation: fadeUp 0.4s var(--ease-out) both;
    border: none;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(
        180deg,
        var(--glass-highlight) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    background: rgba(10, 12, 18, 0.7);
}

.card:hover::before {
    opacity: 1;
}

/* Staggered animation delays */
.card-row:first-child .card:nth-child(1) { animation-delay: 0.15s; }
.card-row:first-child .card:nth-child(2) { animation-delay: 0.2s; }
.card-row:first-child .card:nth-child(3) { animation-delay: 0.25s; }
.card-row:nth-child(2) .card:nth-child(1) { animation-delay: 0.25s; }
.card-row:nth-child(2) .card:nth-child(2) { animation-delay: 0.3s; }
.card-row:nth-child(2) .card:nth-child(3) { animation-delay: 0.35s; }

/* Corner rounding on the grid */
.card-row:first-child .card:first-child { border-radius: var(--radius) 0 0 0; }
.card-row:first-child .card:last-child { border-radius: 0 var(--radius) 0 0; }
.card-row:nth-child(2) .card:first-child { border-radius: 0 0 0 var(--radius); }
.card-row:nth-child(2) .card:last-child { border-radius: 0 0 var(--radius) 0; }

/* Remove the empty spacer row */
.card-row:nth-child(3) {
    display: none;
}

/* ---- Card Contents ---- */

.card-icon {
    margin-bottom: 16px;
    transition: transform 0.4s var(--ease-spring);
}

.card:hover .card-icon {
    transform: translateY(-3px) scale(1.05);
}

.card-icon svg {
    height: 48px;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.05));
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.card:hover .card-icon svg {
    opacity: 1;
    filter: drop-shadow(0 4px 16px rgba(200, 169, 110, 0.12));
}

.card h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.card p {
    color: var(--text-secondary);
    font-size: 12.5px;
    line-height: 1.55;
    margin-bottom: 16px;
    min-height: 36px;
    max-width: 200px;
}

.card .btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: var(--btn-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s var(--ease-out);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.card .btn:hover {
    background: var(--btn-bg-hover);
    color: #111;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}


/* ---- Animations ---- */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Scrollbar (if needed on mobile) ---- */

::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* ---- Responsive: tablets ---- */

@media (max-width: 1100px) {
    .main {
        flex-direction: column;
        padding: 90px 24px 24px;
        gap: 20px;
    }

    .left-col {
        width: 100%;
    }

    .greeting h1 {
        font-size: 40px;
    }

    .greeting span {
        font-size: 22px;
    }
}

/* ---- Responsive: small tablets ---- */

@media (max-width: 850px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-row {
        display: contents;
    }

    .card-row:first-child .card:first-child { border-radius: var(--radius) 0 0 0; }
    .card-row:first-child .card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
    .card-row:first-child .card:nth-child(3) { border-radius: 0; }
    .card-row:nth-child(2) .card:nth-child(2) { border-radius: 0; }
    .card-row:nth-child(2) .card:nth-child(3) { border-radius: 0 0 var(--radius) 0; }

}

/* ---- Responsive: phones ---- */

@media (max-width: 600px) {
    .main {
        padding: 80px 16px 16px;
        overflow-y: auto;
    }

    .card-grid {
        grid-template-columns: 1fr;
        border-radius: var(--radius-sm);
    }

    .card-row:first-child .card:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
    .card-row:first-child .card:nth-child(2),
    .card-row:first-child .card:nth-child(3),
    .card-row:nth-child(2) .card:nth-child(1),
    .card-row:nth-child(2) .card:nth-child(2) { border-radius: 0; }
    .card-row:nth-child(2) .card:nth-child(3) { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

    .card {
        padding: 28px 20px;
    }

    .card h4 {
        font-size: 16px;
    }

    .card .btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .greeting {
        margin-bottom: 20px;
    }

    .greeting h1 {
        font-size: 32px;
    }

    .greeting span {
        font-size: 18px;
        display: block;
        margin-top: 4px;
    }

    .logo-bar {
        padding: 20px 20px;
    }

}

/* ---- Reduce motion ---- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-delay: unset !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
