:root {
    --bg-dark: #0A0A0E;
    --primary-neon-cyan: #00FFFF;
    --secondary-neon-magenta: #FF00FF;
    --tertiary-neon-electric-blue: #0000FF; /* Not explicitly used but available */
    --text-light: #E0E0E0;
    --text-muted: #888888;
    --border-glow: rgba(0, 255, 255, 0.4);
    --hover-glow: rgba(0, 255, 255, 0.7);
    --card-bg: #1A1A22;
    --header-bg: rgba(10, 10, 14, 0.8);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'JetBrains Mono', monospace;
    --transition-speed: 0.3s ease-in-out;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from glowing elements */
}

a {
    color: var(--primary-neon-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--hover-glow);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-neon-cyan);
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1; /* Ensure content is above any background patterns */
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
    color: var(--secondary-neon-magenta);
    text-shadow: 0 0 10px var(--secondary-neon-magenta), 0 0 20px rgba(255, 0, 255, 0.3);
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-neon-cyan);
    box-shadow: 0 0 10px var(--primary-neon-cyan);
}

/* Geometric Background Pattern Mixin */
.pattern-bg {
    position: relative;
    overflow: hidden;
}
.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, rgba(0, 255, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 255, 255, 0.05) 75%, rgba(0, 255, 255, 0.05)),
        linear-gradient(-45deg, rgba(255, 0, 255, 0.05) 25%, transparent 25%, transparent 75%, rgba(255, 0, 255, 0.05) 75%, rgba(255, 0, 255, 0.05));
    background-size: 40px 40px;
    opacity: 1;.1;
    z-index: -1;
}


/* Glowing border effect */
.glowing-border {
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 5px var(--border-glow);
    transition: all var(--transition-speed);
}
.glowing-border:hover {
    box-shadow: 0 0 15px var(--hover-glow), 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-neon-cyan);
    transform: translateY(-3px);
}


/* Header */
.main-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-neon-cyan);
    text-shadow: 0 0 8px var(--primary-neon-cyan);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    font-family: var(--font-heading);
    font-size: 1.1em;
    color: var(--text-light);
    position: relative;
    padding-bottom: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-neon-magenta);
    box-shadow: 0 0 5px var(--secondary-neon-magenta);
    transition: width var(--transition-speed);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('images/image_8.jpg') center/cover no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 4em;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-neon-cyan);
    text-shadow: 0 0 20px var(--primary-neon-cyan), 0 0 40px rgba(0, 255, 255, 0.5);
}

.hero-content p {
    font-size: 1.4em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* About Section - Asymmetrical Grid */
.about-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2em;
    color: var(--secondary-neon-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.about-text p {
    color: var(--text-muted);
}

.about-image {
    position: relative;
    padding: 15px; /* Padding for the glowing border effect to appear around */
}
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Features Section - Icon with Text (3 cards per row) */
.features-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px; /* Padding for responsive edges */
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--primary-neon-cyan), transparent 20%);
    animation: rotate 6s linear infinite;
    opacity: 1;.1;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;.3;
}

.feature-card .feature-icon {
    font-size: 3.5em; /* Large icon size */
    margin-bottom: 20px;
    color: var(--primary-neon-cyan);
    text-shadow: 0 0 15px var(--primary-neon-cyan);
    position: relative;
    z-index: 1;
}

/* Custom Icons (as placeholders since Font Awesome is restricted) */
.icon-ai::before { content: '🧠'; } /* Brain */
.icon-vr::before { content: '🕶️'; } /* VR Glasses */
.icon-smart-contract::before { content: '🔗'; } /* Link */
.icon-data::before { content: '📊'; } /* Bar Chart */
.icon-eco::before { content: '🌱'; } /* Plant */
.icon-guidance::before { content: '💡'; } /* Lightbulb */


.feature-card h4 {
    color: var(--secondary-neon-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.2);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95em;
    position: relative;
    z-index: 1;
}

/* Gallery Section - Category Filters (3 cards per row) */
.gallery-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-dark);
    color: var(--primary-neon-cyan);
    padding: 12px 25px;
    border: 1px solid var(--primary-neon-cyan);
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all var(--transition-speed);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--primary-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-neon-cyan);
    transform: translateY(-2px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block; /* Default to block, JS will hide/show */
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly transparent overlay */
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.item-overlay h4 {
    color: var(--secondary-neon-magenta);
    font-size: 1.2em;
    margin-bottom: 5px;
}

.item-overlay p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 0;
}

