/* ======== NEXUS-SPECIFIC STYLES ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --text-light-gray: #CCCCCC;
    --color-deep-red: #9E2A1B;
    --color-bright-redorange: #E64A19;
    --color-vibrant-orange: #F57C00;
    
    /* NEXUS BRAND COLORS */
    --nexus-cyan: #00BCD4;
    --nexus-blue: #2196F3;
    --nexus-purple: #9C27B0;
    --accent-gradient: linear-gradient(90deg, var(--nexus-purple), var(--nexus-blue), var(--nexus-cyan));
    
    --footer-dark-gray: #1a1a1a;
    --card-bg: #0f0f0f;
    --navbar-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-black);
    color: var(--primary-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: var(--text-light-gray);
}

.large-text {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* --- Button Styles --- */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary-glow {
    background: var(--accent-gradient);
    color: var(--primary-white);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.4);
}

.btn-primary-glow:hover {
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.6);
    transform: translateY(-3px);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--primary-black);
    padding: 15px 5vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-left .logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-white);
    text-decoration: none;
}

.header-logo-icon {
    height: 35px;
    margin-right: 10px;
    filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.5));
}

.navbar-center .nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu li a {
    color: var(--text-light-gray);
    font-weight: 500;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none;
}

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

.nav-menu li a:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-black);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-content a {
    color: var(--text-light-gray);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Right Navbar Buttons (UPDATED) --- */
.navbar-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Sign In - Gradient */
.btn-signin {
    background: var(--accent-gradient);
    color: var(--primary-white);
    border: none;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(33, 150, 243, 0.5);
    filter: brightness(1.1);
}

/* Sign Up - White */
.btn-signup {
    background: transparent;
    border: 2px solid var(--primary-white);
    color: var(--primary-white);
}

.btn-signup:hover {
    background: var(--primary-white);
    color: var(--primary-black);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary-black);
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    animation: nexusGlow 8s ease-in-out infinite alternate;
}

@keyframes nexusGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero-logo-large {
    width: 150px;
    margin-bottom: 40px;
    filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.6));
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.hero-tagline {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--primary-white);
    margin-bottom: 30px;
    max-width: 1000px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light-gray);
    max-width: 700px;
    margin-top: 0;
}

/* --- Nexus Metaphor Section --- */
.nexus-metaphor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.metaphor-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    width: 320px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.metaphor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.2);
}

.metaphor-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.metaphor-icon.opus-brain {
    background: linear-gradient(135deg, var(--color-deep-red), var(--color-vibrant-orange));
}

.metaphor-icon.nexus-nervous {
    background: var(--accent-gradient);
}

.metaphor-icon i {
    font-size: 3rem;
    color: var(--primary-white);
}

.metaphor-icon span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-white);
    margin-top: 0.5rem;
}

.connection-arrow {
    font-size: 3rem;
    color: var(--nexus-cyan);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.metaphor-card h3 {
    font-size: 1.5rem;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.metaphor-card p {
    color: var(--text-light-gray);
    font-size: 1.05rem;
}

/* --- Core Functions Grid --- */
.features-grid-nexus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card-nexus {
    background: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: 15px;
    text-align: left;
    border: 2px solid rgba(0, 188, 212, 0.1);
    transition: all 0.4s ease;
}

.feature-card-nexus:hover {
    border-color: var(--nexus-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.15);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-white);
}

.feature-card-nexus h3 {
    font-size: 1.5rem;
    color: var(--primary-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card-nexus > p {
    color: var(--primary-white);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-details ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.feature-details li {
    color: var(--text-light-gray);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.feature-details li i {
    color: var(--nexus-cyan);
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* --- Workflow Diagram --- */
.workflow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.workflow-step {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    width: 280px;
    text-align: center;
    border: 2px solid rgba(0, 188, 212, 0.2);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--nexus-cyan);
    margin-bottom: 1.5rem;
}

.workflow-step h3 {
    font-size: 1.3rem;
    color: var(--primary-white);
    margin-bottom: 0.75rem;
}

.workflow-step p {
    color: var(--text-light-gray);
    font-size: 1rem;
}

.workflow-arrow {
    font-size: 2.5rem;
    color: var(--nexus-cyan);
}

/* --- Benefits Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.benefit-item {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    border-color: var(--nexus-cyan);
    box-shadow: 0 15px 35px rgba(0, 188, 212, 0.15);
}

.benefit-item i {
    font-size: 3rem;
    color: var(--nexus-cyan);
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    font-size: 1.25rem;
    color: var(--primary-white);
    margin-bottom: 1rem;
}

.benefit-item p {
    color: var(--text-light-gray);
    font-size: 1rem;
}

/* --- Video Demo Section --- */
.video-placeholder {
    background: #000;
    border: 2px dashed var(--nexus-cyan);
    border-radius: 15px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
    max-width: 900px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    border-color: var(--nexus-blue);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.3);
}

.video-placeholder i {
    font-size: 5rem;
    color: var(--nexus-cyan);
    margin-bottom: 1.5rem;
}

.video-placeholder p {
    font-size: 1.3rem;
    color: var(--text-light-gray);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-white);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #444;
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-white);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nexus-cyan);
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light-gray);
}

.contact-info a {
    color: var(--primary-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--nexus-cyan);
}

.contact-info i {
    margin-right: 1rem;
    color: var(--nexus-cyan);
}

.social-media {
    margin-top: 3rem;
}

.social-media h3 {
    margin-bottom: 1rem;
}

.social-media a {
    font-size: 1.8rem;
    color: var(--text-light-gray);
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--nexus-cyan);
}

/* --- Footer (Updated) --- */
.site-footer {
    background-color: var(--footer-dark-gray);
    color: var(--text-light-gray);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--primary-white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--nexus-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-light-gray);
    font-size: 0.9rem;
}

/* --- Section Color Alternation --- */
.page-dark {
    background-color: var(--primary-black);
    color: var(--primary-white);
}

.page-light {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.content-section.page-light {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.content-section.page-light .section-title,
.content-section.page-light h3 {
    color: var(--primary-black);
}

.content-section.page-light .metaphor-card {
    background: rgba(0, 0, 0, 0.03);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .features-grid-nexus,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-diagram {
        flex-direction: column;
    }
    
    .workflow-arrow {
        transform: rotate(90deg);
    }
    
    h1 { font-size: 2.5rem; }
    .hero-tagline { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .navbar-center .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nexus-metaphor {
        flex-direction: column;
    }
    
    .connection-arrow {
        transform: rotate(90deg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
}
/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    gap: 5px;
}

.mobile-menu-toggle .hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--primary-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

body.menu-open {
    overflow: hidden;
}

/* ======================
  MOBILE RESPONSIVE NAVIGATION
  ====================== 
*/
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: relative;
    }
    
    .navbar-left .logo {
        z-index: 1001;
    }
    
    .navbar-center {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--primary-black);
        transition: right 0.3s ease;
        padding-top: 80px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-center.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-center .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 18px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        background-color: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        margin: 0;
        border-radius: 0;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .navbar-right {
        position: fixed;
        bottom: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        background-color: var(--primary-black);
        transition: right 0.3s ease;
        padding: 20px 30px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-right.active {
        right: 0;
    }
    
    .navbar-right .btn-signin {
        width: 100%;
        text-align: center;
    }
    
    .hero-tagline {
        font-size: 2rem;
    }
    
    .nexus-metaphor {
        flex-direction: column;
    }
    
    .connection-arrow {
        transform: rotate(90deg);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}