/* --- RESET & VARIABLES --- */
:root {
    --primary: #50C8B8; /* Warna Teal dari Logo */
    --primary-dark: #3aa89b;
    --secondary-blue: #2563EB;
    --bg-dark: #0B1120; /* Dark Navy Background */
    --bg-card: #151E32; /* Lighter Navy for Cards */
    --text-light: #F1F5F9;
    --text-gray: #94A3B8;
    --gradient: linear-gradient(135deg, #50C8B8 0%, #2563EB 100%);
    --gradient-hover: linear-gradient(135deg, #2563EB 0%, #50C8B8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS (UPDATED UNTUK TAMPILAN LEBIH PREMIUM) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px; /* Sedikit lebih rounded */
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: none;
}

/* Tombol Utama dengan Gradient dan Glow Effect */
.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(80, 200, 184, 0.3);
}

/* Efek hover untuk tombol primary */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-hover); /* Warna kebalikan saat hover */
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(80, 200, 184, 0.6); /* Glow lebih terang */
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Tombol Outline */
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #080d19;
    box-shadow: 0 4px 15px rgba(80, 200, 184, 0.3);
    transform: translateY(-3px);
}

/* Penyesuaian khusus tombol di Navbar agar lebih pas */
.nav-menu .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* --- NAVBAR --- */
.navbar {
    background-color: rgba(11, 17, 32, 0.85); /* Lebih transparan */
    backdrop-filter: blur(15px); /* Efek blur kaca lebih kuat */
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

/* Efek garis bawah saat hover menu */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.btn-primary:hover::after {
    display: none; /* Hapus efek garis untuk tombol */
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px auto;
    transition: 0.3s;
}

/* --- HERO SECTION (UPDATED BACKGROUND SILUET) --- */
.hero {
    padding: 120px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    /* Background utama dengan sedikit tekstur */
    background: radial-gradient(circle at top right, #1a2c4e 0%, var(--bg-dark) 60%);
    position: relative;
    overflow: hidden;
}

/* Menambahkan elemen dekoratif cahaya di background */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(80, 200, 184, 0.15) 0%, rgba(0,0,0,0) 70%);
    filter: blur(100px);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* UPDATE: Glassmorphism Background untuk Text */
.hero-text {
    background: rgba(21, 30, 50, 0.4); /* Latar belakang semi-transparan */
    backdrop-filter: blur(20px); /* Efek blur di belakang teks */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Border tipis menyala */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); /* Bayangan lembut */
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.highlight {
    color: transparent;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 520px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(80, 200, 184, 0.3); /* Border teal yang menyala */
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- FEATURES --- */
.features {
    padding: 100px 0;
    background-color: var(--bg-dark);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efek garis bawah gradient saat hover card */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(80, 200, 184, 0.3);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    /* Menambahkan background icon */
    background: rgba(80, 200, 184, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- GALLERY --- */
.gallery {
    padding: 120px 0;
    background: #0f1623; /* Sedikit berbeda dari bg utama */
}

.gallery-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.gallery-item:last-child {
    margin-bottom: 0;
}

.gallery-item.reverse {
    flex-direction: row-reverse;
}

.gallery-text {
    flex: 1;
}

.gallery-text h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gallery-text p {
    color: var(--text-gray);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.tech-list li {
    margin-bottom: 15px;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.tech-list li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.1rem;
}

.gallery-img {
    flex: 1.3;
    position: relative;
}

/* Bingkai gambar yang menyala */
.gallery-img::before {
    content: '';
    position: absolute;
    top: -15px; right: -15px; bottom: -15px; left: -15px;
    border: 2px solid var(--primary);
    opacity: 0.2;
    border-radius: 15px;
    z-index: 0;
    transition: 0.3s;
}

.gallery-img:hover::before {
    top: -10px; right: -10px; bottom: -10px; left: -10px;
    opacity: 0.4;
}

.gallery-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

/* --- CTA --- */
.cta {
    padding: 120px 0;
    text-align: center;
    /* Overlay gradient di atas gambar background agar teks terbaca */
    background: linear-gradient(rgba(11,17,32,0.95), rgba(11,17,32,0.8)), url('Asset 4.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-form input {
    padding: 15px 25px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    width: 350px;
    font-size: 1rem;
    transition: 0.3s;
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.contact-form .btn {
    padding: 15px 35px; /* Tombol CTA lebih besar */
}

.small-text {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.small-text a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}

.small-text a:hover {
    color: #fff;
    border-bottom-style: solid;
}

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #060911;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 15px;
    opacity: 0.7;
}

.footer-links a {
    color: var(--text-gray);
    margin-left: 30px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 968px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 140px;
    }

    .hero-container, .gallery-item, .gallery-item.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-text {
        padding: 30px; /* Padding lebih kecil di mobile */
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }

    .gallery-text h3 {
        font-size: 1.8rem;
    }

    .tech-list {
        display: inline-block;
        text-align: left;
    }

    .contact-form {
        flex-direction: column;
        align-items: center;
    }

    .contact-form input, .contact-form .btn {
        width: 100%;
        max-width: 400px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 15px;
    }
}