/* 
================================================================
PT. RENOVASI PEMBANGUNAN BERKAH - COMPANY PROFILE STYSHEET
================================================================
Theme: Modern, Corporate, Elegant, Premium, Glassmorphism
Colors: Slate (Primary) & Metallic Gold (Accent)
Fonts: Poppins (Headings), Montserrat (Accents/Buttons), Inter (Body)
================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================
   1. DESIGN TOKENS & THEMING (CSS VARIABLES)
   ========================================================== */
:root {
    /* Color Palette - Light Mode */
    --primary: #0F172A;       /* Slate 900 */
    --primary-rgb: 15, 23, 42;
    --secondary: #1E293B;     /* Slate 800 */
    --secondary-rgb: 30, 41, 59;
    --accent: #D4AF37;        /* Metallic Gold */
    --accent-rgb: 212, 175, 55;
    --accent-hover: #C5A028;  /* Darker Gold */
    --bg-main: #F8FAFC;       /* Slate 50 */
    --bg-card: #FFFFFF;
    --text-main: #1F2937;     /* Gray 800 */
    --text-muted: #64748B;    /* Slate 500 */
    --white: #FFFFFF;
    --border-color: rgba(226, 232, 240, 0.8); /* Slate 200 */
    --card-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    --hover-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.15);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* Dark Mode Tokens Override */
body.dark-mode {
    --bg-main: #0B0F19;       /* Ultra Dark Slate */
    --bg-card: #151C2C;       /* Dark Slate Card */
    --text-main: #F1F5F9;     /* Slate 100 */
    --text-muted: #94A3B8;    /* Slate 400 */
    --border-color: rgba(51, 65, 85, 0.5); /* Slate 700 */
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.25);
    
    /* Glassmorphism */
    --glass-bg: rgba(21, 28, 44, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================
   2. RESET & BASE ELEMENTS
   ========================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    transition: color var(--transition-normal);
}

body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: var(--white);
}

p {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid helper */
.grid {
    display: grid;
    gap: 32px;
}

/* ==========================================================
   3. ANIMATIONS & REVEAL EFFECTS
   ========================================================== */
/* Scroll Reveal base state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Gold Pulse */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Section Header Utility */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px auto;
}

.section-tag {
    font-family: var(--font-accent);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
    position: relative;
    padding-left: 24px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 2px;
    background-color: var(--accent);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

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

body.dark-mode .btn-outline {
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

body.dark-mode .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* ==========================================================
   4. LOADING SCREEN
   ========================================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.loader-logo span {
    color: var(--accent);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

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

/* ==========================================================
   5. NAVBAR SECTION
   ========================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    height: 70px;
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--white);
}

.logo span {
    color: var(--accent);
}

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

body.dark-mode .navbar.scrolled .logo {
    color: var(--white);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    position: relative;
    padding: 6px 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Nav Actions (CTA, Dark Mode, Hamburger) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all var(--transition-fast);
}

.navbar.scrolled .dark-mode-toggle {
    background-color: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--primary);
}

body.dark-mode .navbar.scrolled .dark-mode-toggle {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dark-mode-toggle:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.dark-mode-toggle .moon-icon {
    display: block;
}

.dark-mode-toggle .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
}

.navbar.scrolled .btn-nav {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.navbar.scrolled .hamburger span {
    background-color: var(--primary);
}

body.dark-mode .navbar.scrolled .hamburger span {
    background-color: var(--white);
}

/* ==========================================================
   6. HERO SECTION
   ========================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4);
    transform: scale(1.05);
    animation: zoomHero 20s infinite alternate;
}

@keyframes zoomHero {
    to { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
}

.hero-tag {
    font-family: var(--font-accent);
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-tag::before {
    content: '';
    width: 32px;
    height: 2px;
    background-color: var(--accent);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--white);
}

.hero h1 span {
    color: var(--accent);
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================
   7. STATISTIK PERUSAHAAN (STATS)
   ========================================================== */
.stats {
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Pull into hero view */
}

.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border-color);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

/* ==========================================================
   8. TENTANG KAMI (ABOUT)
   ========================================================== */
.about {
    padding: 120px 0;
}

.about-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.about-img-box {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.about-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
}

.about-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 2px solid var(--accent);
    max-width: 220px;
    text-align: center;
}

body.dark-mode .about-badge {
    background-color: var(--secondary);
}

.about-badge .badge-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin: 0 auto 12px auto;
}

