/* --- 🎨 FortiPass: SYNC-SHIELD STYLE (Premium Dark Mode) --- */

/* 1. IMPORT FONT MODEN (Wajib ada internet) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Montserrat:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    /* Backgrounds: Deep Dark Theme */
    --bg-main: linear-gradient(135deg, #0a0a0a, #141414, #1f1f1f, #0a0a0a);
    --bg-surface: #141414;
    --bg-highlight: #1f1f1f;

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    /* Branding */
    --brand-primary: #ff00d9;
    --brand-glow: rgb(255, 255, 255);
    --brand-gradient: linear-gradient(135deg, #000000 0%, #50074b 100%);

    /* Functional Colors */
    --color-green: #00e676;
    --color-orange: #ff9100;
    --color-red: #ff1744;
}


/* --- Base Styles --- */
body {
    font-family: 'Inter', sans-serif; /* stays normal */
    margin: 0;
    padding: 0;
    color: var(--text-main);
    line-height: 1.7;
    background-color: #000000; /* Base hitam */

    /* ANIMATION PART */
    /* Grid halus warna merah pudar */
    background-image: 
        linear-gradient(rgb(255, 0, 174) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255, 255, 255) 1px, transparent 1px);
    background-size: 40px 40px; /* Saiz kotak */
    background-position: center;
    
    /* Gerakkan grid tu */
    animation: moveGrid 20s linear infinite;
    
    min-height: 100vh;
}

/* === BRANDING ONLY — 8-BIT FONT + FLICKER === */
.branding,
.brand-title,
.logo,
.logo-text {
    font-family: 'Press Start 2P', cursive !important;
    animation: brandFlicker 2s steps(2) infinite;
    letter-spacing: 2px;
}

/* Flicker animation */
@keyframes brandFlicker {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15) contrast(1.15); }
}

/* Grid movement */
@keyframes moveGrid {
    0% { background-position: 0 0; }
    100% { background-position: -80px -80px; }
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif; /* Font tajuk tebal & style */
    margin-top: 0;
    font-weight: 700;
    text-transform: uppercase; /* Huruf besar semua nampak mahal */
    letter-spacing: 1px;

    /* Gradient background */
    background: linear-gradient(270deg, #a829c5, #ff6ec4, #7873f5);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;

    /* Animation */
    animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Header / Navbar (Glassmorphism Effect) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: linear-gradient(270deg, #a829c5, #ff6ec4, #7873f5);
    background-size: 600% 600%;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;

    /* Gradient animation */
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Logo jadi warna gradient */
}

.navbar nav a {
    color: black; /* Solid black text for visibility */
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Optional hover effect */
.navbar nav a:hover {
    color: #a829c5; /* Accent color on hover */
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(168, 41, 197, 0.4);
}

@keyframes gradientLink {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional hover glow */
.navbar nav a:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.6);
    transform: scale(1.05);
}

.navbar nav a:hover {
    color: var(--brand-primary);
    text-shadow: 0 0 10px var(--brand-glow);
}

/* --- Buttons (Futuristic Style) --- */
.btn {
    padding: 12px 30px;
    border-radius: 4px; /* Petak sikit, kurang bulat */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Primary Button: Gradient & Glow */
.btn-primary {
    background: var(--brand-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px var(--brand-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(255, 17, 172);
}

/* Secondary Button: Outline Style */
.btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background-color: rgba(211, 47, 47, 0.1);
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 120px 10%;
    background: radial-gradient(circle at center, #1f1f1f 0%, #0a0a0a 70%);
}

.hero-section h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-section h1 span {
    color: var(--brand-primary); /* Kalau nak highlight perkataan */
}

.brief-description {
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* --- Content & Layout --- */
.page-content {
    padding: 80px 10%;
}

.page-content h1, .features-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: white;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Garis bawah tajuk */
.page-content h1::after, .features-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-primary);
    margin: 15px auto 0;
}

/* Grid Layouts */
.feature-grid, .horizontal-feature-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* --- Cards (Dark, Sleek, Bordered) --- */
.feature-card {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--bg-surface); /* Tukar putih ke gelap */
    padding: 40px 30px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05); /* Border halus */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.feature-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- About Page (Boxed Points) --- */
.about-point-box {
    background-color: var(--bg-surface);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 6px;
    border-left: 4px solid var(--brand-primary);
    color: var(--text-muted);
}

.about-point-box h2 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: none; /* Tak perlu uppercase semua */
}

/* --- Team Member Styles --- */
.team-member-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--bg-highlight);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-primary);
    box-shadow: 0 0 15px var(--brand-glow); /* Glowing circle */
}

.team-member-circle i {
    font-size: 3rem;
    color: white;
}

.role-title {
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: -10px;
    display: block;
    margin-bottom: 15px;
}

/* --- Accordion (FAQ) --- */
.accordion-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.accordion-item {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 15px;
}

.accordion-title {
    padding: 20px 25px;
    color: white;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-title:hover {
    background-color: var(--bg-highlight);
    color: var(--brand-primary);
}

.accordion-content {
    background-color: #0f0f0f; /* Lebih gelap dari tajuk */
    color: var(--text-muted);
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.accordion-item.open .accordion-content {
    max-height: 300px;
    padding: 20px 25px;
}

/* --- Contact Form (Dark Theme) --- */
.contact-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 4px solid var(--brand-primary);
}

.contact-form-container label {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.contact-form-container input,
.contact-form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #0a0a0a; /* Input gelap */
    border: 1px solid #333;
    color: white;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 8px var(--brand-glow);
}

/* --- Profile Dashboard --- */
.profile-dashboard {
    max-width: 1100px;
    margin: 40px auto;
    gap: 30px;
}

.profile-sidebar {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
}

.profile-sidebar h2 { color: white; }
.profile-sidebar p, .user-id, .joined-date { color: var(--text-muted) !important; }

.profile-sidebar .update-info h3 {
    color: var(--brand-primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.profile-sidebar .update-info label { color: white; }

.profile-sidebar .update-info input {
    background-color: #0a0a0a;
    border: 1px solid #333;
    color: white;
}

.profile-card {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}

.profile-card h3 {
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

/* Stats Grid */
.stat-item {
    background-color: #0a0a0a;
    border-bottom: 2px solid var(--brand-primary);
}

.stat-item .number { color: white; }
.stat-item .label { color: var(--text-muted); }

/* Recommendations */
.recommendation-list li {
    background-color: rgba(255, 152, 0, 0.1); /* Orange nipis */
    color: #ffd180;
    border-left: 3px solid var(--color-orange);
}

.recommendation-list li.critical {
    background-color: rgba(244, 67, 54, 0.1); /* Red nipis */
    color: #ff8a80;
    border-left-color: var(--color-red);
}

/* --- Footer --- */
footer {
    padding: 40px 20px;
    background-color: #050505;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
}