/* Ambarsis UI Module Styles */

:root {
    --brand-red: #E31E24;
    --brand-red-dark: #C01017;
    --brand-red-light: #FF3B41;
    --brand-black: #1A1A1A;
    --brand-charcoal: #2D2D2D;
    --primary-color: #E31E24;
    --primary-purple: #E31E24;
    --hero-gradient-start: #3A3D42;
    --hero-gradient-end: #52575E;
    --warning-yellow: #FF6B35;
    --warning-yellow-end: #E85A2A;
    --success-green: #50CD89;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --gray-900: #1A1A1A;
    --gray-600: #4b5563;
    --trust-bg: #f8f9fa;
}

/* Global Styles */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* ===== Logo Styles ===== */
.ambarsis-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 56px;
    height: 56px;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.navbar-logo {
    height: 50px;
    width: auto;
}

.navbar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    color: white;
    min-height: 85vh;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 600px;
}

.hero-features-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.hero-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

.hero-feature-list li i {
    font-size: 1.25rem;
    color: var(--warning-yellow);
    flex-shrink: 0;
}

.hero-value-prop {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 580px;
    border-left: 3px solid var(--warning-yellow);
    padding-left: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--warning-yellow) 0%, var(--warning-yellow-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Visual Illustration */
.hero-visual {
    position: relative;
    height: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-container {
    position: relative;
    width: 100%;
    height: 380px;
}

.visual-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: floatNode 6s ease-in-out infinite;
}

.visual-node-lg {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.visual-node-md {
    width: 70px;
    height: 70px;
    background: rgba(255, 107, 53, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.4);
}

.visual-node-sm {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.visual-node:nth-child(1) { top: 10%; left: 50%; transform: translateX(-50%); }
.visual-node:nth-child(2) { top: 35%; left: 10%; animation-delay: -1s; }
.visual-node:nth-child(3) { top: 35%; right: 10%; animation-delay: -2s; }
.visual-node:nth-child(4) { top: 65%; left: 25%; animation-delay: -3s; }
.visual-node:nth-child(5) { top: 65%; right: 25%; animation-delay: -4s; }
.visual-node:nth-child(6) { bottom: 5%; left: 50%; transform: translateX(-50%); animation-delay: -5s; }

.visual-line {
    position: absolute;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    width: 2px;
    transform-origin: top center;
}

.visual-line-1 { top: 22%; left: 52%; height: 80px; transform: rotate(35deg); }
.visual-line-2 { top: 22%; left: 48%; height: 80px; transform: rotate(-35deg); }
.visual-line-3 { top: 48%; left: 28%; height: 70px; transform: rotate(25deg); }
.visual-line-4 { top: 48%; right: 28%; height: 70px; transform: rotate(-25deg); }
.visual-line-5 { top: 75%; left: 40%; height: 60px; transform: rotate(15deg); }
.visual-line-6 { top: 75%; right: 40%; height: 60px; transform: rotate(-15deg); }

.visual-pulse {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

.visual-pulse:nth-child(8) {
    width: 300px;
    height: 300px;
    animation-delay: -2s;
}

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

.visual-node:nth-child(1) {
    animation: floatNodeCenter 6s ease-in-out infinite;
}

.visual-node:nth-child(6) {
    animation: floatNodeCenter 6s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes floatNodeCenter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero Buttons */
.hero-btn-primary {
    background: white;
    color: var(--brand-red);
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

/* ===== Section Common ===== */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== How It Works Section (Steps) ===== */
.steps-section {
    padding: 100px 0;
    background: #f8fafc;
}

.steps-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 80px;
    right: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--hero-gradient-start), var(--hero-gradient-end));
    opacity: 0.25;
    z-index: 0;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red-dark) 100%);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(227, 30, 36, 0.1);
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.25rem;
}

.step-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.step-item p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== Trust Section ===== */
.trust-section {
    padding: 80px 0;
    background: var(--trust-bg);
}

.trust-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-red-light), var(--brand-red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.3);
}

.trust-text-primary {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--gray-900);
    max-width: 700px;
    margin: 0 auto 16px;
    font-weight: 500;
}

.trust-text-secondary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-badge i {
    font-size: 1.25rem;
    color: var(--brand-red);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: white;
    color: var(--brand-red);
    border: none;
    padding: 16px 40px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 24px 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

/* Navbar */
.navbar {
    background: #ffffff !important;
    padding: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--brand-black);
    transition: color 0.2s ease;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--brand-red);
}

/* Login Page */
.login-container {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container .card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.login-container .card-body {
    padding: 3rem !important;
}

.login-container .form-control {
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.login-container .form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}

.login-container .btn-primary {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 30, 36, 0.35);
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(227, 30, 36, 0.08);
    color: var(--primary-purple);
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: none;
}

/* Buttons */
.btn-lg {
    font-size: 1.1rem;
    padding: 14px 28px;
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.delay-1 { transition-delay: 0.1s; }
.scroll-animate.delay-2 { transition-delay: 0.2s; }
.scroll-animate.delay-3 { transition-delay: 0.3s; }
.scroll-animate.delay-4 { transition-delay: 0.4s; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }

    .steps-timeline {
        flex-direction: column;
        gap: 40px;
    }

    .steps-timeline::before {
        display: none;
    }

    .step-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
        padding: 0;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
    }

    .step-icon {
        margin: 0 0 8px;
    }

    .cta-card {
        padding: 48px 32px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-feature-list li {
        font-size: 0.95rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.75rem;
    }

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

    .steps-section,
    .trust-section,
    .cta-section {
        padding: 60px 0;
    }

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

    .cta-card {
        padding: 40px 24px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .trust-text-primary {
        font-size: 1.05rem;
    }

    .navbar-logo {
        height: 36px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-description {
        font-size: 1rem;
    }

    .login-container .card-body {
        padding: 2rem !important;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .navbar-logo {
        height: 28px;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}
