/* ==== GENERAL STYLES & VARIABLES ==== */
:root {
    --primary-color: #00bfff; /* Deep Sky Blue - Neon Accent */
    --background-color: #0f0f1a; /* Dark Navy Blue */
    --text-color: #e0e0e0;
    --card-bg-color: #1a1a2e;
    --header-bg-color: rgba(26, 26, 46, 0.85);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 600;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ==== HEADER / STICKY NAVIGATION ==== */
#main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

#main-header.scrolled {
    background-color: var(--header-bg-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-color);
}

#main-header nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

#main-header nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

#main-header nav a:hover {
    color: var(--primary-color);
}

#main-header nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#main-header nav a:hover::after {
    width: 100%;
}

/* ==== HERO SECTION ==== */
#hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(15, 15, 26, 0.5), rgba(15, 15, 26, 0.6)), 
                url('https://abcde.id/komunitas.jpg') no-repeat center center/cover;
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-color);
    min-height: 40px; /* To prevent layout shift */
}

.cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* ==== SCROLL DOWN INDICATOR ANIMATION ==== */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-down-indicator a {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}
.scroll-down-indicator span {
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-anim 2s infinite;
}
@keyframes scroll-anim {
    0% { top: 8px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

/* ==== CONTENT SECTIONS (About, Portfolio, Contact) ==== */
.content-section {
    padding: 100px 0;
}

/* ==== ABOUT SECTION ==== */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex-basis: 40%;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.1);
}

.about-text {
    flex-basis: 60%;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

/* ==== PORTFOLIO SECTION ==== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    background: var(--card-bg-color);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 15, 26, 0.9), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-overlay p {
    font-size: 1rem;
    color: var(--primary-color);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* ==== CONTACT SECTION ==== */
#contact {
    text-align: center;
}

.contact-subtitle {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.contact-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--background-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.2);
}

.social-links {
    margin-top: 40px;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* ==== FOOTER ==== */
footer {
    background-color: var(--card-bg-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

footer .fa-heart {
    color: var(--primary-color);
}

/* ==== ON-SCROLL REVEAL ANIMATION ==== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    #main-header .container {
        height: 70px;
    }
    
    #main-header nav {
        /* Basic mobile nav - links will wrap */
        display: none; /* For a full hamburger menu, this would be the starting point */
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }
}