/* Modern, Premium Styling for Savidor Redirection Landing Page (Light Mode) */

:root {
    --bg-light: #F1F3F6;
    --bg-light-gradient: radial-gradient(circle at 50% 50%, #FFFFFF 0%, #F1F3F6 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(26, 31, 46, 0.06);
    
    /* Brand Colors */
    --color-primary: #1A1F2E;
    --color-indigo: #5A52F3;
    --color-sky: #02C2FF;
    --color-teal: #00D4B4;
    
    /* Typography Colors */
    --color-text-main: #1A1F2E;
    --color-text-muted: #5E6D82;
    --color-text-light: #1A1F2E;
    
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    background-image: var(--bg-light-gradient);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Ambient Background Glows */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.07;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: var(--color-indigo);
    top: -10%;
    left: -10%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: var(--color-sky);
    bottom: -15%;
    right: -10%;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: var(--color-teal);
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

/* Page Layout Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.header .brand-logo-container {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.header .logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(26, 31, 46, 0.08));
    animation: pulseLogo 4s infinite ease-in-out;
}

.header .tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-indigo);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.header .description {
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* Redirection Cards Grid */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Portal Card Styles */
.portal-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 50px 40px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px -15px rgba(26, 31, 46, 0.1);
}

/* Card Spotlight Glow Effect on Hover (Light Theme Friendly) */
.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(26, 31, 46, 0.03), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Specific Card Theming with Light Accents */
.customer-card {
    --accent-color: var(--color-indigo);
    --accent-glow: rgba(90, 82, 243, 0.12);
    --accent-light-bg: rgba(90, 82, 243, 0.08);
}

.employee-card {
    --accent-color: var(--color-teal);
    --accent-glow: rgba(0, 212, 180, 0.12);
    --accent-light-bg: rgba(0, 212, 180, 0.08);
}

.admin-card {
    --accent-color: var(--color-sky);
    --accent-glow: rgba(2, 194, 255, 0.12);
    --accent-light-bg: rgba(2, 194, 255, 0.08);
}

.portal-card:hover {
    transform: translateY(-8px);
    background: #FFFFFF;
    border-color: rgba(26, 31, 46, 0.08);
    box-shadow: 0 20px 40px -20px rgba(26, 31, 46, 0.15), 
                0 0 25px 0 var(--accent-glow);
}

/* Card Content Elements */
.portal-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    background: var(--accent-light-bg);
    border: 1px solid rgba(26, 31, 46, 0.02);
    font-size: 1.8rem;
    color: var(--accent-color);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.portal-card:hover .portal-icon {
    background: var(--accent-color);
    color: #FFFFFF;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px -4px var(--accent-glow);
    border-color: transparent;
}

.portal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
}

.portal-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    line-height: 1.6;
}

.portal-action {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.portal-action i {
    transition: var(--transition-smooth);
}

.portal-card:hover .portal-action {
    color: var(--color-primary);
}

.portal-card:hover .portal-action i {
    transform: translateX(6px);
}

/* Footer Section */
.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 31, 46, 0.06);
    animation: fadeIn 1.5s ease-in-out;
}

.footer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseLogo {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .portal-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }
    .header {
        margin-bottom: 40px;
    }
    .header .brand-title {
        font-size: 2.5rem;
    }
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .portal-card {
        padding: 40px 30px;
        align-items: center;
        text-align: center;
    }
    .portal-card .portal-icon {
        margin-bottom: 24px;
    }
    .portal-desc {
        margin-bottom: 30px;
    }
}
