:root {
    --primary: #1abc9c;
    --primary-dark: #16a085;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #34495e;
    --background: #ffffff;
    --card-bg: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
    --subtle-bg: linear-gradient(135deg, rgba(26, 188, 156, 0.03) 0%, rgba(44, 62, 80, 0.03) 100%);
}

.dark-mode {
    --primary: #1abc9c;
    --primary-dark: #16a085;
    --secondary: #ecf0f1;
    --light: #2c3e50;
    --dark: #ecf0f1;
    --text: #ecf0f1;
    --background: #1a252f;
    --card-bg: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.3);
    --subtle-bg: linear-gradient(135deg, rgba(26, 188, 156, 0.05) 0%, rgba(44, 62, 80, 0.05) 100%);
}

.dark-mode footer {
    color: #34495e;
}

.dark-mode .social-link {
    background-color: rgba(0, 0, 0, 0.05);
    color: #34495e;
}

.dark-mode .social-link:hover {
    background-color: var(--primary);
    color: white;
}

.dark-mode .footer-about,
.dark-mode .footer-attribution,
.dark-mode .copyright {
    opacity: 0.9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--background);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-toggle, .lang-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.theme-toggle:hover, .lang-toggle:hover {
    background-color: rgba(26, 188, 156, 0.1);
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn .icon-only {
    display: none;
}

.btn .text-only {
    display: inline;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-links {
    display: none;
    flex-direction: column;
    gap: 15px; /* [PERBAIKAN] Jarak antar link menu */
    background-color: var(--background);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 0 20px; /* [PERBAIKAN] Padding awal 0 */
    box-shadow: 0 10px 10px var(--shadow);
    border-top: 1px solid var(--card-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.mobile-nav-links.active {
    display: flex;
    max-height: 500px;
    padding: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.mobile-nav-links a:hover {
    background-color: rgba(26, 188, 156, 0.1);
    color: var(--primary);
}

.mobile-nav-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--card-bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-actions .btn {
    width: 100%;
    text-align: center;
}

.hero {
    padding: 100px 0 80px;
    background: var(--subtle-bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.tagline {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text);
    font-weight: 400;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 280px;
    height: 550px;
    background-color: var(--card-bg);
    border-radius: 40px;
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
    overflow: hidden;
    border: 10px solid var(--background);
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1abc9c, #3498db);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 30px;
    padding: 30px;
    width: 280px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.feature-card p {
    flex-grow: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.features, .why-asta, .our-commitment {
    padding: 100px 0;
    background-color: var(--background);
}

.why-asta {
    background: var(--subtle-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text);
}

.two-column-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}
.two-column-layout .text-content {
    flex: 1;
    text-align: left;
}
.two-column-layout .image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.two-column-layout .image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 10px 20px var(--shadow);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background-color: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-img {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding: 30px;
}

.feature-item-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.how-it-works {
    padding: 100px 0;
    background: var(--subtle-bg);
}

.steps {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--primary);
    z-index: 0;
}

.step {
    text-align: center;
    width: 200px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
    border: 5px solid var(--background);
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.cta {
    padding: 100px 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: var(--primary);
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-light:hover {
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: var(--secondary);
    color: white;
    padding: 70px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
    text-align: center;
}

.footer-info {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.footer-about {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-attribution {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.8;
}
.footer-attribution strong {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--background);
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    .hero-content, .two-column-layout {
        flex-direction: column;
    }
    
    .hero-text, .hero-image, .two-column-layout .text-content {
        text-align: center;
    }

    .two-column-layout .text-content {
        order: 2;
    }
    .two-column-layout .image-content {
        order: 1;
    }
    
    .steps {
        flex-direction: column;
        align-items: center;
        gap: 50px;
    }
    
    .steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .feature-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .step {
        width: 100%;
        max-width: 300px;
    }

    .nav-buttons .btn .text-only {
        display: none;
    }
    .nav-buttons .btn .icon-only {
        display: inline;
    }

    .nav-buttons .btn#loginBtn,
    .nav-buttons .btn#registerBtn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        padding: 0;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    .nav-buttons .btn .text-only {
        display: none;
    }
    .nav-buttons .btn .icon-only {
        display: inline;
    }

    .nav-buttons .btn#loginBtn,
    .nav-buttons .btn#registerBtn {
        display: none;
    }

    
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    animation: fadeIn 0.8s ease-out;
    animation-fill-mode: backwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background-color: var(--secondary);
    color: var(--light);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    z-index: 2000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.toast.success {
    background-color: var(--primary);
    color: white;
}

.toast.error {
    background-color: #e74c3c;
    color: white;
}
