:root {
    /* Color Palette - Hijau Tua Menyala (Dark Glowing Green) */
    --bg-dark: #050a06;
    --bg-card: rgba(10, 25, 12, 0.6);
    --green-dark: #004d1a;
    --green-primary: #00cc44;
    --green-neon: #00ff55;
    --green-glow: rgba(0, 255, 85, 0.4);

    --text-primary: #f0fdf4;
    --text-secondary: #a3cda8;

    --glass-border: rgba(0, 255, 85, 0.15);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Background Animations */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--green-dark), transparent 70%);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-primary), transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

/* Typography & Titles */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--green-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--green-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--green-glow);
}

.btn-primary:hover {
    background: var(--green-neon);
    box-shadow: 0 0 30px var(--green-glow);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(0, 255, 85, 0.1);
    color: var(--green-neon);
    border: 1px solid var(--green-neon);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--green-neon);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--green-glow);
}

.btn-outline {
    border: 1px solid var(--green-primary);
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--green-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--green-glow);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(5, 10, 6, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
    /* Efek Gradien Teks Berjalan */
    background: linear-gradient(to right, #ffffff, var(--green-neon), var(--green-primary), #ffffff);
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 4s linear infinite;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 20px rgba(0, 255, 85, 0);
    /* Awal shadow transparan */
}

@keyframes textShine {
    to {
        background-position: 300% center;
    }
}

.logo:hover {
    transform: scale(1.05) translateY(-2px);
    letter-spacing: 3px;
    /* Transformasi jarak teks */
    text-shadow: 0 5px 25px var(--green-glow);
}

.logo span {
    /* Span tetap mewarisi gradien, atau bisa diberi efek lain */
    font-weight: 900;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--green-neon);
    text-shadow: 0 0 10px var(--green-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero UI Card Animation */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.animate-float {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px) rotateX(5deg) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(10deg) rotateY(5deg);
    }

    100% {
        transform: translateY(0px) rotateX(5deg) rotateY(-5deg);
    }
}

.main-card {
    width: 100%;
    height: 350px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 255, 85, 0.1), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
}

.card-header .dots {
    display: flex;
    gap: 8px;
    z-index: 2;
}

.terminal-title {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    pointer-events: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-header .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green-dark);
}

.card-header .dots span:nth-child(1) {
    background: #ff5f56;
}

.card-header .dots span:nth-child(2) {
    background: #ffbd2e;
}

.card-header .dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-body {
    font-family: 'Courier New', Courier, monospace;
    color: var(--green-neon);
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    height: 100%;
}

.term-line {
    margin-bottom: 0.5rem;
    overflow: hidden;
    white-space: pre-wrap;
    text-shadow: 0 0 8px var(--green-glow);
}

.cursor-blink {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: var(--green-neon);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    box-shadow: 0 0 10px var(--green-neon);
    margin-left: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.glowing-orb {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--green-primary);
    filter: blur(40px);
    opacity: 0.6;
    animation: orbPulse 3s infinite alternate;
}

@keyframes orbPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}


/* Services Section */
.services {
    padding: 8rem 0;
}

.section-title {
    margin-bottom: 5rem;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: var(--green-neon);
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px var(--green-glow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--green-neon);
    box-shadow: 0 15px 40px rgba(0, 255, 85, 0.15);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--green-glow), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(0, 255, 85, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--green-neon);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px inset rgba(0, 255, 85, 0.1);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

.service-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.service-features i {
    color: var(--green-neon);
    font-size: 0.9rem;
}

/* Contact CTA */
.contact-cta {
    padding: 5rem 0 8rem;
}

.cta-content {
    padding: 5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 25, 12, 0.8) 0%, rgba(0, 77, 26, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 204, 68, 0.1);
    border-color: var(--green-neon);
    transform: scale(1.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--green-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.8rem;
}

.contact-icon.glowing {
    box-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-neon);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--green-neon), 0 0 60px var(--green-neon);
    }

    100% {
        box-shadow: 0 0 20px var(--green-glow), 0 0 40px var(--green-glow);
    }
}

.contact-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-text strong {
    font-size: 1.4rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 1rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo p {
    margin-top: 1rem;
    margin-bottom: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Base Animations for JS */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive text sizes adjust slightly for mobile in standard modern setups but using clamp helps immensely.
Let's add simple media queries */

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a full build, add hamburger menu */
    }

    .contact-item {
        padding: 1rem 1.5rem;
    }

    .contact-text strong {
        font-size: 1.1rem;
    }
}