/* --- CSS Variables & Resets --- */
:root {
    --bg-color: #0b1120;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Vibrant Neon Colors */
    --neon-cyan: #06b6d4;
    --neon-cyan-glow: rgba(6, 182, 212, 0.5);
    --neon-magenta: #d946ef;
    --neon-magenta-glow: rgba(217, 70, 239, 0.5);
    --neon-yellow: #facc15;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* --- Animated Background Blobs --- */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--neon-cyan-glow), transparent 70%);
}

.blob-2 {
    bottom: 20%;
    right: -5%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--neon-magenta-glow), transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.3), transparent 70%);
    animation-duration: 15s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* --- Glassmorphism Utilities --- */
.glass-nav, .glass-card, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--neon-cyan);
}

/* --- Typography --- */
.text-gradient {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 5s infinite linear;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn-primary, .btn-primary-small {
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta));
    color: white;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--neon-magenta-glow);
}

.btn-primary-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--neon-cyan-glow);
}

.badge-futuristic {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--neon-cyan);
    border-radius: 50px;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* --- Sections --- */
main {
    padding-top: 100px; /* offset for fixed nav */
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 0 5%;
    gap: 3rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.image-card {
    padding: 1rem;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    transform: rotateY(-5deg) rotateX(5deg);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.image-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(-2deg) rotateX(2deg); }
    100% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
}

/* --- Features --- */
.features {
    padding: 5rem 5%;
    position: relative;
}

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

.feature-card {
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.bg-cyan { background: rgba(6, 182, 212, 0.2); border: 1px solid var(--neon-cyan); }
.bg-magenta { background: rgba(217, 70, 239, 0.2); border: 1px solid var(--neon-magenta); }
.bg-yellow { background: rgba(250, 204, 21, 0.2); border: 1px solid var(--neon-yellow); }

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- About Us --- */
.about {
    padding: 5rem 5%;
    position: relative;
    text-align: center;
}

.about-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.about-badge {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    text-align: left;
    max-width: 400px;
    transition: transform 0.3s;
}

.about-badge:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.badge-icon {
    font-size: 2.5rem;
}

.about-badge strong {
    display: block;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.about-badge p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.team-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

.team-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Install Guide --- */
.install-guide {
    padding: 5rem 5%;
    position: relative;
    text-align: center;
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.install-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.3s, background 0.3s;
}

.install-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.install-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.install-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.install-card h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.4rem;
}

/* --- Install Guide Steps --- */
.install-steps {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    counter-reset: step-counter;
}

.install-steps li {
    position: relative; /* Menjadikan kotak sebagai acuan posisi untuk lingkaran angka */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.2rem 1rem 4rem; /* Padding kiri diperbesar (4rem) untuk ruang angka */
    border-radius: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    transition: background 0.3s, transform 0.3s;
}

.install-steps li:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Membentuk dan memposisikan lingkaran angka */
.install-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute; /* Melepas angka dari aliran teks agar tidak mengganggu tata letak kalimat */
    left: 1.2rem; /* Jarak angka dari batas kiri kotak */
    top: 1rem; /* Jarak angka dari batas atas kotak */
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-steps li strong {
    color: var(--neon-cyan);
}

/* --- Footer --- */
.glass-footer {
    margin-top: 5rem;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.security-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid #22c55e;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .image-card {
        transform: none;
        animation: floatMobile 6s ease-in-out infinite;
    }
    
    @keyframes floatMobile {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-15px); }
        100% { transform: translateY(0px); }
    }
}

@media (max-width: 600px) {
    nav a:not(.btn-primary-small) {
        display: none;
    }
}
