/**
 * ==============================================================================
 * Portal KKN-T UPR - Modern Landing Page Stylesheet
 * ==============================================================================
 * Desain modern, elegan, interaktif, dengan animasi CSS3 Hardware-Accelerated
 * Responsif penuh untuk Desktop, Laptop, Tablet, dan Mobile Smartphone
 * ==============================================================================
 */

:root {
    --brand-primary: #15766e;
    --brand-primary-dark: #0f514b;
    --brand-primary-light: #2dd4bf;
    --brand-secondary: #0284c7;
    --brand-accent: #f59e0b;
    --brand-dark: #0f172a;
    --brand-slate: #334155;
    --brand-muted: #64748b;
    --brand-bg: #f8fafc;
    --brand-card-bg: #ffffff;
    --brand-border: rgba(15, 23, 42, 0.08);
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 16px 40px rgba(15, 118, 110, 0.12);
    --shadow-glow: 0 0 30px rgba(21, 118, 110, 0.25);
    --radius-sm: 0.65rem;
    --radius-md: 1rem;
    --radius-lg: 1.4rem;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body.landing-modern {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--brand-slate);
    background-color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

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

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes shimmerEffect {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.type-cursor {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 300;
    margin-left: 3px;
    animation: blinkCursor 0.85s infinite;
    vertical-align: baseline;
}

/* ==========================================
   HEADER & NAVBAR (DESKTOP & RESPONSIVE)
   ========================================== */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: var(--transition);
    padding: 0.65rem 0;
}

.landing-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    padding: 0.5rem 0;
}

/* Header Mahasiswa CTA: Hanya muncul saat scrolled / sticky */
.landing-header .header-mhs-cta {
    opacity: 0;
    max-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.28s ease, max-width 0.28s ease, padding 0.28s ease, margin 0.28s ease, transform 0.28s ease, visibility 0.28s;
    visibility: hidden;
    white-space: nowrap;
}

.landing-header.scrolled .header-mhs-cta {
    opacity: 1;
    max-width: 220px;
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
    margin-right: 0.75rem !important;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}

.landing-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    flex-shrink: 0;
}

.landing-brand-link img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
}

.landing-brand-text .eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary);
    line-height: 1.1;
}

.landing-brand-text .title {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.01em;
    line-height: 1.25;
    white-space: nowrap;
}

/* Nav Menu Desktop */
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.landing-nav-links li {
    margin: 0;
    padding: 0;
}