/* FAQ Section - Searchable FAQ & Newsletter Sidebar */
.faq-newsletter-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.two-column-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* FAQ content takes 2/3, sidebar 1/3 */
    gap: 50px;
}

.faq-content .section-title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.faq-content .section-title::after {
    left: 0;
    transform: none;
}


.searchable-faq {
    margin-top: 30px;
}

.tech-input {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-neon-cyan);
    border-radius: 5px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1em;
    margin-bottom: 30px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all var(--transition-speed);
}

.tech-input::placeholder {
    color: var(--text-muted);
    opacity: 1;.7;
}

.tech-input:focus {
    outline: none;
    border-color: var(--secondary-neon-magenta);
    box-shadow: 0 0 15px var(--secondary-neon-magenta);
}

.faq-list {
    max-height: 500px; /* Limit height for scrollable FAQ */
    overflow-y: auto;
    padding-right: 15px; /* Space for scrollbar */
}
/* Custom scrollbar for webkit browsers */
.faq-list::-webkit-scrollbar {
    width: 8px;
}
.faq-list::-webkit-scrollbar-track {
    background: var(--card-bg);
}
.faq-list::-webkit-scrollbar-thumb {
    background: var(--primary-neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 5px var(--primary-neon-cyan);
}
.faq-list::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-neon-magenta);
    box-shadow: 0 0 5px var(--secondary-neon-magenta);
}


.faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.1);
    transition: all var(--transition-speed);
}
.faq-item:hover {
    border-color: var(--primary-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.faq-question {
    font-size: 1.15em;
    color: var(--primary-neon-cyan);
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: var(--secondary-neon-magenta);
    transition: transform var(--transition-speed);
}

.faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    color: var(--text-muted);
    font-size: 0.95em;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 0, 255, 0.1);
    display: none; /* Controlled by JS */
}

/* Newsletter Sidebar */
.newsletter-sidebar {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%; /* Ensure it fills available height */
    position: sticky; /* Make it sticky */
    top: 100px; /* Adjust top offset as needed */
    align-self: start; /* Align to the start of the grid cell */
}

.newsletter-sidebar h4 {
    color: var(--secondary-neon-magenta);
    font-size: 1.8em;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
    margin-bottom: 15px;
}

.newsletter-sidebar p {
    color: var(--text-muted);
    font-size: 1em;
    margin-bottom: 20px;
}

.newsletter-sidebar .small-text {
    font-size: 0.85em;
    color: var(--text-light);
    opacity: 1;.8;
}

/* Footer */
.main-footer {
    background-color: var(--card-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-bottom: 0;
}

/* Keyframe Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }

    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .main-nav ul li {
        margin: 0 15px 10px;
    }

    .hero-content h2 {
        font-size: 3em;
    }
    .hero-content p {
        font-size: 1.2em;
    }

    .about-section .container {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 40px;
    }
    .about-image {
        order: -1; /* Image first on mobile */
    }

    .section-title {
        font-size: 2em;
    }

    .features-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Allow for 2 columns, or 1 if needed */
        gap: 30px;
    }

    .two-column-grid {
        grid-template-columns: 1fr; /* Stack FAQ and Newsletter */
        gap: 40px;
    }

    .newsletter-sidebar {
        position: static; /* Remove sticky behavior on mobile */
        height: auto;
        padding: 30px;
    }
    .faq-list {
        max-height: none; /* Remove max height on mobile for easier scrolling */
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.2em; }

    .main-header .logo {
        font-size: 1.5em;
    }
    .main-nav ul li {
        margin: 0 10px 10px;
    }
    .hero-section {
        height: 60vh;
    }
    .hero-content h2 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack cards to 1 column */
    }
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 80%; /* Make buttons wider */
    }
    .faq-question {
        font-size: 1em;
    }
    .faq-answer {
        font-size: 0.9em;
    }
    .newsletter-sidebar h4 {
        font-size: 1.5em;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
