/**
 * Apollo Portal - Modern Homepage Styles
 * Clean, professional internal portal design
 */

:root {
    /* Apollo Brand Colors */
    --apollo-dark-blue: #2576B9;
    --apollo-light-blue: #BCD9F2;
    --apollo-yellow: #FFD95C;
    --apollo-pink: #EB9CC4;
    --apollo-red: #EB4754;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(37, 118, 185, 0.08);
    --shadow-md: 0 8px 24px rgba(37, 118, 185, 0.12);
    --shadow-lg: 0 16px 48px rgba(37, 118, 185, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.portal-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2576B9 0%, #5295C8 50%, #BCD9F2 100%);
    overflow: hidden;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all !important; /* Ensure mouse events work */
}

#hero-particles canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: all !important;
}

/* Hero Split Layout */
.hero-split-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
    min-height: 100vh;
    pointer-events: none; /* Allow mouse to reach particles */
}

/* LEFT SIDE: Sign In Box */
.hero-signin-box {
    position: relative;
    z-index: 10; /* Above particles but allow particle interaction */
    animation: slideInLeft 1s ease-out;
    pointer-events: auto; /* Re-enable pointer events for sign-in box */
}

.signin-card {
    background: rgba(255, 255, 255, 0.08); /* More transparent - ethereal feel */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.signin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12); /* Slightly less transparent on hover */
    border-color: rgba(255, 255, 255, 0.35);
}

.signin-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signin-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.signin-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.signin-form .form-group {
    margin-bottom: 1.5rem;
}

.signin-form label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.signin-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.signin-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.signin-form .form-control:focus {
    outline: none;
    border-color: #FFD95C;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 217, 92, 0.2);
}

.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    color: #FFD95C;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: white;
    text-decoration: underline;
}

.signin-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFD95C, #ffc107);
    color: #333;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 217, 92, 0.4);
}

.signin-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 217, 92, 0.5);
}

/* RIGHT SIDE: Hero Content */
.hero-content-right {
    position: relative;
    z-index: 10;
    padding: 3rem;
    animation: fadeInRight 1s ease-out;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.3; /* Increased to prevent descender clipping */
    margin-bottom: 0;
    padding-bottom: 0.25rem; /* Extra padding for descenders */
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #FFD95C 50%, #EB9CC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block; /* Prevents clipping issues */
}

.hero-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-stat {
    position: relative;
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.25rem 2rem 1.25rem 4.5rem;
    background: linear-gradient(135deg, rgba(255, 217, 92, 0.2), rgba(255, 193, 7, 0.1));
    backdrop-filter: blur(15px);
    border-radius: 60px;
    border-left: 4px solid #FFD95C;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    box-shadow: 0 4px 20px rgba(255, 217, 92, 0.2);
}

.hero-stat::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FFD95C, #ffc107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 217, 92, 0.4);
}

.hero-stat::after {
    content: '✓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-weight: 900;
    font-size: 1.1rem;
    z-index: 1;
}

.hero-stat:hover {
    background: linear-gradient(135deg, rgba(255, 217, 92, 0.3), rgba(255, 193, 7, 0.2));
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 217, 92, 0.4);
    border-left-width: 6px;
}

.hero-stat:nth-child(1) {
    border-left-color: #FFD95C; /* Yellow */
    background: linear-gradient(135deg, rgba(255, 217, 92, 0.2), rgba(255, 193, 7, 0.1));
}

.hero-stat:nth-child(1)::before {
    background: linear-gradient(135deg, #FFD95C, #ffc107);
}

.hero-stat:nth-child(2) {
    border-left-color: #EB9CC4; /* Pink */
    background: linear-gradient(135deg, rgba(235, 156, 196, 0.2), rgba(232, 62, 140, 0.1));
}

.hero-stat:nth-child(2)::before {
    background: linear-gradient(135deg, #EB9CC4, #e83e8c);
}

.hero-stat:nth-child(3) {
    border-left-color: #BCD9F2; /* Light Blue */
    background: linear-gradient(135deg, rgba(188, 217, 242, 0.2), rgba(154, 199, 232, 0.1));
}

.hero-stat:nth-child(3)::before {
    background: linear-gradient(135deg, #BCD9F2, #9ac7e8);
}

.hero-stat:nth-child(2)::after {
    color: white; /* Pink background needs white checkmark */
}

/* ============================================================================
   APPS SECTION
   ============================================================================ */

.apps-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--apollo-dark-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 4rem;
}

.apps-bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 0 2rem;
}

/* ============================================================================
   STATS DASHBOARD
   ============================================================================ */

.stats-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--apollo-dark-blue), var(--apollo-light-blue));
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    width: 100%;
    padding: 0 4rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 118, 185, 0.05), rgba(188, 217, 242, 0.05));
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--apollo-dark-blue);
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--apollo-dark-blue), var(--apollo-light-blue));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(37, 118, 185, 0.3);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(37, 118, 185, 0.4);
}

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

@media (max-width: 1024px) {
    .hero-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 2rem;
    }

    .hero-signin-box {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-content-right {
        text-align: center;
    }

    .hero-stats {
        align-items: center;
    }

    .hero-stat {
        text-align: center;
    }

    .hero-stat:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .hero-split-layout {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stat {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    .signin-card {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .apps-section {
        padding: 4rem 1rem;
    }

    .apps-bento-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}
