/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFC107;
    --gold-dark: #B8860B;
    --gold-light: #FFF8DC;
    --linux-dark: #1A1A2E;
    --linux-darker: #0F0F1E;
    --linux-blue: #4B8BBE;
    --linux-green: #30A46C;
    --linux-red: #E54D2E;
    --linux-purple: #8A4BAF;
    --text-light: #E0E0E0;
    --text-muted: #888888;
    --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.3);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, var(--linux-darker) 0%, var(--linux-dark) 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* LINUX-THEME STYLES */
.linux-theme {
    background-attachment: fixed;
}

/* NAVIGATION */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold-primary);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow-glow);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--gold-primary));
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-toggle {
    display: none;
    background: var(--gold-primary);
    border: none;
    color: var(--linux-dark);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition-medium);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.nav-link.active {
    background: var(--gold-primary);
    color: var(--linux-dark);
    font-weight: bold;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--gold-secondary);
    border-radius: 2px;
}

/* SLIDING MENU */
.sliding-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    border-left: 2px solid var(--gold-primary);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    z-index: 1001;
    transition: var(--transition-medium);
    overflow-y: auto;
}

.sliding-menu.active {
    right: 0;
}

.menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h3 {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.close-menu:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.menu-list {
    list-style: none;
    padding: 1rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--gold-primary);
    color: var(--gold-primary);
}

.menu-item.active {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: var(--gold-primary);
    color: var(--gold-primary);
    font-weight: bold;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item.external {
    color: var(--linux-blue);
}

.menu-item.external:hover {
    color: var(--gold-primary);
}

.menu-divider {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
}

/* MAIN CONTENT */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* BANNER SECTION */
.banner-section {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-glow);
    height: 500px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(26, 26, 46, 0.9) 100%
    );
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.banner-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.banner-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    padding: 0 1rem;
}

/* BUTTONS SECTION */
.buttons-section {
    margin-bottom: 4rem;
}

.scroll-frame {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.scroll-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.scroll-content::-webkit-scrollbar {
    width: 6px;
}

.scroll-content::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 3px;
}

.scroll-content::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--linux-blue), var(--linux-purple));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition-medium);
    border: 2px solid transparent;
    text-align: center;
    min-height: 60px;
}

.action-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--gold-primary);
}

.action-button i {
    font-size: 1.3rem;
}

