/* =========================================
   Import Google Fonts
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Poppins:wght@500;700&display=swap');

/* =========================================
   CSS Variables (Variabel Warna & Tema)
   ========================================= */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
}

/* =========================================
   Header & Navigation (Sticky & Glassmorphism)
   ========================================= */
header {
    background-color: var(--card-bg);
    padding: 3rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

nav {
    position: sticky;
    top: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px); 
    z-index: 100;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap; /* Mencegah menu meluap keluar layar */
    padding: 0 1rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* =========================================
   Main Content Layout (Cards)
   ========================================= */
main {
    max-width: 850px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    flex: 1;
}

section {
    background-color: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px #6495ff, 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

section h2::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: var(--border-color);
    margin-left: 1rem;
}

/* =========================================
   Typography & Media
   ========================================= */
p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

li {
    margin-bottom: 0.8rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

article {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    margin-top: 2rem;
}

article h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   Form Styling
   ========================================= */
form div {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-color);
    transition: all 0.3s ease;
    box-sizing: border-box; /* Memastikan padding tidak merusak lebar */
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

button[type="submit"] {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

button[type="submit"]:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* =========================================
   Footer
   ========================================= */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--text-primary);
    color: var(--border-color);
    margin-top: auto;
    font-size: 0.9rem;
}

.btn-instagram {
    display: inline-block;
    padding: 12px 24px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 30px; 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

.btn-instagram:hover {
    transform: translateY(-3px); 
    box-shadow: 0 8px 15px rgba(220, 39, 67, 0.4); 
    color: #ffffff;
}

.social-links {
    text-align: center;
    margin-top: 20px;
}

/* =========================================
   Media Queries (Khusus Layar HP / Android)
   ========================================= */
@media screen and (max-width: 768px) {
    header {
        padding: 2rem 1rem 1rem;
    }

    header h1 {
        font-size: 1.8rem; 
    }

    nav ul {
        gap: 1rem; 
    }

    nav a {
        font-size: 0.85rem;
    }

    main {
        margin: 1.5rem auto; 
        padding: 0 1rem;
    }

    section {
        padding: 1.5rem; 
        margin-bottom: 1.5rem;
    }

    section h2 {
        font-size: 1.4rem;
    }
}