:root {
    --primary-color: #340762; /* Deep purple */
    --primary-light: #520f96; /* Lighter purple */
    --accent-color: #7be700;  /* Vibrant green */
    --accent-glow: rgba(123, 231, 0, 0.6);
    --cyan-glow: rgba(0, 255, 255, 0.6);
    --text-light: #f8f8f8;
    --text-dark: #1a1a1a;
    --bg-dark: #0f021e;       /* Almost black purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-tech: 'Courier New', Courier, monospace; /* Fallback for tech feel */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
}

/* --- Utilities --- */
.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- LORE & VISUAL STORYTELLING --- */
.text-lore {
    font-family: var(--font-tech);
    color: var(--accent-color);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.text-lore::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    opacity: 0.7;
}

.hologram-box {
    background: rgba(10, 1, 20, 0.6);
    border: 1px solid rgba(123, 231, 0, 0.3);
    box-shadow: 0 0 15px rgba(123, 231, 0, 0.1), inset 0 0 20px rgba(123, 231, 0, 0.05);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.hologram-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    animation: scanline 3s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

.glowing-text {
    text-shadow: 0 0 10px var(--accent-glow);
}

.tech-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Header --- */
.header {
    background: rgba(15, 2, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #fff;
}

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

/* --- MEGA MENU --- */
.mega-menu-container {
    position: static; /* Allows full width dropdown */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f021e; /* Solid dark bg */
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.mega-menu-container:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.mega-link {
    display: block;
    color: #fff;
    padding: 0.5rem 0;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.mega-link i {
    width: 24px;
    color: var(--accent-color);
    margin-right: 8px;
    opacity: 0.7;
    transition: 0.3s;
}

.mega-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.mega-link:hover i {
    opacity: 1;
}

.mega-featured-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: 0.3s;
}

.mega-featured-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(123, 231, 0, 0.1);
}

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

/* Animated Background Glows */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 7, 98, 0.4) 0%, rgba(15, 2, 30, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}

.hero-glow-1 { top: -10%; left: -10%; background: radial-gradient(circle, rgba(123, 231, 0, 0.15) 0%, rgba(15, 2, 30, 0) 70%); }
.hero-glow-2 { bottom: -20%; right: -10%; background: radial-gradient(circle, rgba(2, 130, 177, 0.15) 0%, rgba(15, 2, 30, 0) 70%); }

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #a0aec0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #0f021e;
    box-shadow: 0 4px 14px 0 rgba(123, 231, 0, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 231, 0, 0.23);
    background-color: #8af010;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* --- Cards --- */
.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(123, 231, 0, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer {
    background-color: #05010a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-link {
    display: block;
    color: #718096;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

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

/* --- New Footer Design --- */
.footer-link-new {
    color: #a0aec0;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.footer-link-new:hover {
    color: #fff;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(123, 231, 0, 0.3);
}

/* --- Mobile Menu --- */
.hamburger-label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #0f021e;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 990;
}

#menu-toggle:checked ~ .mobile-menu {
    transform: translateX(0);
}

/* --- Divider SVG --- */
.custom-shape-divider-bottom-1678901234 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.custom-shape-divider-bottom-1678901234 svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.custom-shape-divider-bottom-1678901234 .shape-fill {
    fill: #0a0114;
}
