/* ========================================
   SAMAWA Portal - CSS Styles
   Modern Futuristic Design with ATR BPN Colors
   ======================================== */

/* CSS Variables - ATR BPN Color Palette */
:root {
    /* Primary Colors */
    --primary-dark: #1a3a5c;
    --primary: #234b73;
    --primary-light: #2d5d8a;

    /* Accent Colors */
    --gold: #d4a84b;
    --gold-light: #e8c36d;
    --gold-dark: #b8923f;

    /* Secondary Colors */
    --brown: #8b4513;
    --brown-light: #a65d2e;
    --green: #2e8b57;
    --green-light: #3da06a;
    --sky-blue: #87ceeb;
    --sky-blue-light: #a5daef;

    /* Neutrals */
    --bg-dark: #0a1628;
    --bg-darker: #060e18;
    --surface: rgba(26, 58, 92, 0.3);
    --surface-light: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Effects */
    --glow-gold: 0 0 40px rgba(212, 168, 75, 0.3);
    --glow-blue: 0 0 40px rgba(135, 206, 235, 0.3);
    --glass-bg: rgba(26, 58, 92, 0.25);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --border-radius: 20px;
    --border-radius-sm: 12px;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   Animated Background
   ======================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Animated Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    top: 50%;
    right: -5%;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--sky-blue), var(--green));
    bottom: -5%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--brown), var(--gold-dark));
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--sky-blue));
    bottom: 20%;
    left: 10%;
    animation-delay: -8s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* ========================================
   Main Container
   ======================================== */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ========================================
   Header
   ======================================== */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 168, 75, 0.4));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(212, 168, 75, 0.4));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(212, 168, 75, 0.6));
    }
}

.logo-text {
    text-align: left;
}

.logo-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(212, 168, 75, 0.3);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    max-width: 350px;
}

.header-desc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.header-desc i {
    color: var(--gold);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Application Cards
   ======================================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 900px;
}

.app-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out backwards;
}

.app-card:nth-child(1) {
    animation-delay: 0.2s;
}

.app-card:nth-child(2) {
    animation-delay: 0.4s;
}

/* Card Glow Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

#card-peta .card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(135, 206, 235, 0.15), transparent 70%);
}

#card-ekspedisi .card-glow {
    background: radial-gradient(circle at 50% 50%, rgba(212, 168, 75, 0.15), transparent 70%);
}

.app-card:hover .card-glow {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

#card-peta:hover {
    box-shadow: var(--glow-blue);
}

#card-ekspedisi:hover {
    box-shadow: var(--glow-gold);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 24px;
    font-size: 28px;
    transition: all 0.4s ease;
}

#card-peta .card-icon {
    background: linear-gradient(135deg, var(--sky-blue), var(--primary-light));
    color: white;
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.3);
}

#card-ekspedisi .card-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.3);
}

.app-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card-title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Card Features */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--surface-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.feature i {
    font-size: 0.75rem;
}

#card-peta .feature:hover {
    background: rgba(135, 206, 235, 0.2);
    color: var(--sky-blue);
}

#card-ekspedisi .feature:hover {
    background: rgba(212, 168, 75, 0.2);
    color: var(--gold);
}

/* Card Action */
.card-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#card-peta .card-action {
    color: var(--sky-blue);
}

#card-ekspedisi .card-action {
    color: var(--gold);
}

.card-action i {
    transition: transform 0.3s ease;
}

.app-card:hover .card-action i {
    transform: translateX(5px);
}

/* Card Decoration */
.card-decoration {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 200px;
    height: 200px;
    opacity: 0.1;
    transition: all 0.4s ease;
    pointer-events: none;
}

#card-peta .card-decoration {
    color: var(--sky-blue);
}

#card-ekspedisi .card-decoration {
    color: var(--gold);
}

.app-card:hover .card-decoration {
    opacity: 0.2;
    transform: scale(1.2) rotate(10deg);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    margin-top: 60px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.footer-content {
    padding: 20px 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
}

.footer-credit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.footer-credit strong {
    color: var(--gold);
    font-weight: 600;
}

.footer-credit i {
    color: var(--sky-blue);
    margin-right: 6px;
}

.footer-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 900px) {
    .cards-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .logo-title {
        font-size: 2.5rem;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 30px 16px;
    }

    .logo-container {
        flex-direction: column;
        gap: 16px;
    }

    .logo-text {
        text-align: center;
    }

    .logo-title {
        font-size: 2rem;
    }

    .logo-subtitle {
        font-size: 0.85rem;
    }

    .header-desc {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .app-card {
        padding: 30px 24px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-features {
        gap: 6px;
    }

    .feature {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .footer-content {
        padding: 16px 24px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.app-card:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.app-card:focus:not(:focus-visible) {
    outline: none;
}