.button-link_utama { background: linear-gradient(135deg, #FF6B6B, #FF8E53); }
.button-link_daftar { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.button-link_login { background: linear-gradient(135deg, #FFD166, #FFB347); }
.button-link_alternatif { background: linear-gradient(135deg, #118AB2, #073B4C); }
.button-artikel { background: linear-gradient(135deg, #EF476F, #FF9A8B); }
.button-livechat { background: linear-gradient(135deg, #7209B7, #560BAD); }

.scroll-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.scroll-up, .scroll-down {
    background: var(--gold-primary);
    border: none;
    color: var(--linux-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.scroll-up:hover, .scroll-down:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* CONTENT SECTION */
.content-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: var(--shadow-glow);
}

.content-section h2 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: var(--gold-secondary);
    margin: 1.5rem 0 1rem;
    font-size: 1.6rem;
}

.content-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.content-section ul, .content-section ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.content-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.backlink {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px dotted var(--gold-primary);
    transition: var(--transition-fast);
}

.backlink:hover {
    color: var(--gold-secondary);
    border-bottom-style: solid;
}

/* FOOTER */
.footer {
    background: rgba(15, 15, 30, 0.95);
    border-top: 2px solid var(--gold-primary);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    filter: drop-shadow(0 0 5px var(--gold-primary));
}

.footer-logo span {
    font-size: 1.5rem;
    color: var(--gold-primary);
    font-weight: bold;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .action-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 1.6rem;
    }
    
    .scroll-frame {
        padding: 1.5rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    .content-section h3 {
        font-size: 1.4rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.5); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-in {
    animation: slideIn 0.6s ease forwards;
}

.glow-pulse {
    animation: glowPulse 2s infinite ease-in-out;
}

/* PERFORMANCE OPTIMIZATION */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* PRINT STYLES */
@media print {
    .nav-container,
    .buttons-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-section {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}

/* ABOUT US PAGE STYLES */
.team-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.team-section h2 {
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-medium);
    border: 1px solid transparent;
}

.team-member:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.member-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.team-member h3 {
    color: var(--gold-secondary);
    margin-bottom: 1rem;
}

/* VISION PAGE STYLES */
.roadmap-section {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(75, 139, 190, 0.1), rgba(138, 75, 175, 0.1));
    border-radius: 15px;
}

.roadmap-section h2 {
    color: var(--linux-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--gold-primary);
    position: relative;
}

.roadmap-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-primary);
    color: var(--linux-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.roadmap-item h3 {
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

/* MISSION PAGE STYLES */
.pillars-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.pillars-section h2 {
    color: var(--gold-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition-medium);
}

.pillar:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

.pillar-icon {
    font-size: 3rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.pillar h3 {
    color: var(--gold-secondary);
    margin-bottom: 1rem;
}

/* PRIVACY PAGE STYLES */
.privacy-controls {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 15px;
}

.privacy-controls h2 {
    color: var(--linux-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.control-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(30, 144, 255, 0.3);
}

.control-item h3 {
    color: var(--linux-blue);
    margin-bottom: 0.5rem;
}

.control-button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--linux-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: bold;
}

.control-button:hover {
    background: var(--gold-primary);
    color: var(--linux-dark);
}

/* UPDATE BANNER FOR OTHER PAGES */
.banner-section:not(.home-banner) .banner-image {
    display: none;
}

.banner-section:not(.home-banner) {
    background: linear-gradient(135deg, var(--linux-darker), var(--linux-dark));
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-section:not(.home-banner) .banner-overlay {
    display: none;
}

/* TABLE STYLES FOR PRIVACY POLICY */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.05);
}

.content-section th {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.content-section td {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* BADGES FOR IMPORTANT NOTES */
.note-badge {
    display: inline-block;
    background: var(--gold-primary);
    color: var(--linux-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.warning-badge {
    background: var(--linux-red);
    color: white;
}

.info-badge {
    background: var(--linux-blue);
    color: white;
}

.success-badge {
    background: var(--linux-green);
    color: white;
}

/* PRINT STYLES UPDATE */
@media print {
    .team-section,
    .roadmap-section,
    .pillars-section,
    .privacy-controls {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .content-section table {
        break-inside: auto;
    }
    
    .content-section tr {
        page-break-inside: avoid;
    }
}

/* LAZY LOADING FOR IMAGES */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy-loaded {
    opacity: 1;
}

/* CRITICAL CSS ABOVE THE FOLD */
.critical-content {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.1s;
}

/* FONT LOADING OPTIMIZATION */
@font-face {
    font-family: 'SystemFont';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Segoe UI'), local('Ubuntu'), local('Cantarell');
}

/* PRELOAD CRITICAL RESOURCES */
.link[rel="preload"] {
    display: none;
}

/* OPTIMIZE ANIMATIONS FOR PERFORMANCE */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* CONTENT VISIBILITY FOR LONG PAGES */
.content-section > * {
    content-visibility: auto;
    contain-intrinsic-size: 1px 5000px;
}

/* OPTIMIZE INTERACTION */
button, 
a {
    touch-action: manipulation;
}

/* SERVICE WORKER READY */
.service-worker-ready {
    border: 2px solid var(--linux-green);
}

/* WEB VITALS OPTIMIZATION */
img {
    aspect-ratio: attr(width) / attr(height);
}

/* CLS PREVENTION */
.banner-section,
.nav-container,
.footer {
    will-change: transform;
}

/* INP OPTIMIZATION */
button,
input,
select,
textarea {
    font-size: 16px; /* Prevents iOS zoom */
}