/* Variabel Warna dan Font */
:root {
    --primary-blue: #0ea5e9;
    --dark-blue: #0f172a;
    --accent-yellow: #facc15;
    --text-main: #334155;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

/* Animasi Global */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0; /* Diatur ke 0 pada awalnya, akan terlihat setelah animasi selesai */
}

/* Header / Hero Section */
.hero-header {
    background: linear-gradient(135deg, var(--dark-blue), #1e293b);
    color: var(--white);
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge {
    background: rgba(250, 204, 21, 0.2);
    color: var(--accent-yellow);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.hero-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-header h1 span {
    color: var(--primary-blue);
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.hero-header p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.hero-header strong {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: #0284c7;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(14, 165, 233, 0.4);
}

/* Main Content & Grid */
main {
    max-width: 1200px;
    margin: -3rem auto 0;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 4rem;
}

/* Project Card Modern */
.project-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.02);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin: 0;
    line-height: 1.4;
}

/* Modal Modern UI */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--bg-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #ef4444;
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 90vh;
}

.modal-image-container {
    flex: 1;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.modal-info-container {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#modalTitle {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    line-height: 1.3;
}

.info-block {
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.info-block h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block ul {
    list-style: none;
}

.info-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.info-block ul li::before {
    content: "•";
    color: var(--primary-blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Feedback Form / CTA Section */
.feedback-section {
    background: var(--white);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 3rem;
}

.modern-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    gap: 1rem;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: var(--primary-blue);
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

.site-footer strong {
    color: var(--accent-yellow);
}

/* Responsive Design */
@media (max-width: 992px) {
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image-container {
        padding: 1rem;
    }
    
    .modal-image-container img {
        max-height: 40vh;
    }
    
    .modal-info-container {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-header h1 {
        font-size: 2.5rem;
    }
    
    main {
        margin-top: 0;
    }

    .input-group {
        flex-direction: column;
    }
}