/* =============================================
   BIZPLAN JAVA - LANDING PAGE
   Modern Glassmorphism Link Aggregator
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
    --glass-bg: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --card-bg: rgba(255,255,255,0.1);
    --card-hover: rgba(255,255,255,0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.7);
    --accent: #6C63FF;
    --accent-glow: rgba(108,99,255,0.4);
    --radius: 16px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background */
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
        rgba(15,12,41,0.85) 0%,
        rgba(48,43,99,0.80) 50%,
        rgba(36,36,62,0.90) 100%
    );
    backdrop-filter: blur(2px);
}

/* Container */
.landing-container {
    width: 100%;
    max-width: 480px;
    padding: 40px 20px 30px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease-out;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
    object-fit: cover;
    margin-bottom: 16px;
    box-shadow: 0 0 30px var(--accent-glow);
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--accent-glow);
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.profile-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    align-self: flex-start;
}

.back-btn:hover {
    color: var(--text-primary);
    background: var(--card-hover);
}

.back-btn .material-icons { font-size: 16px; }

/* Links List */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05));
    opacity: 0;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-2px);
    background: var(--card-hover);
    border-color: rgba(255,255,255,0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

.link-card:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon .material-icons {
    font-size: 20px;
    color: var(--text-secondary);
}

.link-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.link-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.link-arrow {
    color: var(--text-secondary);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Sub-page Cards (on main page) */
.link-card.subpage {
    background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(108,99,255,0.05));
    border-color: rgba(108,99,255,0.3);
}

.link-card.subpage:hover {
    background: linear-gradient(135deg, rgba(108,99,255,0.25), rgba(108,99,255,0.1));
    border-color: rgba(108,99,255,0.5);
}

.link-card.subpage .link-icon {
    background: rgba(108,99,255,0.2);
}

.link-card.subpage .link-icon .material-icons {
    color: #a5a0ff;
}

/* Stagger Animation */
.link-card {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.4s ease-out forwards;
}

.link-card:nth-child(1) { animation-delay: 0.05s; }
.link-card:nth-child(2) { animation-delay: 0.1s; }
.link-card:nth-child(3) { animation-delay: 0.15s; }
.link-card:nth-child(4) { animation-delay: 0.2s; }
.link-card:nth-child(5) { animation-delay: 0.25s; }
.link-card:nth-child(6) { animation-delay: 0.3s; }
.link-card:nth-child(7) { animation-delay: 0.35s; }
.link-card:nth-child(8) { animation-delay: 0.4s; }
.link-card:nth-child(9) { animation-delay: 0.45s; }
.link-card:nth-child(10) { animation-delay: 0.5s; }
.link-card:nth-child(n+11) { animation-delay: 0.55s; }

/* Footer */
.landing-footer {
    text-align: center;
    padding: 30px 0 20px;
    margin-top: auto;
}

.landing-footer p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 520px) {
    .landing-container { padding: 30px 16px 20px; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-title { font-size: 1.3rem; }
    .link-card { padding: 12px 14px; gap: 12px; }
    .link-title { font-size: 0.85rem; }
    .link-icon { width: 36px; height: 36px; }
}

@media (max-width: 360px) {
    .profile-title { font-size: 1.15rem; }
    .link-title { font-size: 0.8rem; }
}

/* Admin Link (subtle) */
.admin-link {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.2;
    transition: var(--transition);
}

.admin-link:hover { opacity: 0.8; background: rgba(255,255,255,0.1); }
.admin-link .material-icons { font-size: 16px; color: var(--text-secondary); }
