/* =============================================
   HKPI WEBSITE - MODERN CSS STYLING
   ============================================= */

:root {
    --primary-color: #059669; /* hijau utama (emerald) */
    --secondary-color: #065f46; /* hijau gelap */
    --accent-color: #10b981; /* accent hijau terang */
    --light-color: #f0fdf4; /* very light green tint */
    --dark-color: #064e3b;
    --text-color: #013220; /* warna teks lebih gelap hijau */
    --border-color: #e6f6ec;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(5, 150, 105, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(37, 99, 235, 0.5), var(--shadow);
    }
    50% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), var(--shadow-lg);
    }
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(30px, -30px) rotate(180deg);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-hkpi {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =============================================
   HERO SECTION
   ============================================= */

/* .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
} */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;

    background-image:
        linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
        url("../images/background.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    flex: 1;
    z-index: 10;
    max-width: 600px;
    transform: translateY(-60px);
}

.hero-content h1 {
    font-size: 3.5em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content h1 .gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 250px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.8;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    top: 0px;
    right: 100px;
    animation: shapeFloat 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    bottom: 250px;
    right: 50px;
    animation: shapeFloat 8s ease-in-out infinite;
    animation-delay: 1s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), #60a5fa);
    bottom: 400px;
    right: 300px;
    animation: shapeFloat 7s ease-in-out infinite;
    animation-delay: 2s;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--light-color);
}

.btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    transform: translateY(-3px);
}

/* =============================================
   SECTION STYLES
   ============================================= */

section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* =============================================
   ABOUT PREVIEW SECTION
   ============================================= */

.about-preview {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-card p {
    color: var(--text-color);
    line-height: 1.8;
}

/* =============================================
   LATEST EVENTS SECTION
   ============================================= */

.latest-events {
    background: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 80px;
}

.event-date .date {
    font-size: 2em;
    font-weight: 700;
}

.event-date .month {
    font-size: 0.9em;
    opacity: 0.9;
}

.event-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.event-content p {
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.event-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.read-more:hover {
    transform: translateX(5px);
}

/* =============================================
   STATISTICS SECTION
   ============================================= */

.statistics {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.statistics .section-title {
    color: white;
}

.statistics .section-title::after {
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.stat-card p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* =============================================
   LATEST NEWS SECTION
   ============================================= */

.latest-news {
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.news-content h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text-color);
    font-size: 0.95em;
    margin-bottom: 15px;
}

/* =============================================
   CTA SECTION
   ============================================= */

.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* =============================================
   PAGE HEADER
   ============================================= */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* =============================================
   ABOUT CONTENT
   ============================================= */

.about-content {
    padding: 60px 20px;
}

.about-section{
    display:flex;
    gap:60px;
    align-items:flex-start;
}

.about-section>*{
    flex:1;
}

.about-section.reverse{
    direction: rtl;
}

.about-section.reverse > * {
    direction: ltr;
}

.about-text h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.about-text p {
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-image{
    border-radius:15px;
    overflow:hidden;
    box-shadow:var(--shadow-lg);
}

.about-image img{
    width:100%;
    height:auto;
    display:block;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}

.values-list {
    list-style: none;
}

.values-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.values-list li:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(10px);
}

.values-list li i {
    font-size: 1.5em;
    color: var(--primary-color);
    min-width: 30px;
}

.values-list li:hover i {
    color: white;
}

.values-list strong {
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* =============================================
   TIMELINE
   ============================================= */

.timeline {
    margin-top: 80px;
}

.timeline h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.timeline-items {
    position: relative;
    padding: 20px 0;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-color);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 40px;
    text-align: left;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    z-index: 10;
    border: 4px solid white;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.95em;
}

.newsletter-form button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }

    .hero-image {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2em;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-section.reverse {
        direction: ltr;
    }

    .timeline-items::before {
        left: 0;
        transform: translateX(0);
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        margin-left: 80px;
        margin-right: 0;
        padding-left: 20px;
        text-align: left;
    }

    .timeline-date {
        left: 0;
        transform: translateX(-50%);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 20px;
    }
}
