:root {
    /* Moga Theme Colors (Tech/Corporate) */
    --moga-bg: #0d0817;
    --moga-surface: #1a1025;
    --moga-primary: #b829ea;
    --moga-secondary: #741b9e;
    --moga-text: #d4c5e3;
    --moga-text-light: #ffffff;

    /* Fikry Theme Colors (AI/Energetic) */
    --fikry-bg: #080312;
    --fikry-surface: #120721;
    --fikry-primary: #ff3366;
    --fikry-secondary: #ffb703;
    --fikry-text: #e8d5f0;
    --fikry-text-light: #ffffff;
    
    --transition: all 0.3s ease;
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--moga-primary), var(--fikry-primary), var(--fikry-secondary));
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.8);
    transition: width 0.1s ease;
}

/* Ambient Glowing Blobs */
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.5;
    animation: blob-float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(184, 41, 234, 0.15);
    top: 10%;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 51, 102, 0.1);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 183, 3, 0.08);
    bottom: -100px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Alexandria', sans-serif;
    background-color: var(--moga-bg);
    color: var(--moga-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Alexandria', sans-serif;
    color: var(--moga-text-light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 140px 0;
}

.text-center {
    text-align: center;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--moga-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--moga-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: top 0.1s, left 0.1s, width 0.2s, height 0.2s, border-color 0.2s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--moga-text-light);
    letter-spacing: 1px;
}

.logo-icon img {
    height: 36px !important;
    border-radius: 6px !important;
    animation: nav-logo-float 4s ease-in-out infinite;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-family: 'Alexandria', sans-serif;
    background: linear-gradient(45deg, var(--moga-text-light), var(--moga-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(184, 41, 234, 0.3);
    text-transform: uppercase;
}

@keyframes nav-logo-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 5px rgba(184, 41, 234, 0.3)); }
    50% { transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 0 15px rgba(184, 41, 234, 0.8)); }
}

@keyframes text-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(184, 41, 234, 0.3); }
    50% { text-shadow: 0 0 15px rgba(184, 41, 234, 0.8); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

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

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

.nav-link:hover {
    color: var(--moga-primary);
}

.fikry-link {
    color: var(--fikry-primary);
}
.fikry-link::after {
    background: var(--fikry-primary);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--moga-primary);
    color: var(--moga-primary);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Alexandria', sans-serif;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--moga-primary);
    color: var(--moga-bg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--moga-text-light);
    transition: var(--transition);
}

/* Themes specific overrides */
.moga-theme {
    background-color: var(--moga-bg);
    color: var(--moga-text);
}
.moga-theme h1, .moga-theme h2, .moga-theme h3 { color: var(--moga-text-light); }
.moga-theme .highlight { color: var(--moga-primary); text-shadow: 0 0 10px rgba(184, 41, 234, 0.3); }

.fikry-theme {
    background-color: var(--fikry-bg);
    color: var(--fikry-text);
}
.fikry-theme h1, .fikry-theme h2, .fikry-theme h3 { color: var(--fikry-text-light); }
.fikry-theme .fikry-highlight { color: var(--fikry-primary); text-shadow: 0 0 10px rgba(255, 51, 102, 0.4); }

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

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

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(184, 41, 234, 0.6);
    transform: translateY(-3px);
}

.glow-btn {
    background: linear-gradient(45deg, var(--fikry-primary), var(--moga-primary));
    color: #fff;
    font-weight: 800;
    animation: button-pulse 2s infinite;
}

.glow-btn:hover {
    box-shadow: 0 0 25px rgba(255, 51, 102, 0.6);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(184, 41, 234, 0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(116, 27, 158, 0.1) 0%, transparent 40%),
                var(--moga-bg);
    z-index: 1;
}

/* Neural Network Canvas Layer */
#network-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1px;
    min-height: 110px;
}
.typewriter-text {
    border-right: 3px solid var(--moga-primary);
    animation: blink-cursor .75s step-end infinite;
}
@keyframes blink-cursor {
  from, to { border-color: transparent }
  50% { border-color: var(--moga-primary); }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
}

/* About Next Moga */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.floating-logo {
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(184, 41, 234, 0.2);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Fikry Hero */
.fikry-hero {
    padding-top: 150px;
    border-top: 1px solid rgba(255, 51, 102, 0.2);
}

.fikry-main-logo {
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 51, 102, 0.5));
}

.fikry-title {
    font-size: 3.5rem;
}

.fikry-subtitle {
    font-size: 1.5rem;
    color: var(--fikry-secondary);
    margin-bottom: 30px;
}

.fikry-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Modules Section */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 70px; /* Added 70px side padding for arrows */
    margin-top: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.modules-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    /* We don't wrap here so it stays in one line */
}

.modules-track .module-card {
    flex: 0 0 320px; /* Fixed width for slider items */
    min-width: 250px;
    max-width: 90vw; /* Responsive for mobile */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--moga-text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: var(--moga-primary);
    box-shadow: 0 0 20px rgba(184, 41, 234, 0.6);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

@media (max-width: 768px) {
    .prev-btn { left: 0px; }
    .next-btn { right: 0px; }
    .modules-track .module-card {
        flex: 0 0 280px;
    }
}


.module-card {
    background: rgba(18, 7, 33, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 51, 102, 0.1);
    border-top: 1px solid rgba(255, 51, 102, 0.3);
    border-left: 1px solid rgba(255, 51, 102, 0.3);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,230,230,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: 0.5s ease;
    pointer-events: none;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 51, 102, 0.8);
    box-shadow: 0 15px 40px rgba(255, 51, 102, 0.2), inset 0 0 20px rgba(255, 51, 102, 0.05);
}

.module-card:hover {
    transform: translateY(-10px);
    border-color: var(--fikry-primary);
    box-shadow: 0 10px 30px rgba(255, 51, 102, 0.15);
}

.m-icon {
    font-size: 3rem;
    color: var(--fikry-primary);
    margin-bottom: 20px;
}

.integration-visual {
    margin-top: 80px;
}

.brain-core {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-logo {
    height: 80px;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--fikry-primary);
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Assistant Section */
.assistant-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.assistant-features {
    margin-top: 30px;
}

.assistant-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.assistant-features i {
    color: var(--fikry-secondary);
}

.chat-mockup {
    background: rgba(18, 7, 33, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-top: 1px solid rgba(255, 51, 102, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255, 51, 102, 0.1);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-header img {
    height: 30px;
}

.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 12px 18px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.95rem;
}

.msg.user {
    background: rgba(255,255,255,0.1);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.msg.bot {
    background: rgba(255, 51, 102, 0.1);
    color: var(--fikry-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

/* Contact */
.contact-form-container {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--moga-surface);
    padding: 40px;
    border-radius: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--moga-text-light);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    top: 15px;
    inset-inline-start: 0;
    color: var(--moga-text);
    transition: var(--transition);
    pointer-events: none;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--moga-primary);
}

.input-group input:focus, .input-group textarea:focus {
    border-bottom-color: var(--moga-primary);
}

/* Footer */
.footer {
    padding: 40px 0 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-bottom {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
.reveal-up { opacity: 0; transform: translateY(50px); transition: 0.8s ease; }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: 0.8s ease; }
.reveal-right { opacity: 0; transform: translateX(50px); transition: 0.8s ease; }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .about-grid, .assistant-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Pro Touches - Added Details */
::selection {
    background: var(--moga-primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--moga-primary), var(--fikry-primary));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--moga-primary);
}

/* Pulse Animation for buttons */
@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}

