:root {
    /* Light Theme Variables */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-background: #f3f4f6;
    --border-color: #e5e7eb;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-background: rgba(37, 99, 235, 0.1);
    --transition: all 0.3s ease;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-color: #f3f4f6;
    --light-text: #9ca3af;
    --background: #111827;
    --light-background: #1f2937;
    --border-color: #374151;
    --card-background: #1f2937;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --hover-background: rgba(37, 99, 235, 0.2);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background);
}

body.nav-open {
    overflow: hidden;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    z-index: 1000;
}

.language-selector select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    color: var(--text-color);
    background: var(--card-background);
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--card-background);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
    padding: 0.75rem;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 8px;
    padding: 8px;
    background: var(--light-background);
    transition: var(--transition);
    box-shadow: 0 2px 4px var(--shadow-color);
}

.logo a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.logo a:hover .logo-img {
    transform: rotate(-8deg);
    background: var(--hover-background);
    box-shadow: 0 4px 8px var(--shadow-color);
}

/* Update logo color based on theme */
[data-theme="dark"] .logo-img {
    background: var(--hover-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    z-index: 1000;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
}

.btn-login {
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-left: 0.25rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    margin-left: 0.25rem;
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 4rem;
    background: var(--light-background);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons a {
    min-width: 160px;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Features Section */
.features {
    padding: 4rem 1rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-container h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--card-background);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA Section */
.cta {
    background: var(--primary-color);
    color: white;
    padding: 4rem 1rem;
}

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

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--light-background);
    padding: 4rem 1rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Warna khusus untuk setiap social media saat hover */
.social-link[title="Twitter"]:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-link[title="LinkedIn"]:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.social-link[title="GitHub"]:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.social-link[title="Instagram"]:hover {
    background: #E4405F;
    color: white;
    border-color: #E4405F;
}

.social-link i {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2 ;
    border-top: 1px solid #ddd;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--hover-background);
}

.theme-toggle i {
    font-size: 1.25rem;
}

.theme-toggle .light-icon {
    display: none;
}

.theme-toggle .dark-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .light-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: none;
}

/* Sidebar Navigation */
.nav-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--card-background);
    padding: 2rem;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: -2px 0 4px var(--shadow-color);
    overflow-y: auto;
}

.nav-sidebar.active {
    right: 0;
}

.nav-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-sidebar .logo a {
    font-size: 1.25rem;
    padding: 0;
    gap: 0.75rem;
}

.nav-sidebar .logo-img {
    height: 28px;
    width: 28px;
    padding: 4px;
    box-shadow: none;
}

.nav-sidebar-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-sidebar-close:hover {
    background: var(--hover-background);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

@media (max-width: 1500px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-left: 1rem;
    }

    .nav-sidebar {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .nav-sidebar .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        height: calc(100% - 4rem);
        padding: 2rem 0;
    }

    .nav-sidebar .nav-links li {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .nav-sidebar .nav-links a {
        display: block;
        padding: 0.35rem;
        text-align: left;
        border-radius: 8px;
        width: 100%;
        padding-left: 1.5rem;
    }

    .nav-sidebar .nav-links a:hover {
        background: var(--hover-background);
    }

    .nav-sidebar .theme-toggle {
        margin: 1rem 0;
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1.5rem;
        border-radius: 8px;
    }

    .nav-sidebar .nav-auth-buttons {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }

    .nav-sidebar .btn-login,
    .nav-sidebar .btn-primary {
        width: 100%;
        margin: 0;
        display: block;
        text-align: left;
        padding-left: 1.5rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-spacer {
    width: 1px;
    height: 12px;
    background: var(--border-color);
    margin: 0 0.25rem;
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-buttons a {
        min-width: 200px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        display: flex;
        flex-direction: column;
    }

    .feature-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }

    .features-container h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-container {
        padding: 0 1rem;
    }

    .features {
        padding: 2rem 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 80px;
        padding: 0 1rem;
    }

    .logo a {
        font-size: 1rem;
        padding: 0;
        padding-right: 0.5rem;
    }

    .logo-img {
        height: 48px;
        width: 48px;
        padding: 8px;
        margin-left: -0.5rem;
    }

    .nav-right {
        margin-right: -0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .hero-buttons a {
        width: 100%;
        min-width: unset;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

    .logo-img {
        height: 48px;
        width: 48px;
        padding: 8px;
        box-shadow: none;
        margin-left: -0.5rem;
    }

    .logo a {
        font-size: 1rem;
        padding: 0;
        padding-right: 0.5rem;
        gap: 0.5rem;
        justify-content: flex-start;
    }
} 