/* ========================================================================
   NEURAL CORE PAGE STYLES
   Theme: Orange (#FF966C) with 3D Cube aesthetic
   ======================================================================== */

/* Critical Base Styles */
:root {
    --neural-black: #000000;
    --neural-orange: #d97706;
    --neural-purple: #3c1361;
}

/* Main content */
main {
    min-height: 100vh;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.neural-core-hero {
    background: var(--neural-black);
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.neural-core-hero .container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 5vw;
    position: relative;
    z-index: 2;
}

.hero-content {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-content {
    text-align: left;
}

.hero-title {
    margin-bottom: 2rem;
}

/* Gradient text effect */
.neural-gradient-text {
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-label {
    color: #74EEDD;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.hero-heading {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 24px;
    display: block;
}

/* Neural h1 specific styling */
.hero-heading.neural-h1 {
    color: #ffffff;
}

/* Decorative line under heading */
.hero-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
}

.hero-tagline {
    color: #d97706;
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.hero-description {
    color: #9ca3af;
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0;
}

/* ========================================================================
   WHAT IS NEURAL CORE SECTION
   ======================================================================== */

.what-is-core-section {
    padding: 100px 5vw;
    background: var(--neural-black);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1.75rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 1.5rem;
    display: block;
}

/* Add decorative line under section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
}

/* Support for gradient text in section titles */
.section-title .neural-gradient-text {
    background: linear-gradient(135deg, var(--neural-purple, #3c1361), var(--neural-orange, #d97706));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.section-content {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.benefit-card {
    background: linear-gradient(135deg, 
        rgba(255, 150, 108, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 150, 108, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 150, 108, 0.6);
    box-shadow: 0 10px 30px rgba(255, 150, 108, 0.2);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
}

.benefit-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================
   TECHNOLOGY LAYERS SECTION
   ======================================================================== */

.tech-layers-section {
    padding: 100px 2.5vw;
    background: var(--neural-black);
}

/* Override container max-width for tech layers section */
.tech-layers-section .container {
    max-width: 100%;
    width: 90vw;
    padding: 0 5vw;
    margin: 0 auto;
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
}

.layer-card {
    background: rgba(20, 20, 22, 0.8);
    border: 1px solid rgba(255, 150, 108, 0.2);
    border-radius: 16px;
    padding: 3rem 2.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.layer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF966C, #6E56CF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.layer-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 150, 108, 0.5);
    box-shadow: 0 20px 40px rgba(255, 150, 108, 0.15);
}

.layer-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.layer-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.layer-tagline {
    font-size: 0.875rem;
    color: #FF966C;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.layer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.layer-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.layer-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.layer-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #FF966C;
}

/* ========================================================================
   PHASES SECTION
   ======================================================================== */

.phases-section {
    padding: 100px 5vw;
    background: var(--neural-black);
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.phase-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 150, 108, 0.2);
    margin-bottom: 1rem;
    line-height: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================
   VALUE SECTION
   ======================================================================== */

.value-section {
    padding: 100px 5vw;
    background: var(--neural-black);
}

.value-section .container {
    max-width: 100%;
    width: 90vw;
    padding: 0 5vw;
    margin: 0 auto;
}

.value-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.value-item {
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 150, 108, 0.05) 100%);
    border-left: 3px solid #FF966C;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 150, 108, 0.1) 100%);
}

.value-title {
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1rem;
}

.value-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================
   USE CASES SECTION
   ======================================================================== */

.use-cases-section {
    padding: 100px 5vw;
    background: var(--neural-black);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.use-case {
    background: rgba(20, 20, 22, 0.9);
    border: 1px solid rgba(255, 150, 108, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: scale(1.02);
    border-color: rgba(255, 150, 108, 0.5);
    box-shadow: 0 15px 35px rgba(255, 150, 108, 0.2);
}

.use-case-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.use-case-tagline {
    font-size: 0.875rem;
    color: #FF966C;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.use-case-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================================================
   3D CUBE STYLES
   ======================================================================== */

.neural-cube-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
    padding: 2rem 0;
    perspective: 800px;
}

.neural-cube-3d {
    position: relative;
    width: 180px;
    height: 180px;
    transform-style: preserve-3d;
    animation: neuralCubeSpin 12s linear infinite;
}

.neural-cube-face {
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(255, 150, 108, 0.1) 0%,
        rgba(255, 150, 108, 0.05) 100%);
    border: 2px solid #FF966C;
    box-shadow: 
        0 0 30px rgba(255, 150, 108, 0.4),
        inset 0 0 30px rgba(255, 150, 108, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #FF966C;
}

.neural-cube-face--front  { transform: rotateY(0deg) translateZ(90px); }
.neural-cube-face--back   { transform: rotateY(180deg) translateZ(90px); }
.neural-cube-face--right  { transform: rotateY(90deg) translateZ(90px); }
.neural-cube-face--left   { transform: rotateY(-90deg) translateZ(90px); }
.neural-cube-face--top    { transform: rotateX(90deg) translateZ(90px); }
.neural-cube-face--bottom { transform: rotateX(-90deg) translateZ(90px); }

@keyframes neuralCubeSpin {
    0% { 
        transform: rotateX(0deg) rotateY(0deg); 
    }
    100% { 
        transform: rotateX(360deg) rotateY(360deg); 
    }
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */

.cta-section {
    padding: 120px 5vw;
    background: var(--neural-black);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    border-bottom: 1px solid rgba(217, 119, 6, 0.1);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(217, 119, 6, 0.04) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 200;
    background: linear-gradient(135deg, #ffffff 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Button Styles */
.neural-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.neural-btn--primary {
    background: linear-gradient(135deg, #8B5CF6, #d97706);
    color: #ffffff;
    border: 2px solid transparent;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neural-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(217, 119, 6, 0.2);
    background: linear-gradient(135deg, #d97706, #8B5CF6);
}

.neural-btn--primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.neural-btn--primary:hover::before {
    opacity: 0.5;
}

.neural-btn--lg {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (max-width: 768px) {
    .neural-core-hero {
        padding: 100px 20px 60px;
    }
    
    .hero-heading {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
    
    .benefits-grid,
    .value-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .layers-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .phases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .layer-card,
    .benefit-card,
    .use-case {
        padding: 2rem;
    }
    
    .neural-cube-container {
        max-width: 200px;
    }
    
    .neural-cube-3d {
        width: 120px;
        height: 120px;
    }
    
    .neural-cube-face {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .neural-cube-face--front  { transform: rotateY(0deg) translateZ(60px); }
    .neural-cube-face--back   { transform: rotateY(180deg) translateZ(60px); }
    .neural-cube-face--right  { transform: rotateY(90deg) translateZ(60px); }
    .neural-cube-face--left   { transform: rotateY(-90deg) translateZ(60px); }
    .neural-cube-face--top    { transform: rotateX(90deg) translateZ(60px); }
    .neural-cube-face--bottom { transform: rotateX(-90deg) translateZ(60px); }
    
    .cta-section {
        padding: 80px 20px;
    }
    
    /* Hero Section Responsive Updates */
    .neural-core-hero {
        min-height: calc(100vh - 60px);
        padding-top: 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hero-heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-label {
        font-size: 12px;
    }
    
    .hero-right-space {
        display: none;
    }
}

/* Additional mobile styles for hero */
@media (max-width: 1400px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-heading {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    /* Override container for tech layers on medium screens */
    .tech-layers-section .container {
        width: 90vw;
        max-width: 100%;
    }
    
    /* Layers grid adjusts to 2 columns on medium screens */
    .layers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    /* Override container for tech layers on tablets */
    .tech-layers-section .container {
        width: 85vw;
        max-width: 700px;
    }
    
    /* Layers grid to single column on tablets */
    .layers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .neural-core-hero {
        min-height: 85vh;
    }
    
    .hero-heading {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
}

/* ========================================================================
   MODAL LIGHTBOX STYLES
   ======================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    cursor: zoom-out;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-close:before,
.modal-close:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: white;
}

.modal-close:before {
    transform: rotate(45deg);
}

.modal-close:after {
    transform: rotate(-45deg);
}

/* Make showcase images/videos clickable */
.showcase-video,
.showcase-image {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.showcase-video:hover,
.showcase-image:hover {
    transform: scale(1.02);
}