/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Colors - Global Sepsis Alliance Inspired Purple Palette */
    --primary-color: #7C3AED;
    --primary-dark: #5B21B6;
    --primary-light: #8B5CF6;
    --secondary-color: #D946EF;
    --accent-color: #A78BFA;
    --accent-pink: #E879F9;

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-light: #64748b;

    --bg-white: #ffffff;
    --bg-light: #FAF5FF;
    --bg-gray: #F3F4F6;
    --bg-purple-light: #F5F3FF;

    --border-color: #E9D5FF;
    --shadow-sm: 0 1px 2px 0 rgba(124, 58, 237, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(124, 58, 237, 0.1), 0 2px 4px -1px rgba(124, 58, 237, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(124, 58, 237, 0.1), 0 4px 6px -2px rgba(124, 58, 237, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.04);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Container & Layout
   =========================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.section-colored {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===========================
   Header
   =========================== */

.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 120px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.125rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.3;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a:hover::after {
    width: 100%;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 30%, #7C3AED 60%, #8B5CF6 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Bakteri/Mikrop Pattern */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 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' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1'%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3Cpath d='M30 20v6M30 34v6M20 30h6M34 30h6M24 24l4 4M32 32l4 4M24 36l4-4M32 28l4-4'/%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Cpath d='M8 2v3M8 11v3M2 8h3M11 8h3'/%3E%3Ccircle cx='52' cy='52' r='3'/%3E%3Cpath d='M52 46v3M52 55v3M46 52h3M55 52h3'/%3E%3Ccircle cx='52' cy='8' r='2.5'/%3E%3Cpath d='M52 3v2.5M52 10.5v2.5M47 8h2.5M54.5 8h2.5'/%3E%3Ccircle cx='8' cy='52' r='2.5'/%3E%3Cpath d='M8 47v2.5M8 54.5v2.5M3 52h2.5M10.5 52h2.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    animation: patternFloat 20s ease-in-out infinite;
}

@keyframes patternFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-10px, -10px); }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: 130px;
    height: 130px;
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
    background: white;
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 1rem 2.25rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.0625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #F5F3FF 100%);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    border-color: white;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-accent {
    background: linear-gradient(135deg, #5B21B6, #7C3AED);
    color: white;
    box-shadow: 0 4px 15px rgba(91, 33, 182, 0.5);
    border: none;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(91, 33, 182, 0.6);
    background: linear-gradient(135deg, #4C1D95, #6D28D9);
}

/* ===========================
   Content Cards
   =========================== */

.content-card {
    background-color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px 16px 0 0;
}

.text-large {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===========================
   Cards Grid
   =========================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background-color: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   Info Grid
   =========================== */

.info-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background-color: white;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: start;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
    transform: translateX(4px);
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9375rem;
}

.info-value {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   Requirements List
   =========================== */

.requirements-list {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.requirement-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.requirement-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.requirement-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   Two Column Layout
   =========================== */

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.column .section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.column .section-title::after {
    left: 0;
    transform: translateX(0);
}

/* ===========================
   Styled List
   =========================== */

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.styled-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===========================
   Timeline
   =========================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.625rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-light);
}

.timeline-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    background: linear-gradient(135deg, #D946EF 0%, #A78BFA 100%);
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content > p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-info-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.cta-info-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.cta-info-box p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.email-options {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.email-item {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
}

.email-item:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.email-item strong {
    color: white;
    font-weight: 600;
}

.info-note {
    font-size: 0.9375rem;
    opacity: 0.85;
    font-style: italic;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* ===========================
   Contact Section
   =========================== */

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.contact-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--primary-dark);
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .logo-subtitle {
        display: none;
    }

    .nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
        max-width: 100px;
        max-height: 100px;
    }

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

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

    .hero-tagline {
        font-size: 0.875rem;
        letter-spacing: 1px;
    }

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

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

    .info-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .requirement-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .requirement-number {
        margin: 0 auto;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .column .section-title {
        text-align: center;
    }

    .column .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .content-card,
    .card,
    .contact-item {
        padding: 1.5rem;
    }
}

/* ===========================
   Animations
   =========================== */

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

.hero-content,
.content-card,
.card,
.info-item,
.requirement-item {
    animation: fadeIn 0.6s ease-out;
}

/* ===========================
   Login Button in Header
   =========================== */

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-left: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
}

.btn-login::after {
    display: none !important;
}

@media (max-width: 768px) {
    .btn-login {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
        text-align: center;
    }
}