.about-badge h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.about-badge p {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Tabs system */
.about-tabs {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    background: transparent;
    border: none;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 16px;
    position: relative;
    transition: color var(--transition-fast);
}

.tab-btn:hover, .tab-btn.active {
    color: var(--primary);
}

body.dark-mode .tab-btn:hover, body.dark-mode .tab-btn.active {
    color: var(--white);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width var(--transition-fast);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-pane {
    display: none;
    margin-top: 24px;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

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

.tab-pane ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tab-pane li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.tab-pane li .li-icon {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================
   9. LAYANAN KAMI (SERVICES)
   ========================================================== */
.services {
    padding: 120px 0;
    background-color: var(--bg-card);
    transition: background-color var(--transition-normal);
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary);
    z-index: -1;
    transition: height var(--transition-normal);
}

body.dark-mode .service-card::after {
    background-color: var(--secondary);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--hover-shadow);
}

.service-card:hover::after {
    height: 100%;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    color: var(--accent);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon-box {
    background-color: var(--accent);
    color: var(--primary);
}

.service-icon {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
    transition: color var(--transition-normal);
}

.service-card p {
    font-size: 0.95rem;
    transition: color var(--transition-normal);
}

.service-card:hover h3 {
    color: var(--white);
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.7);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.service-link span {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link span {
    transform: translateX(4px);
}

/* ==========================================================
   10. MENGAPA MEMILIH KAMI (WHY CHOOSE US)
   ========================================================== */
.why-us {
    padding: 120px 0;
}

.why-grid {
    grid-template-columns: repeat(3, 1fr);
}

.why-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--card-shadow);
}

.why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.why-icon {
    width: 24px;
    height: 24px;
}

.why-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9rem;
}

/* ==========================================================
   11. PORTOFOLIO (PORTFOLIO GRID & LIGHTBOX)
   ========================================================== */
.portfolio {
    padding: 120px 0;
    background-color: var(--bg-card);
    transition: background-color var(--transition-normal);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    height: 380px;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

/* Category hide animation logic handled by JS */
.portfolio-item.hide {
    display: none;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.portfolio-category {
    font-family: var(--font-accent);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    transform: translateY(15px);
    transition: transform var(--transition-normal) 0.1s;
}

.portfolio-item h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 6px;
    transform: translateY(15px);
    transition: transform var(--transition-normal) 0.15s;
}

.portfolio-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 16px;
    transform: translateY(15px);
    transition: transform var(--transition-normal) 0.2s;
}

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

/* Lightbox Modal Stylings */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--white);
}

.lightbox-caption h3 {
    color: var(--white);
    margin-bottom: 4px;
}

.lightbox-caption p {
    color: var(--accent);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--accent);
}

/* ==========================================================
   12. TIM PENDIRI (FOUNDERS)
   ========================================================== */
.team {
    padding: 120px 0;
}

.team-grid {
    grid-template-columns: repeat(3, 1fr);
}

.team-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: var(--hover-shadow);
}

.team-img-box {
    position: relative;
    height: 360px;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.team-info p {
    font-family: var(--font-accent);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================
   13. PROSES KERJA (WORKFLOW TIMELINE)
   ========================================================== */
.process {
    padding: 120px 0;
    background-color: var(--bg-card);
    transition: background-color var(--transition-normal);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 24px 40px;
    margin-bottom: 24px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 36px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 4px solid var(--accent);
    z-index: 10;
    transition: transform var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--accent);
}

.timeline-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-normal);
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.timeline-num {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 16px;
}

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.timeline-card p {
    font-size: 0.9rem;
}

/* ==========================================================
   14. TESTIMONI (AUTOMATIC CAROUSEL)
   ========================================================== */
