/* ==========================================================================
   FIXIT SOLUTION - MAIN STYLESHEET (style.css)
   Beautified, Complete & Optimized for Fullpage Slider
   ========================================================================== */

/* --- COLOR VARIABLES & THEME CONFIGURATION --- */
:root {
    --bg-color: #0b0f19;
    --card-bg: #111827;
    --card-border: #1f2937;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.15);
    --accent: #818cf8;
    --saka-color: #f59e0b;
    --navbar-bg: rgba(11, 15, 25, 0.8);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.08);
    --accent: #4f46e5;
    --saka-color: #d97706;
    --navbar-bg: rgba(248, 250, 252, 0.85);
}

/* --- BASE RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- NAVBAR STYLES --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
}

.brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-nav-contact {
    background: var(--primary-glow);
    color: var(--primary) !important;
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--primary);
}

.btn-nav-contact:hover {
    background: var(--primary);
    color: #ffffff !important;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

/* --- HERO FULLPAGE SLIDER SECTION --- */
.hero-fullpage {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #0b0f19;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 7s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-content-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    z-index: 3;
    padding-top: 70px;
}

.slide-content {
    max-width: 680px;
    text-align: left;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, opacity 1s ease 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(11, 15, 25, 0.6);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--primary);
    backdrop-filter: blur(8px);
}

.slide-content h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #cbd5e1;
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 14px rgba(58, 189, 248, 0.3);
}

.btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

/* Slider Controls / Indicator Dots */
.slider-controls {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.control-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.control-dot.active {
    background: var(--primary);
    transform: scale(1.25);
    border-color: rgba(58, 189, 248, 0.4);
}

/* --- COMMON SECTIONS --- */
section {
    padding: 90px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

/* --- GRIDS & CARDS --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 32px;
    position: relative;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Image Handling in Cards (Locks 3:2 Ratio) */
.card-img-wrapper {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.card-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

/* Interactive Card Links */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover .card {
    border-color: var(--primary);
    transform: translateY(-4px);
}

/* --- SAKA DIGITAL SECTION --- */
.saka-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    margin-top: 20px;
}

.saka-badge {
    color: var(--saka-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- PORTOFOLIO SECTION --- */
.portfolio-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.portfolio-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

/* Filter Tabs Styling */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
}

/* Tech Stack Badges di Bawah Kartu */
.tech-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.tech-stack span {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--card-border);
}

/* Transisi Item Portofolio */
.portfolio-item {
    transition: transform 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.portfolio-item.is-hidden {
    display: none !important;
}

/* --- COMPACT CONTACT SECTION --- */
.contact-compact-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-info-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-glow);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.contact-item-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.contact-item-text strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.btn-wa-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-wa-compact:hover {
    opacity: 0.9;
}

/* --- MEDIA QUERIES (RESPONSIVE) --- */
@media (max-width: 768px) {
    .nav-menu {
        gap: 12px;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
    }

    .slide-content-wrapper {
        justify-content: center;
        text-align: center;
    }

    .slide-content {
        text-align: center;
    }

    .saka-section {
        padding: 24px;
    }

    .contact-compact-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}