@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --primary: #8b5cf6;
    --secondary: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
    line-height: 1.6;
    animation: pageLoadFade 1.2s ease-out;
}

@keyframes pageLoadFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Background Gradients */
.bg-gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    right: -50px;
}

/* Navbar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* 3D Effect for Navbar */
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.5), 
        inset 0 1px 1px rgba(255, 255, 255, 0.2), 
        inset 0 -1px 2px rgba(0, 0, 0, 0.4);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    color: #e2e8f0; /* Soft white/gray base color */
}

.btn:hover {
    color: #ffffff !important; /* Bright white on hover */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6); /* Text glow on hover */
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #e2e8f0;
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3), inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.6), inset 2px 2px 4px rgba(255, 255, 255, 0.4);
}

/* Services Section */
.services {
    padding: 5rem 5%;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(59, 130, 246, 0.05));
    border: none;
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Efek 3D / Timbul */
    box-shadow: 
        10px 10px 20px rgba(0, 0, 0, 0.4), /* Bayangan bawah-kanan (kedalaman) */
        -5px -5px 15px rgba(255, 255, 255, 0.03), /* Cahaya atas-kiri (elevasi) */
        inset 1px 1px 2px rgba(255, 255, 255, 0.15), /* Highlight dalam (sudut bevel) */
        inset -1px -1px 3px rgba(0, 0, 0, 0.3); /* Bayangan dalam (sudut bevel) */
        
    /* Transisi super mulus untuk efek hover */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Gradient glow at the top edge (optional for extra depth) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #3b82f6);
    opacity: 0.3;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(59, 130, 246, 0.15));
    
    /* Efek 3D lebih kuat saat di-hover (seolah semakin terangkat) */
    box-shadow: 
        20px 20px 40px rgba(0, 0, 0, 0.6),
        -5px -5px 30px rgba(255, 255, 255, 0.08),
        inset 2px 2px 5px rgba(168, 85, 247, 0.4),
        inset -2px -2px 5px rgba(0, 0, 0, 0.5);
}

.service-card img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover img {
    transform: scale(1.1) rotate(1deg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #cbd5e1;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

footer p {
    color: #94a3b8;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    nav ul {
        display: none;
    }
}