.testimonials {
    padding: 120px 0;
    overflow: hidden;
}

.testimonial-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
}

.testimonial-wrapper {
    position: relative;
    height: auto;
}

.testimonial-slide {
    display: none;
    text-align: center;
    animation: slideFade 0.6s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

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

.testi-quote-icon {
    width: 60px;
    height: 60px;
    color: rgba(212, 175, 55, 0.15);
    margin: 0 auto 24px auto;
}

.testi-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
    color: var(--accent);
}

.testi-rating svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.testi-text {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 32px;
    font-style: italic;
}

.testi-user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testi-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.testi-info {
    text-align: left;
}

.testi-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.testi-company {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Dots navigation */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background-color: var(--accent);
    width: 24px;
    border-radius: var(--radius-full);
}

/* ==========================================================
   15. FORM KONTAK & LOKASI MAPS
   ========================================================== */
.contact-section {
    padding: 120px 0;
    background-color: var(--bg-card);
    transition: background-color var(--transition-normal);
}

.contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.contact-form-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px;
    box-shadow: var(--card-shadow);
}

.contact-title {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.contact-desc {
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Custom error message styling */
.error-msg {
    color: #EF4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #EF4444;
}

.form-group.has-error .error-msg {
    display: block;
}

/* Alert Toast notification */
.toast {
    position: fixed;
    bottom: 32px;
    right: -400px;
    width: 350px;
    background-color: var(--primary);
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.toast.show {
    right: 32px;
}

body.dark-mode .toast {
    background-color: var(--secondary);
}

.toast-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

.toast-text h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.toast-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Map & Details Column */
.contact-details-box {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-icon-box svg {
    width: 22px;
    height: 22px;
}

.contact-info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 0.9rem;
}

.map-wrapper {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================
   16. FOOTER PREMIUM & FLOATING BUTTONS
   ========================================================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 32px 0;
    position: relative;
    border-top: 2px solid var(--accent);
}

.footer-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.footer-brief {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

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

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-link svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-link:hover svg {
    opacity: 1;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Copyright banner */
.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.copyright-links {
    display: flex;
    gap: 24px;
}

.copyright-link {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.copyright-link:hover {
    color: var(--accent);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 99;
    transition: all var(--transition-fast);
    animation: float 4s ease-in-out infinite, pulse-gold 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-fast);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary);
    color: var(--accent);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================
   17. MOBILE RESPONSIVE STYLES
   ========================================================== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    
    .about-img-box {
        padding-right: 0;
        padding-bottom: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation Drawer */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        gap: 24px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        z-index: 99;
    }
    
    body.dark-mode .nav-menu {
        background-color: var(--secondary);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hamburger Active animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tag {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .timeline::before {
        left: 24px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 56px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 14px !important;
    }
    
    .testimonial-container {
        padding: 0 16px;
    }
    
    .testi-text {
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-box {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .copyright {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================
   ADMIN DATABASE CONFIGURATION DRAWER STYLES
   ========================================================== */
.admin-config-wrapper {
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    padding-top: 1.25rem;
}

.admin-toggle-link {
    background: none;
    border: none;
    color: var(--accent);
    font-family: var(--font-accent);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.admin-toggle-link:hover {
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--white);
    transform: translateY(-1px);
}

body.dark-mode .admin-toggle-link:hover {
    color: var(--white);
}

.admin-config-panel {
    margin-top: 12px;
    background: rgba(30, 41, 59, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all var(--transition-normal);
}

body.dark-mode .admin-config-panel {
    background: rgba(15, 23, 42, 0.45);
}

.admin-config-panel .form-group {
    margin-bottom: 16px;
}

.admin-config-panel .form-label {
    font-size: 0.8rem;
    color: var(--text-main);
    opacity: 0.85;
    font-weight: 600;
}

.admin-config-panel .form-control {
    font-size: 0.85rem;
    padding: 10px 14px;
}

.admin-config-panel p {
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 12px;
    line-height: 1.45;
    opacity: 0.9;
}