.landing-nav-links a {
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none !important;
    padding: 0.35rem 0.5rem;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.landing-nav-links a:hover,
.landing-nav-links a.active {
    color: var(--brand-primary);
}

.landing-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.landing-nav-links a:hover::after,
.landing-nav-links a.active::after {
    width: 80%;
}

/* Action Buttons Header */
.btn-landing-primary {
    background: linear-gradient(135deg, #15766e, #0d9488);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.52rem 1.15rem;
    border-radius: var(--radius-sm);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    box-shadow: 0 3px 12px rgba(21, 118, 110, 0.25);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1.3;
}

.btn-landing-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(21, 118, 110, 0.38);
    color: #ffffff !important;
}

.btn-landing-primary:hover::after {
    animation: shimmerEffect 1.2s infinite;
}

.btn-landing-outline {
    background: #ffffff;
    color: var(--brand-slate) !important;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 0.52rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1.3;
}

.btn-landing-outline:hover {
    background: #f8fafc;
    border-color: var(--brand-primary);
    color: var(--brand-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xs);
}

/* Hamburger Mobile Toggle */
.mobile-nav-toggle {
    display: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus {
    background: #f1f5f9;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    outline: none;
}

/* Mobile Nav Drawer / Offcanvas */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.25rem;
}

.mobile-drawer-close {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-drawer-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: var(--transition);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    background: rgba(21, 118, 110, 0.08);
    color: var(--brand-primary);
    font-weight: 700;
}

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

.hero-modern {
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 15%, rgba(45, 212, 191, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 10% 85%, rgba(2, 132, 199, 0.08) 0%, transparent 35%),
                #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.95rem;
    background: rgba(21, 118, 110, 0.08);
    border: 1px solid rgba(21, 118, 110, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(21, 118, 110, 0.04);
}

.status-dot-pulse {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

.hero-headline {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand-dark);
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
}

.hero-headline .text-gradient {
    background: linear-gradient(135deg, #15766e 20%, #0284c7 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 660px;
}

.hero-actions-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Hero Stats Bar */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.15rem;
    margin-top: 0.5rem;
}

.stat-card-modern {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 118, 110, 0.3);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-modern .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1.1;
    display: block;
}

.stat-card-modern .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

/* ==========================================
   SECTION COMMON
   ========================================= */

.section-wrapper {
    padding: 75px 0;
    position: relative;
}

.section-header-modern {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: rgba(21, 118, 110, 0.08);
    border: 1px solid rgba(21, 118, 110, 0.18);
    color: var(--brand-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.section-title-modern {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle-modern {
    font-size: 0.96rem;
    color: #64748b;
    line-height: 1.6;
}

/* ==========================================
   ALUR KKN-T (INTERACTIVE STEPPER)
   ========================================== */

.step-card-modern {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1.6rem 1.4rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(21, 118, 110, 0.35);
}

.step-number-badge {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.step-card-modern:hover .step-number-badge {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(21, 118, 110, 0.4);
}

.step-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.1rem;
    transition: var(--transition);
}

.step-card-modern:hover .step-icon-box {
    transform: scale(1.08);
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.55rem;
}

.step-description {
    font-size: 0.86rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ==========================================
   TIMELINE & JADWAL
   ========================================== */

.schedule-card-container {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.status-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge-pill.status--done {
    background: #f1f5f9;
    color: #475569;
}

.status-badge-pill.status--today {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.status-badge-pill.status--upcoming {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ==========================================
   PENGUMUMAN & PANDUAN
   ========================================== */

.announcement-card-modern {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.announcement-card-modern:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(2, 132, 199, 0.3);
}

.document-download-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none !important;
}

.document-download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(21, 118, 110, 0.35);
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */

.faq-card-modern {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    background: #ffffff;
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-card-modern:hover {
    border-color: rgba(21, 118, 110, 0.3);
}

.faq-header-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.4rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--brand-dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-header-btn:focus {
    outline: none;
}

.faq-header-btn .faq-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.faq-header-btn[aria-expanded="true"] {
    color: var(--brand-primary);
}

.faq-header-btn[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    background: var(--brand-primary);
    color: #ffffff;
}

.faq-body-content {
    padding: 0 1.4rem 1.4rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ==========================================
   FOOTER
   ========================================== */

.landing-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
}

.landing-footer a:hover {
    color: #2dd4bf;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================== */

@media (max-width: 1199.98px) {
    .landing-nav-links {
        gap: 0.85rem;
    }
    
    .landing-nav-links a {
        font-size: 0.84rem;
        padding: 0.3rem 0.35rem;
    }
    
    .landing-brand-text .title {
        font-size: 0.84rem;
    }
}

@media (max-width: 991.98px) {
    .landing-nav-links {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: inline-flex !important;
    }
    
    .hero-modern {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-headline {
        font-size: 2.1rem;
    }
    
    .section-wrapper {
        padding: 55px 0;
    }
    
    .landing-brand-text .title {
        font-size: 0.86rem;
    }
}

@media (max-width: 575.98px) {
    .landing-brand-text .eyebrow {
        display: none;
    }
    
    .landing-brand-text .title {
        font-size: 0.82rem;
    }
    
    .landing-brand-link img {
        height: 36px;
    }
    
    .btn-landing-primary {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .hero-actions-wrap {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions-wrap .btn-landing-primary,
    .hero-actions-wrap .btn-landing-outline {
        width: 100%;
    }
}
